@@ -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 | } |
@@ -252,7 +252,7 @@ |
||
252 | 252 | * @param array $arr |
253 | 253 | * @param \SimpleXMLElement $simpleXML |
254 | 254 | */ |
255 | - private static function composeXML(array $arr, SimpleXMLElement &$simpleXML) |
|
255 | + private static function composeXML(array $arr, SimpleXMLElement & $simpleXML) |
|
256 | 256 | { |
257 | 257 | foreach ($arr as $key => $value) { |
258 | 258 | if (is_numeric($key)) { |
@@ -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 | } |
@@ -21,7 +21,9 @@ |
||
21 | 21 | use Quantum\Loader\Setup; |
22 | 22 | use Quantum\Di\Di; |
23 | 23 | |
24 | -if (!defined('DS')) define('DS', DIRECTORY_SEPARATOR); |
|
24 | +if (!defined('DS')) { |
|
25 | + define('DS', DIRECTORY_SEPARATOR); |
|
26 | +} |
|
25 | 27 | |
26 | 28 | /** |
27 | 29 | * Class App |
@@ -44,7 +44,7 @@ |
||
44 | 44 | function _message(string $subject, $params): string |
45 | 45 | { |
46 | 46 | if (is_array($params)) { |
47 | - return preg_replace_callback('/{%\d+}/', function () use (&$params) { |
|
47 | + return preg_replace_callback('/{%\d+}/', function() use (&$params) { |
|
48 | 48 | return array_shift($params); |
49 | 49 | }, $subject); |
50 | 50 | } else { |
@@ -127,7 +127,7 @@ |
||
127 | 127 | |
128 | 128 | if ($row) { |
129 | 129 | $this->fs->put($envFilePath, preg_replace( |
130 | - '/^'. $key . "=" . $row . '/m', |
|
130 | + '/^' . $key . "=" . $row . '/m', |
|
131 | 131 | $key . "=" . $value, |
132 | 132 | $this->fs->get($envFilePath) |
133 | 133 | )); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $this->findPatternMatches($uri); |
98 | 98 | |
99 | 99 | if (!count($this->matchedRoutes)) { |
100 | - stop(function () { |
|
100 | + stop(function() { |
|
101 | 101 | $this->response->html(partial('errors/404'), 404); |
102 | 102 | }); |
103 | 103 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | if (filter_var(config()->get(Debugger::DEBUG_ENABLED), FILTER_VALIDATE_BOOLEAN)) { |
120 | 120 | $routeInfo = []; |
121 | 121 | |
122 | - array_walk($matchedRoute, function ($value, $key) use (&$routeInfo) { |
|
122 | + array_walk($matchedRoute, function($value, $key) use (&$routeInfo) { |
|
123 | 123 | $routeInfo[ucfirst($key)] = json_encode($value); |
124 | 124 | }); |
125 | 125 |