@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | private string $tmpDir; |
15 | 15 | |
16 | - public function __construct(string|null $tmpDir = null) |
|
16 | + public function __construct(string | null $tmpDir = null) |
|
17 | 17 | { |
18 | 18 | $this->tmpDir = $tmpDir ?? sys_get_temp_dir(); |
19 | 19 | } |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | $time = microtime(true) - $t; |
24 | 24 | $parent = (new ReflectionClass($invocation->getThis()))->getParentClass(); |
25 | 25 | assert($parent instanceof ReflectionClass); |
26 | - $class = $parent->getName(); |
|
27 | - $method = $invocation->getMethod()->getName(); |
|
26 | + $class = $parent->getName(); |
|
27 | + $method = $invocation->getMethod()->getName(); |
|
28 | 28 | $this->logs[$class][$method][] = new Log( |
29 | 29 | (array) $invocation->getArguments(), |
30 | 30 | (array) $invocation->getNamedArguments(), |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function getLogs(string $class, string $method): array |
44 | 44 | { |
45 | - if (! isset($this->logs[$class][$method])) { |
|
45 | + if (!isset($this->logs[$class][$method])) { |
|
46 | 46 | return []; |
47 | 47 | } |
48 | 48 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | private $spyTargets; |
20 | 20 | |
21 | 21 | /** @param array<class-string|interface-string> $spyTargets */ |
22 | - public function __construct(array $spyTargets = [], AbstractModule|null $module = null) |
|
22 | + public function __construct(array $spyTargets = [], AbstractModule | null $module = null) |
|
23 | 23 | { |
24 | 24 | $this->spyTargets = $spyTargets; |
25 | 25 | parent::__construct($module); |