Passed
Push — master ( fd9c16...3aee77 )
by Alexander
03:11
created
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
-                static function ($key) use ($fields) {
154
+                static 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/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
-                static function ($v) {
143
+                static 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
-            static function (Request $request): ?Response {
169
+            static 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/Dispatch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
     public function response(): ?Response
133 133
     {
134 134
         $cbs = $this->middlewares;
135
-        $call_eventual_route_at_end_of_chain = static function (Request $request, Chain $chain): ?Response {
135
+        $call_eventual_route_at_end_of_chain = static function(Request $request, Chain $chain): ?Response {
136 136
             $route = $request->route();
137 137
             if (is_null($route)) {
138 138
                 if (Environment::get('debug')) {
Please login to merge, or discard this patch.