@@ -64,15 +64,15 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |