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