Completed
Push — master ( 71ca86...efae2c )
by Dominik
04:01
created
src/Generator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,15 +64,15 @@  discard block
 block discarded – undo
64 64
         $classNode = new Namespace_(
65 65
             new Name(implode('\\', $lazyNamespaceParts)), array(
66 66
                 new Class_($lazyClass, array(
67
-                    'extends' => new Name('\\' . $mapping->getOriginalClass()),
67
+                    'extends' => new Name('\\'.$mapping->getOriginalClass()),
68 68
                     'stmts' => $nodes,
69 69
                 )),
70 70
             )
71 71
         );
72 72
 
73
-        $phpCode = '<?php' . "\n\n" . $this->phpGenerator->prettyPrint(array($classNode));
73
+        $phpCode = '<?php'."\n\n".$this->phpGenerator->prettyPrint(array($classNode));
74 74
 
75
-        file_put_contents($path . DIRECTORY_SEPARATOR . $lazyClass . '.php', $phpCode);
75
+        file_put_contents($path.DIRECTORY_SEPARATOR.$lazyClass.'.php', $phpCode);
76 76
     }
77 77
 
78 78
     /**
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                         'stmts' => array(
179 179
                             new Assign(
180 180
                                 new PropertyFetch(new Variable('this'), self::PROP_ORIGINAL),
181
-                                new New_(new Name('\\' . $mapping->getOriginalClass()), $args)
181
+                                new New_(new Name('\\'.$mapping->getOriginalClass()), $args)
182 182
                             ),
183 183
                         ),
184 184
                     )
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
     protected function getParameterTypeHint(\ReflectionParameter $reflectionParameter)
325 325
     {
326 326
         if (null !== $class = $reflectionParameter->getClass()) {
327
-            return '\\' . $class->getName();
327
+            return '\\'.$class->getName();
328 328
         } elseif ($reflectionParameter->isArray()) {
329 329
             return 'array';
330 330
         }
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
      */
355 355
     protected function prepareStatement($value)
356 356
     {
357
-        $method = 'prepareStatmentFor' . ucfirst(gettype($value));
357
+        $method = 'prepareStatmentFor'.ucfirst(gettype($value));
358 358
         if (!is_callable(array($this, $method))) {
359 359
             throw new \InvalidArgumentException(sprintf('Can\'t prepare default statement for type: %s', gettype($value)));
360 360
         }
Please login to merge, or discard this patch.