@@ -20,7 +20,7 @@ |
||
20 | 20 | $this->setParameter(new ParameterGenerator('methodName')); |
21 | 21 | |
22 | 22 | $body = |
23 | - "foreach (\$this->$methodReplacementsProperty as \$replacementDefinition) {\n" |
|
23 | + "foreach (\$this->$methodReplacementsProperty as \$replacementDefinition) {\n" |
|
24 | 24 | . " if (\$replacementDefinition->getMethod()->isEqualTo(\$methodName)) {\n" |
25 | 25 | . " return \$replacementDefinition;\n" |
26 | 26 | . " }\n" |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function __construct(PropertyGenerator $methodReplacementsProperty) |
15 | 15 | { |
16 | 16 | parent::__construct('getMethodReplacement'); |
17 | - $methodReplacementsProperty = $methodReplacementsProperty->getName(); |
|
17 | + $methodReplacementsProperty = $methodReplacementsProperty->getName(); |
|
18 | 18 | $this->setVisibility(self::VISIBILITY_PRIVATE); |
19 | 19 | |
20 | 20 | $this->setParameter(new ParameterGenerator('methodName')); |
@@ -13,9 +13,9 @@ |
||
13 | 13 | public function __construct(PropertyGenerator $methodReplacementsProperty) |
14 | 14 | { |
15 | 15 | parent::__construct('getMethodReplacements'); |
16 | - $methodReplacementsProperty = $methodReplacementsProperty->getName(); |
|
16 | + $methodReplacementsProperty = $methodReplacementsProperty->getName(); |
|
17 | 17 | $this->setDocblock('{@inheritDoc}'); |
18 | 18 | |
19 | - $this->setBody("return \$this->" . $methodReplacementsProperty . ";"); |
|
19 | + $this->setBody("return \$this->".$methodReplacementsProperty.";"); |
|
20 | 20 | } |
21 | 21 | } |