@@ -59,7 +59,7 @@ |
||
59 | 59 | * @param object $object The object whose class to add. |
60 | 60 | * @return Name The name with added class. |
61 | 61 | */ |
62 | - public function for(object $object): Name |
|
62 | + public function for (object $object): Name |
|
63 | 63 | { |
64 | 64 | return new Name( |
65 | 65 | $this->prefix, |
@@ -76,8 +76,8 @@ |
||
76 | 76 | add($this->paths, [sprintf( |
77 | 77 | '%s:%s', |
78 | 78 | isObject($value) ? classOf($value) : typeOf($value), |
79 | - $name |
|
80 | - )]) |
|
79 | + $name |
|
80 | + )]) |
|
81 | 81 | ); |
82 | 82 | } |
83 | 83 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $properties = self::addTo($properties, $level, $reflection); |
43 | 43 | ++$level; |
44 | 44 | $reflection = $reflection->getParentClass(); |
45 | - } while($reflection); |
|
45 | + } while ($reflection); |
|
46 | 46 | ReflectionProperties::$cache[$theClass] = new self(...$properties); |
47 | 47 | } |
48 | 48 | return ReflectionProperties::$cache[$theClass]; |
@@ -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 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $this->newEntities = $newEntities; |
33 | 33 | } |
34 | 34 | |
35 | - public static function for($entity, Map $identityMap, object ...$newEntities): self |
|
35 | + public static function for ($entity, Map $identityMap, object ...$newEntities): self |
|
36 | 36 | { |
37 | 37 | return new self( |
38 | 38 | $entity, |
@@ -121,8 +121,7 @@ discard block |
||
121 | 121 | $new = clone $this; |
122 | 122 | $new->value = $property->getValue($this->value); |
123 | 123 | $new->name = $this->isTheOwner() ? |
124 | - $this->name->forReflected($property) : |
|
125 | - $this->name->for($this->value)->forReflected($property); |
|
124 | + $this->name->forReflected($property) : $this->name->for($this->value)->forReflected($property); |
|
126 | 125 | return $new; |
127 | 126 | } |
128 | 127 | } |
@@ -132,7 +132,7 @@ |
||
132 | 132 | ): RepresentsEntity { |
133 | 133 | return EntityState::ofThe(classOfThe($entity), $id, PropertyStates::list( |
134 | 134 | ...$this->extractor->extract( |
135 | - ExtractionRequest::for($entity, $map, ...$newEntities) |
|
135 | + ExtractionRequest::for ($entity, $map, ...$newEntities) |
|
136 | 136 | ) |
137 | 137 | )); |
138 | 138 | } |
@@ -132,8 +132,9 @@ |
||
132 | 132 | ): RepresentsEntity { |
133 | 133 | return EntityState::ofThe(classOfThe($entity), $id, PropertyStates::list( |
134 | 134 | ...$this->extractor->extract( |
135 | - ExtractionRequest::for($entity, $map, ...$newEntities) |
|
136 | - ) |
|
135 | + ExtractionRequest::for($entity, $map, ...$newEntities) { |
|
136 | + ) |
|
137 | 137 | )); |
138 | + } |
|
138 | 139 | } |
139 | 140 | } |