Passed
Push — master ( 8ca757...1a1ada )
by Jesse
02:49
created
src/Internal/Name.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Internal/Visited.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,8 +76,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Internal/ReflectionProperties.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Internal/ObjectExtractor.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Internal/ExtractionRequest.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Extract.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,8 +132,9 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.