Completed
Push — master ( 50c53a...ded84c )
by Jesse
02:34 queued 33s
created
src/Autoloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             $this->loader->generate($this->dissector->typesToGenerate($class, 2));
57 57
         } catch (InvalidTypeArgument $exception) {
58 58
             $this->log->info(
59
-                'Not generically auto loading: ' . $exception->getMessage()
59
+                'Not generically auto loading: '.$exception->getMessage()
60 60
             );
61 61
         }
62 62
     }
Please login to merge, or discard this patch.
src/Generator/Visitor/ReturnTypeEnforcement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
             );
54 54
         } catch (ReflectionException $e) {
55 55
             throw new LogicException(
56
-                'Somehow the php parser and reflection disagree. You must be ' .
57
-                'running insanely outdated software for this to ever happen. ' .
56
+                'Somehow the php parser and reflection disagree. You must be '.
57
+                'running insanely outdated software for this to ever happen. '.
58 58
                 $e->getMessage(),
59 59
                 $e->getCode(),
60 60
                 $e
Please login to merge, or discard this patch.
src/Generator/TypeArgumentFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         $this->primitives = $primitives ?: new Primitives();
21 21
     }
22 22
 
23
-    public function for(string ...$types): TypeArguments
23
+    public function for (string ...$types): TypeArguments
24 24
     {
25 25
         return new TypeArguments(...array_map([$this, 'argument'], $types));
26 26
     }
Please login to merge, or discard this patch.
src/Loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         string $base,
58 58
         TypeArguments $typeArguments
59 59
     ): void {
60
-        if (in_array($namespace . '\\' . $class, get_declared_classes())) {
60
+        if (in_array($namespace.'\\'.$class, get_declared_classes())) {
61 61
             return;
62 62
         }
63 63
         $this->writer->write($namespace, $class, $this->generator->generate(
Please login to merge, or discard this patch.
src/Dissector/AnnotationArgumentDeduction.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $this->dissect = $dissector;
52 52
     }
53 53
 
54
-    public function for(
54
+    public function for (
55 55
         string $namespace,
56 56
         string $baseClass,
57 57
         string $callingFile,
@@ -90,15 +90,15 @@  discard block
 block discarded – undo
90 90
                 continue;
91 91
             }
92 92
             if (!$this->primitives->includes($type) && !class_exists($type)) {
93
-                throw TypeArgumentNotFound::for($type, $baseClass, count($typeArguments));
93
+                throw TypeArgumentNotFound::for ($type, $baseClass, count($typeArguments));
94 94
             }
95 95
             $typeArguments[] = $type;
96 96
         }
97 97
         if (count($typeArguments) > $expectedCount) {
98
-            throw UnexpectedTypeArgument::for($baseClass, count($typeArguments) - 1);
98
+            throw UnexpectedTypeArgument::for ($baseClass, count($typeArguments) - 1);
99 99
         }
100 100
         if (count($typeArguments) < $expectedCount) {
101
-            throw MissingTypeArgument::for($baseClass, count($typeArguments));
101
+            throw MissingTypeArgument::for ($baseClass, count($typeArguments));
102 102
         }
103 103
         return $typeArguments;
104 104
     }
@@ -119,6 +119,6 @@  discard block
 block discarded – undo
119 119
 
120 120
     private function shortNameOf(string $fqcn): string
121 121
     {
122
-        return substr(strrchr('\\' . $fqcn, '\\'), 1);
122
+        return substr(strrchr('\\'.$fqcn, '\\'), 1);
123 123
     }
124 124
 }
Please login to merge, or discard this patch.
src/Dissector/Error/TypeArgumentNotFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 final class TypeArgumentNotFound extends TypeError implements InvalidTypeArgument
9 9
 {
10
-    public static function for(
10
+    public static function for (
11 11
         string $class,
12 12
         string $genericBaseClass,
13 13
         int $typeParameter
Please login to merge, or discard this patch.
src/Dissector/Error/UnexpectedTypeArgument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 final class UnexpectedTypeArgument extends TypeError implements InvalidTypeArgument
9 9
 {
10
-    public static function for(
10
+    public static function for (
11 11
         string $genericBaseClass,
12 12
         int $typeParameter
13 13
     ): InvalidTypeArgument {
Please login to merge, or discard this patch.
src/Dissector/Error/MissingTypeArgument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 final class MissingTypeArgument extends TypeError implements InvalidTypeArgument
9 9
 {
10
-    public static function for(
10
+    public static function for (
11 11
         string $genericBaseClass,
12 12
         int $typeParameter
13 13
     ): InvalidTypeArgument {
Please login to merge, or discard this patch.
src/Dissector/MagicTypeDissector.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
     private function shortName(string $fqcn): string
136 136
     {
137
-        return substr(strrchr('\\' . $fqcn, '\\'), 1);
137
+        return substr(strrchr('\\'.$fqcn, '\\'), 1);
138 138
     }
139 139
 
140 140
     private function baseClass(
@@ -151,11 +151,10 @@  discard block
 block discarded – undo
151 151
         string ...$types
152 152
     ): array {
153 153
         return array_map(
154
-            function (string $argument) use ($detected, $caller): string {
154
+            function(string $argument) use ($detected, $caller): string {
155 155
                 return $detected->imports()[$argument] ??
156 156
                     ($this->primitives->includes($argument) ?
157
-                        $argument :
158
-                        sprintf('%s\\%s', $caller->namespace(), $argument)
157
+                        $argument : sprintf('%s\\%s', $caller->namespace(), $argument)
159 158
                     );
160 159
             },
161 160
             $types);
Please login to merge, or discard this patch.