From fe27012bbca23f45f41bebbbe2ec8cc6ab918479 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 22 Jul 2025 23:58:36 +0100 Subject: [PATCH] style --- src/PendingCalls/TestCall.php | 8 ++------ src/Support/Shell.php | 4 +--- src/Support/Str.php | 2 +- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/PendingCalls/TestCall.php b/src/PendingCalls/TestCall.php index 6e78937c..d10505f0 100644 --- a/src/PendingCalls/TestCall.php +++ b/src/PendingCalls/TestCall.php @@ -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; diff --git a/src/Support/Shell.php b/src/Support/Shell.php index 0f9c9d55..b5c5b157 100644 --- a/src/Support/Shell.php +++ b/src/Support/Shell.php @@ -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; } } diff --git a/src/Support/Str.php b/src/Support/Str.php index e5b78b6d..ff4bf5f4 100644 --- a/src/Support/Str.php +++ b/src/Support/Str.php @@ -125,6 +125,6 @@ final class Str { $target = preg_replace('/[^a-zA-Z0-9]+/', '-', $target); - return strtolower(trim($target, '-')); + return strtolower(trim((string) $target, '-')); } }