Passed
Push — develop ( 0559f7...d479cf )
by nguereza
10:40
created
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
     public function add(
141 141
         string $pattern,
142 142
         mixed $handler,
143
-        array|string $methods,
143
+        array | string $methods,
144 144
         string $name = '',
145 145
         array $attributes = []
146 146
     ): Route {
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
             $name = trim($pattern, '/');
431 431
         }
432 432
 
433
-        $this->group($pattern, function (Router $router) use ($handler, $maps, $name, $attributes) {
433
+        $this->group($pattern, function(Router $router) use ($handler, $maps, $name, $attributes) {
434 434
             foreach ($maps as $map) {
435 435
                 if ($map['many']) {
436 436
                     /** @var Route $route */
Please login to merge, or discard this patch.
src/Route.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         string $pattern,
145 145
         mixed $handler,
146 146
         ?string $name = null,
147
-        array|string $methods = [],
147
+        array | string $methods = [],
148 148
         array $attributes = []
149 149
     ) {
150 150
         $this->pattern = $pattern;
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         $this->name = $name ?? '';
154 154
         $this->attributes = $attributes;
155 155
         
156
-        if(is_string($methods)){
156
+        if (is_string($methods)) {
157 157
             $methods = [$methods];
158 158
         }
159 159
 
Please login to merge, or discard this patch.