Passed
Push — 1.x ( 113f52...e6c491 )
by Akihito
14:14 queued 12:15
created
src/Spy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Logger.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/SpyModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.