chore: style changes

This commit is contained in:
Nuno Maduro
2023-03-21 13:42:21 +00:00
parent f4d19c90d3
commit 236a9bd7ce
3 changed files with 4 additions and 4 deletions

View File

@ -64,7 +64,7 @@ final class Expectation
*/ */
public function and(mixed $value): Expectation public function and(mixed $value): Expectation
{ {
return $value instanceof static ? $value : new self($value); return $value instanceof self ? $value : new self($value);
} }
/** /**

View File

@ -73,7 +73,7 @@ final class Arr
foreach ($array as $key => $value) { foreach ($array as $key => $value) {
if (is_array($value) && $value !== []) { if (is_array($value) && $value !== []) {
$results = array_merge($results, static::dot($value, $prepend.$key.'.')); $results = array_merge($results, self::dot($value, $prepend.$key.'.'));
} else { } else {
$results[$prepend.$value] = $value; $results[$prepend.$value] = $value;
} }

View File

@ -42,7 +42,7 @@ final class Reflection
} }
if (is_callable($method)) { if (is_callable($method)) {
return static::bindCallable($method, $args); return self::bindCallable($method, $args);
} }
throw $exception; throw $exception;
@ -72,7 +72,7 @@ final class Reflection
return $test instanceof \PHPUnit\Framework\TestCase return $test instanceof \PHPUnit\Framework\TestCase
? Closure::fromCallable($callable)->bindTo($test)(...$test->providedData()) ? Closure::fromCallable($callable)->bindTo($test)(...$test->providedData())
: static::bindCallable($callable); : self::bindCallable($callable);
} }
/** /**