Passed
Push — master ( 67bde4...fd9c16 )
by Alexander
02:42
created
src/Dispatch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     public function response(): ?Response
130 130
     {
131 131
         $cbs = $this->middlewares;
132
-        $call_eventual_route_at_end_of_chain = function (Request $request, Chain $chain): ?Response {
132
+        $call_eventual_route_at_end_of_chain = function(Request $request, Chain $chain): ?Response {
133 133
             $route = $request->route();
134 134
             if (is_null($route)) {
135 135
                 if (Environment::get('debug')) {
Please login to merge, or discard this patch.
src/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                  * @param string|int $v
141 141
                  * @return bool
142 142
                  */
143
-                function ($v) {
143
+                function($v) {
144 144
                     return !is_int($v);
145 145
                 },
146 146
                 \ARRAY_FILTER_USE_KEY
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         $url = self::$aliases[$url] ?? $url;
167 167
         return static::createRoute(
168 168
             $url,
169
-            function (Request $request): ?Response {
169
+            function(Request $request): ?Response {
170 170
                 $page = response\Page::fromRequest($request);
171 171
                 // @TODO BC breaking, but move this?
172 172
                 return $page->isValid() ? $page : null;
Please login to merge, or discard this patch.
src/traits/Model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
     public static function find(array $conditions = [], array $options = []): Generator
89 89
     {
90 90
         $conditions = self::filterByFields($conditions);
91
-        $with = array_key_exists('with', $options) ? (array)$options['with'] : false;
91
+        $with = array_key_exists('with', $options) ? (array) $options['with'] : false;
92 92
         unset($options['with']);
93 93
         $result = static::db()->find(static::table(), $conditions, $options);
94 94
         $pk = static::pk();
95
-        $gen = function () use ($result, $pk, $with) {
95
+        $gen = function() use ($result, $pk, $with) {
96 96
             foreach ($result as $row) {
97 97
                 $model = new static($row);
98 98
                 if ($with) {
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         if (empty($fields) === false) {
152 152
             $data = array_filter(
153 153
                 $data,
154
-                function ($key) use ($fields) {
154
+                function($key) use ($fields) {
155 155
                     return in_array($key, $fields);
156 156
                 },
157 157
                 ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.
src/data/PDO.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         if (empty($conditions)) {
185 185
             return "";
186 186
         }
187
-        $fun = function ($o, $v) use ($conditions) : string {
187
+        $fun = function($o, $v) use ($conditions) : string {
188 188
             if (is_array($conditions[$v])) {
189 189
                 $qa = [];
190 190
                 $index = 0;
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 
280 280
     private function data(array $data): string
281 281
     {
282
-        $fun = function ($o, $v): string {
282
+        $fun = function($o, $v): string {
283 283
             return "{$o}, {$v} = :d_{$v}";
284 284
         };
285 285
         return trim((string) array_reduce(array_keys($data), $fun, ""), ", ");
Please login to merge, or discard this patch.
src/util/Cli.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $argv = $this->getGlobalArgV();
47 47
 
48
-        $int_filter = function ($k): bool {
48
+        $int_filter = function($k): bool {
49 49
             return is_int($k);
50 50
         };
51 51
         $just_longs = array_filter($options_map, $int_filter, ARRAY_FILTER_USE_KEY);
52
-        $string_filter = function ($k): bool {
52
+        $string_filter = function($k): bool {
53 53
             return is_string($k);
54 54
         };
55 55
         $options_map = array_filter($options_map, $string_filter, ARRAY_FILTER_USE_KEY);
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
     protected function input(): void
112 112
     {
113 113
         $this->out("Running Command: [ {$this->command} ] from [ {$this->self} ]");
114
-        $flags = join(', ', array_keys(array_filter($this->args, function ($val): bool {
114
+        $flags = join(', ', array_keys(array_filter($this->args, function($val): bool {
115 115
             return $val === true;
116 116
         })));
117 117
         if (empty($flags) === false) {
118 118
             $this->out("Flags: [ {$flags} ]");
119 119
         }
120
-        $options = urldecode(http_build_query(array_filter($this->args, function ($val): bool {
120
+        $options = urldecode(http_build_query(array_filter($this->args, function($val): bool {
121 121
             return is_bool($val) === false;
122 122
         }), '', ", "));
123 123
         if (empty($options) === false) {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      */
230 230
     protected function progressBar(int $counter, int $total): void
231 231
     {
232
-        $length = (int) (($counter/$total) * 100);
232
+        $length = (int) (($counter / $total) * 100);
233 233
         $active = ($counter === $total) ? '' : '>';
234 234
         $loadbar = sprintf(
235 235
             "\r[%-100s] %d%% (%s/%s)",
Please login to merge, or discard this patch.
src/response/Page.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         try {
153 153
             if ($headfile && file_exists($headfile)) {
154 154
                 $sldkfjlksejflskjflskdjflskdfj = $headfile;
155
-                (function () use ($sldkfjlksejflskjflskdjflskdfj) {
155
+                (function() use ($sldkfjlksejflskjflskdjflskdfj) {
156 156
                     extract($this->data);
157 157
                     include $sldkfjlksejflskjflskdjflskdfj;
158 158
                 })();
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
             if ($neckfile && file_exists($neckfile)) {
162 162
                 $lidsinqjhsdfytqkwjkasjdksadsdg = $neckfile;
163
-                (function () use ($lidsinqjhsdfytqkwjkasjdksadsdg) {
163
+                (function() use ($lidsinqjhsdfytqkwjkasjdksadsdg) {
164 164
                     extract($this->data);
165 165
                     include $lidsinqjhsdfytqkwjkasjdksadsdg;
166 166
                 })();
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             ob_start();
216 216
             try {
217 217
                 $ldkfoskdfosjicyvutwehkshfskjdf = $footfile;
218
-                (function () use ($ldkfoskdfosjicyvutwehkshfskjdf) {
218
+                (function() use ($ldkfoskdfosjicyvutwehkshfskjdf) {
219 219
                     extract($this->data);
220 220
                     include $ldkfoskdfosjicyvutwehkshfskjdf;
221 221
                 })();
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         try {
244 244
             // or another way to hide the file variable?
245 245
             $dsfjskdfjsdlkfjsdkfjsdkfjsdlkfjsd = $file;
246
-            (function () use ($dsfjskdfjsdlkfjsdkfjsdkfjsdlkfjsd) {
246
+            (function() use ($dsfjskdfjsdlkfjsdkfjsdkfjsdlkfjsd) {
247 247
                 extract($this->data);
248 248
                 include $dsfjskdfjsdlkfjsdkfjsdkfjsdlkfjsd;
249 249
             })();
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         ob_start();
280 280
         try {
281 281
             $popsemdsdfosjicyvsoaowkdawd = $parts_file;
282
-            (function () use ($popsemdsdfosjicyvsoaowkdawd) {
282
+            (function() use ($popsemdsdfosjicyvsoaowkdawd) {
283 283
                 extract($this->data);
284 284
                 include $popsemdsdfosjicyvsoaowkdawd;
285 285
             })();
Please login to merge, or discard this patch.