@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $this->visited = $visited; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - public static function for($entity, Map $identityMap): self |
|
| 31 | + public static function for ($entity, Map $identityMap): self |
|
| 32 | 32 | { |
| 33 | 33 | return new self( |
| 34 | 34 | $entity, |
@@ -115,8 +115,7 @@ discard block |
||
| 115 | 115 | public function forProperty(ReflectionProperty $property): self |
| 116 | 116 | { |
| 117 | 117 | $name = $this->isTheOwner() ? |
| 118 | - $this->name : |
|
| 119 | - $this->name->for($this->value); |
|
| 118 | + $this->name : $this->name->for($this->value); |
|
| 120 | 119 | |
| 121 | 120 | return new self( |
| 122 | 121 | $property->getValue($this->value), |
@@ -60,8 +60,7 @@ |
||
| 60 | 60 | } |
| 61 | 61 | if (empty($properties)) { |
| 62 | 62 | return $request->isTheOwner() ? |
| 63 | - [] : |
|
| 64 | - [PropertyState::with((string) $request->objectName(), null)]; |
|
| 63 | + [] : [PropertyState::with((string) $request->objectName(), null)]; |
|
| 65 | 64 | } |
| 66 | 65 | return these(...$properties); |
| 67 | 66 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | return StateRepresentation::with( |
| 74 | 74 | EntityStates::list(...extractWith( |
| 75 | - function (object $entity) use ($map): RepresentsEntity { |
|
| 75 | + function(object $entity) use ($map): RepresentsEntity { |
|
| 76 | 76 | return $this->stateOfThe($entity, $map); |
| 77 | 77 | }, $objects |
| 78 | 78 | )), |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | classOfThe($entity), |
| 88 | 88 | $map->idOf($entity), |
| 89 | 89 | PropertyStates::list(...$this->extractor->extract( |
| 90 | - ExtractionRequest::for($entity, $map) |
|
| 90 | + ExtractionRequest::for ($entity, $map) |
|
| 91 | 91 | )) |
| 92 | 92 | ); |
| 93 | 93 | } |
@@ -87,8 +87,9 @@ |
||
| 87 | 87 | classOfThe($entity), |
| 88 | 88 | $map->idOf($entity), |
| 89 | 89 | PropertyStates::list(...$this->extractor->extract( |
| 90 | - ExtractionRequest::for($entity, $map) |
|
| 91 | - )) |
|
| 90 | + ExtractionRequest::for($entity, $map) { |
|
| 91 | + )) |
|
| 92 | 92 | ); |
| 93 | + } |
|
| 93 | 94 | } |
| 94 | 95 | } |