mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
style
This commit is contained in:
@ -355,9 +355,7 @@ final class TestCall // @phpstan-ignore-line
|
||||
public function skipOnCI(): self
|
||||
{
|
||||
if ($this->runningOnCI()) {
|
||||
return $this->skip(sprintf(
|
||||
'This test is skipped on [CI].',
|
||||
));
|
||||
return $this->skip('This test is skipped on [CI].');
|
||||
}
|
||||
|
||||
return $this;
|
||||
@ -366,9 +364,7 @@ final class TestCall // @phpstan-ignore-line
|
||||
public function skipLocally(): self
|
||||
{
|
||||
if ($this->runningOnCI() === false) {
|
||||
return $this->skip(sprintf(
|
||||
'This test is skipped [locally].',
|
||||
));
|
||||
return $this->skip('This test is skipped [locally].');
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
||||
@ -94,10 +94,8 @@ final class Shell
|
||||
|
||||
$config = app()->make('config');
|
||||
|
||||
$loader = ClassAliasAutoloader::register(
|
||||
return ClassAliasAutoloader::register(
|
||||
$shell, $path, $config->get('tinker.alias', []), $config->get('tinker.dont_alias', [])
|
||||
);
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
@ -125,6 +125,6 @@ final class Str
|
||||
{
|
||||
$target = preg_replace('/[^a-zA-Z0-9]+/', '-', $target);
|
||||
|
||||
return strtolower(trim($target, '-'));
|
||||
return strtolower(trim((string) $target, '-'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user