mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27:23 +01:00
chore: style changes
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user