Passed
Push — dev_2x ( 1e248d...fedccd )
by Adrian
01:40
created
src/CodeGenerator/Observer/Relation/OneToManyObserver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
 
105 105
     private function addAggregates(ClassType $class)
106 106
     {
107
-        $mapper        = $this->relation->getMapper();
107
+        $mapper = $this->relation->getMapper();
108 108
         $aggregates = $this->relation->getAggregates();
109 109
 
110 110
         foreach ($aggregates as $name => $aggregate) {
Please login to merge, or discard this patch.
src/Entity/Tracker.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $this->relations[$name]        = $relation;
65 65
         $this->relationCallback[$name] = $callback;
66
-        if ( ! empty($nextLoad)) {
66
+        if (!empty($nextLoad)) {
67 67
             $this->relationNextLoad[$name] = $nextLoad;
68 68
         }
69 69
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     public function getResultsForRelation($name)
77 77
     {
78
-        if ( ! isset($this->relations[$name])) {
78
+        if (!isset($this->relations[$name])) {
79 79
             return [];
80 80
         }
81 81
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $result = [];
113 113
         foreach ($this->rows as $row) {
114 114
             $value = $this->getColumnsFromRow($row, $columns, $hydrator);
115
-            if ($value && ! in_array($value, $result)) {
115
+            if ($value && !in_array($value, $result)) {
116 116
                 $result[] = $value;
117 117
             }
118 118
         }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     public function getLazyAggregate(Aggregate $aggregate)
144 144
     {
145 145
         $name = $aggregate->getName();
146
-        if ( ! isset($this->lazyAggregates[$name])) {
146
+        if (!isset($this->lazyAggregates[$name])) {
147 147
             $this->lazyAggregates[$name] = new LazyAggregate($this, $aggregate);
148 148
         }
149 149
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     public function getLazyRelation(Relation $relation)
154 154
     {
155 155
         $name = $relation->getOption('name');
156
-        if ( ! isset($this->lazyRelations[$name])) {
156
+        if (!isset($this->lazyRelations[$name])) {
157 157
             $this->lazyRelations[$name] = new LazyRelation($this, $relation);
158 158
         }
159 159
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         }
190 190
 
191 191
         $queryNextLoad = $this->relationNextLoad[$name] ?? [];
192
-        if ($queryNextLoad && ! empty($queryNextLoad)) {
192
+        if ($queryNextLoad && !empty($queryNextLoad)) {
193 193
             foreach ($queryNextLoad as $next => $callback) {
194 194
                 $query = $query->load([$next => $callback]);
195 195
             }
Please login to merge, or discard this patch.
src/Action/Insert.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
          * For example, on one-to-many relations when persisting the "parent",
39 39
          * the actions that persist the "children" have to know about the parent's ID
40 40
          */
41
-        $this->entityHydrator->setPk($this->entity, (int) $connection->lastInsertId());
41
+        $this->entityHydrator->setPk($this->entity, (int)$connection->lastInsertId());
42 42
         $this->entity->setState(StateEnum::SYNCHRONIZED);
43 43
     }
44 44
 
45 45
     public function revert()
46 46
     {
47
-        if ( ! $this->hasRun) {
47
+        if (!$this->hasRun) {
48 48
             return;
49 49
         }
50 50
         $this->entityHydrator->setPk($this->entity, $this->entityId);
Please login to merge, or discard this patch.