@@ -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 | } |
@@ -169,7 +169,7 @@ |
||
169 | 169 | } else { |
170 | 170 | $this->isGroup = false; |
171 | 171 | foreach ($this->virtualRoutes[$lastKeyOfFirstRound] as &$route) { |
172 | - if(!key_exists('middlewares', $route)) { |
|
172 | + if (!key_exists('middlewares', $route)) { |
|
173 | 173 | $route['middlewares'] = $middlewares; |
174 | 174 | } else { |
175 | 175 | $reversedMiddlewares = array_reverse($middlewares); |
@@ -85,7 +85,7 @@ |
||
85 | 85 | |
86 | 86 | $this->migrationFolder = base_dir() . DS . 'migrations'; |
87 | 87 | |
88 | - if(!$this->fs->isDirectory($this->migrationFolder)) { |
|
88 | + if (!$this->fs->isDirectory($this->migrationFolder)) { |
|
89 | 89 | throw FileSystemException::directoryNotExists($this->migrationFolder); |
90 | 90 | } |
91 | 91 | } |
@@ -236,8 +236,8 @@ discard block |
||
236 | 236 | * @param array $data |
237 | 237 | * @return string |
238 | 238 | */ |
239 | - public static function getJsonPData($data){ |
|
240 | - return self::$callbackFunction.'('.json_encode($data).")"; |
|
239 | + public static function getJsonPData($data) { |
|
240 | + return self::$callbackFunction . '(' . json_encode($data) . ")"; |
|
241 | 241 | } |
242 | 242 | |
243 | 243 | /** |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * @param array $arr |
301 | 301 | * @param \SimpleXMLElement $simpleXML |
302 | 302 | */ |
303 | - private static function composeXML(array $arr, SimpleXMLElement &$simpleXML) |
|
303 | + private static function composeXML(array $arr, SimpleXMLElement & $simpleXML) |
|
304 | 304 | { |
305 | 305 | foreach ($arr as $key => $value) { |
306 | 306 | if (is_numeric($key)) { |