Completed
Push — master ( fff5f3...fc4fc8 )
by Thomas
02:20
created
src/Relation/OneToMany.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,6 +56,6 @@
 block discarded – undo
56 56
             $expression[] = $alias . '.' . $myVar . ' = ' . $this->name . '.' . $hisVar;
57 57
         }
58 58
 
59
-        call_user_func([ $fetcher, $join ], $this->class, implode(' AND ', $expression), $this->name, [], true);
59
+        call_user_func([$fetcher, $join], $this->class, implode(' AND ', $expression), $this->name, [], true);
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
src/Relation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
 //            return null;
148 148
 //        }
149 149
 
150
-        return call_user_func([ $this->class, 'getRelation' ], $this->opponent);
150
+        return call_user_func([$this->class, 'getRelation'], $this->opponent);
151 151
     }
152 152
 
153 153
     /**
Please login to merge, or discard this patch.
src/MockTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function ormInitMock($options = [], $driver = 'mysql')
33 33
     {
34 34
         /** @var EntityManager|m\MockInterface $em */
35
-        $em = m::mock(EntityManager::class, [ $options ])->makePartial();
35
+        $em = m::mock(EntityManager::class, [$options])->makePartial();
36 36
         /** @var \PDO|m\MockInterface $pdo */
37 37
         $pdo = m::mock(\PDO::class);
38 38
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         $em = $em ?: EntityManager::getInstance($class);
140 140
 
141 141
         /** @var m\MockInterface|EntityFetcher $fetcher */
142
-        $fetcher = m::mock(EntityFetcher::class, [ $em, $class ])->makePartial();
142
+        $fetcher = m::mock(EntityFetcher::class, [$em, $class])->makePartial();
143 143
         $em->shouldReceive('fetch')->with($class)->once()->andReturn($fetcher);
144 144
 
145 145
         $fetcher->shouldReceive('count')->with()->andReturn(count($entities))->byDefault();
Please login to merge, or discard this patch.
src/EntityManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -462,7 +462,7 @@
 block discarded – undo
462 462
         }
463 463
 
464 464
         if (!is_array($primaryKey)) {
465
-            $primaryKey = [ $primaryKey ];
465
+            $primaryKey = [$primaryKey];
466 466
         }
467 467
 
468 468
         $primaryKeyVars = $class::getPrimaryKeyVars();
Please login to merge, or discard this patch.