Passed
Push — type-resolver ( 5b5dc4 )
by Luis
10:45
created
src/Code/UseStatement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 
16 16
     public function endsWith(Name $name): bool
17 17
     {
18
-        return str_ends_with(haystack: (string) $this->name, needle: $name->removeArraySuffix());
18
+        return str_ends_with(haystack : (string)$this->name, needle : $name->removeArraySuffix());
19 19
     }
20 20
 
21 21
     public function isAliasedAs(Name $name): bool
22 22
     {
23
-        return $this->alias !== null && (string) $this->alias === $name->removeArraySuffix();
23
+        return $this->alias !== null && (string)$this->alias === $name->removeArraySuffix();
24 24
     }
25 25
 
26 26
     public function fullyQualifiedName(Name $name): string
Please login to merge, or discard this patch.
src/Code/Name.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     public function isArray(): bool
30 30
     {
31
-        return str_ends_with((string) $this, '[]');
31
+        return str_ends_with((string)$this, '[]');
32 32
     }
33 33
 
34 34
     public function removeArraySuffix(): string
Please login to merge, or discard this patch.
src/Code/Codebase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public function add(Definition $definition): void
24 24
     {
25
-        $this->definitions[$definition->name()?->fullName()] = $definition;
25
+        $this->definitions[$definition->name() ? ->fullName()] = $definition;
26 26
     }
27 27
 
28 28
     public function has(Name $name): bool
Please login to merge, or discard this patch.