@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function select(...$columns): DbalInterface |
| 33 | 33 | { |
| 34 | - array_walk($columns, function (&$column) { |
|
| 34 | + array_walk($columns, function(&$column) { |
|
| 35 | 35 | if (is_array($column)) { |
| 36 | 36 | $column = array_flip($column); |
| 37 | 37 | } |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | $switch = $nextItem['switch']; |
| 84 | 84 | $joinType = $nextItem['type']; |
| 85 | 85 | |
| 86 | - $queryBuilder->join(function ($item) use ($currentItem, $modelToJoin, $switch, $joinType, $level) { |
|
| 86 | + $queryBuilder->join(function($item) use ($currentItem, $modelToJoin, $switch, $joinType, $level) { |
|
| 87 | 87 | |
| 88 | 88 | $newQueryBuilder = (new self($modelToJoin->table))->getOrmModel()->createQueryBuilder(); |
| 89 | 89 | |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function select(...$columns): DbalInterface |
| 33 | 33 | { |
| 34 | - array_walk($columns, function (&$column) { |
|
| 34 | + array_walk($columns, function(&$column) { |
|
| 35 | 35 | if (is_array($column)) { |
| 36 | 36 | $column = array_flip($column); |
| 37 | 37 | } |
@@ -74,8 +74,8 @@ |
||
| 74 | 74 | foreach ($reflection->getParameters() as $param) { |
| 75 | 75 | $type = $param->getType(); |
| 76 | 76 | |
| 77 | - if(!self::instantiable($type)) { |
|
| 78 | - if($type && $type->getName() == 'array') { |
|
| 77 | + if (!self::instantiable($type)) { |
|
| 78 | + if ($type && $type->getName() == 'array') { |
|
| 79 | 79 | array_push($params, $additional); |
| 80 | 80 | } else { |
| 81 | 81 | array_push($params, current($additional)); |