@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | private function renderMethod(\ReflectionMethod $method) |
| 42 | 42 | { |
| 43 | - $methodBody = file_get_contents(__DIR__.'/Generator/method.tpl'); |
|
| 43 | + $methodBody = file_get_contents(__DIR__ . '/Generator/method.tpl'); |
|
| 44 | 44 | |
| 45 | 45 | $modifier = ''; |
| 46 | 46 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | '<methodName>' => $method->getName(), |
| 74 | 74 | '<arguments>' => $this->getMethodParameters($method), |
| 75 | 75 | '<argumentsCall>' => '' !== $argumentsCall ? $argumentsCall : null, |
| 76 | - '<returnType>' => $method->hasReturnType() ? ': '.$method->getReturnType() : null |
|
| 76 | + '<returnType>' => $method->hasReturnType() ? ': ' . $method->getReturnType() : null |
|
| 77 | 77 | ]); |
| 78 | 78 | } |
| 79 | 79 | |
@@ -170,9 +170,9 @@ discard block |
||
| 170 | 170 | sprintf('Class %s is final and can therefor not be proxied', $class->getName()) |
| 171 | 171 | ); |
| 172 | 172 | } elseif ($class->isInterface()) { |
| 173 | - $classDeclaration .= ' implements ' . $class->getName() .', '.ProxyMockInterface::class; |
|
| 173 | + $classDeclaration .= ' implements ' . $class->getName() . ', ' . ProxyMockInterface::class; |
|
| 174 | 174 | } else { |
| 175 | - $classDeclaration .= ' extends ' . $class->getName().' implements '.ProxyMockInterface::class; |
|
| 175 | + $classDeclaration .= ' extends ' . $class->getName() . ' implements ' . ProxyMockInterface::class; |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | $methodCode = ''; |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | $methodCode .= $this->renderMethod($method) . PHP_EOL; |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | - $classBody = file_get_contents(__DIR__.'/Generator/class.tpl'); |
|
| 189 | + $classBody = file_get_contents(__DIR__ . '/Generator/class.tpl'); |
|
| 190 | 190 | |
| 191 | 191 | return strtr($classBody, [ |
| 192 | 192 | '<classDeclaration>' => $classDeclaration, |