Completed
Pull Request — 1.1 (#10)
by David
02:39 queued 49s
created
src/Definition/VariableUtils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
 
24 24
             $numbers = '';
25 25
             while (true) {
26
-                $lastCharacter = substr($variable, strlen($variable) - 1);
26
+                $lastCharacter = substr($variable, strlen($variable)-1);
27 27
                 if ($lastCharacter >= '0' && $lastCharacter <= '9') {
28 28
                     $numbers = $lastCharacter.$numbers;
29
-                    $variable = substr($variable, 0, strlen($variable) - 1);
29
+                    $variable = substr($variable, 0, strlen($variable)-1);
30 30
                 } else {
31 31
                     break;
32 32
                 }
Please login to merge, or discard this patch.
src/Compiler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             $convertedDefinitions[$identifier] = $this->converter->convert($identifier, $definition);
178 178
         }
179 179
 
180
-        $allDefinitions = $convertedDefinitions + $this->dumpableDefinitions;
180
+        $allDefinitions = $convertedDefinitions+$this->dumpableDefinitions;
181 181
 
182 182
         foreach ($allDefinitions as $identifier => $definition) {
183 183
             $inlineEntry = $definition->toPhpCode('$container', ['$container']);
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
     {
197 197
         $pos = strrpos($className, '\\');
198 198
         if ($pos !== false) {
199
-            $shortClassName = substr($className, $pos + 1);
199
+            $shortClassName = substr($className, $pos+1);
200 200
             $namespaceLine = 'namespace '.substr($className, 0, $pos).';';
201 201
         } else {
202 202
             $shortClassName = $className;
Please login to merge, or discard this patch.
src/ServiceProvider/ServiceProviderLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         } elseif (is_string($callable) && strpos($callable, '::') !== false) {
154 154
             $pos = strpos($callable, '::');
155 155
             $className = substr($callable, 0, $pos);
156
-            $methodName = substr($callable, $pos + 2);
156
+            $methodName = substr($callable, $pos+2);
157 157
 
158 158
             return new FactoryCallDefinition($decoratedServiceName, $className, $methodName, [$containerDefinition]);
159 159
         }
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         } elseif (is_string($callable) && strpos($callable, '::') !== false) {
184 184
             $pos = strpos($callable, '::');
185 185
             $className = substr($callable, 0, $pos);
186
-            $methodName = substr($callable, $pos + 2);
186
+            $methodName = substr($callable, $pos+2);
187 187
 
188 188
             return new FactoryCallDefinition($decoratedServiceName, $className, $methodName, [$containerDefinition, $previousDefinition]);
189 189
         }
Please login to merge, or discard this patch.