@@ -56,6 +56,6 @@ |
||
| 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 | } |
@@ -147,7 +147,7 @@ |
||
| 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 | /** |
@@ -32,7 +32,7 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -462,7 +462,7 @@ |
||
| 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(); |