@@ -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 | } |
@@ -42,17 +42,17 @@ discard block |
||
| 42 | 42 | $this->validateLazyProperty($property); |
| 43 | 43 | |
| 44 | 44 | if ($this->wasInitialized($property)) { |
| 45 | - continue ; |
|
| 45 | + continue; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | if (!$property->hasTriggers()) { |
| 49 | 49 | $this->initializeProperty($property, $targetObject); |
| 50 | - continue ; |
|
| 50 | + continue; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | if ($property->isTriggeredBy($triggerMethod)) { |
| 54 | 54 | $this->initializeProperty($property, $targetObject); |
| 55 | - continue ; |
|
| 55 | + continue; |
|
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | } |
@@ -91,9 +91,9 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | private function initializeProperty(LazyProperty $property, $targetObject) |
| 93 | 93 | { |
| 94 | - $defaultValue = $this->propertyAccessor->get($targetObject, (string)$property->getName()); |
|
| 94 | + $defaultValue = $this->propertyAccessor->get($targetObject, (string) $property->getName()); |
|
| 95 | 95 | $newValue = $property->getValueInitializer()->initialize($targetObject, $defaultValue); |
| 96 | - $this->propertyAccessor->set($targetObject, (string)$property->getName(), $newValue); |
|
| 96 | + $this->propertyAccessor->set($targetObject, (string) $property->getName(), $newValue); |
|
| 97 | 97 | $this->markAsInitialized($property); |
| 98 | 98 | |
| 99 | 99 | if ($property->hasInitializationCallback()) { |