|
@@ -40,7 +40,7 @@ discard block |
|
|
block discarded – undo |
|
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 |
|
|
block discarded – undo |
|
73
|
73
|
'<methodName>' => $method->name, |
|
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
|
|
|
@@ -171,7 +171,7 @@ discard block |
|
|
block discarded – undo |
|
171
|
171
|
sprintf('Class %s is final and can therefor not be proxied', $class->name) |
|
172
|
172
|
); |
|
173
|
173
|
} elseif ($class->isInterface()) { |
|
174
|
|
- $classDeclaration .= ' implements ' . $class->name .', ' . ProxyMockInterface::class; |
|
|
174
|
+ $classDeclaration .= ' implements ' . $class->name . ', ' . ProxyMockInterface::class; |
|
175
|
175
|
} else { |
|
176
|
176
|
$classDeclaration .= ' extends ' . $class->name . ' implements ' . ProxyMockInterface::class; |
|
177
|
177
|
} |
Please login to merge, or discard this patch.