Passed
Pull Request — master (#116)
by Dmitriy
01:38
created
src/ClassRenderer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     private function renderImplements(array $interfaces): string
30 30
     {
31
-        return $interfaces !== [] ? ' implements '  . implode(' ', $interfaces) : '';
31
+        return $interfaces !== [] ? ' implements ' . implode(' ', $interfaces) : '';
32 32
     }
33 33
 
34 34
     private function renderModifiers(array $modifiers)
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
     private function renderReturn(MethodConfig $method): string
101 101
     {
102
-        return $method->hasReturnType ? ($method->returnType->name === 'void' ? '': 'return ') : 'return ';
102
+        return $method->hasReturnType ? ($method->returnType->name === 'void' ? '' : 'return ') : 'return ';
103 103
     }
104 104
 
105 105
     private function renderReturnType(MethodConfig $method): string
@@ -126,10 +126,10 @@  discard block
 block discarded – undo
126 126
                 $output = $var ? 'true' : 'false';
127 127
                 break;
128 128
             case 'integer':
129
-                $output = (string)$var;
129
+                $output = (string) $var;
130 130
                 break;
131 131
             case 'double':
132
-                $output = (string)$var;
132
+                $output = (string) $var;
133 133
                 break;
134 134
             case 'string':
135 135
                 $output = "'" . addslashes($var) . "'";
Please login to merge, or discard this patch.
src/ContainerInterfaceProxy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     public function isActive(): bool
65 65
     {
66
-        return $this->active && ($this->commonCollector !== null || $this->dispatcher !==null) && $this->trackedServices !== [];
66
+        return $this->active && ($this->commonCollector !== null || $this->dispatcher !== null) && $this->trackedServices !== [];
67 67
     }
68 68
 
69 69
     public function get($id, array $params = [])
Please login to merge, or discard this patch.