Passed
Push — master ( 2a29e8...d38419 )
by 世昌
01:50
created
nebula/src/application/route/MatchResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
             $object = $class->getMethod('instance')->invoke(null);
182 182
             $context->setResponse($object);
183 183
             $class->getMethod('proccess')->invokeArgs($object, [
184
-                new Runnable([$object,'onRequest']),
184
+                new Runnable([$object, 'onRequest']),
185 185
                 $this->getRequest($context),
186 186
                 $this->matcher->getAttribute('buffer', true),
187 187
                 $context->isDebug(),
Please login to merge, or discard this patch.
nebula/src/component/route/RouteMatcher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
     protected $matcher;
40 40
     
41 41
 
42
-    public function __construct(array $methods, string $uri, array $attribute=[])
42
+    public function __construct(array $methods, string $uri, array $attribute = [])
43 43
     {
44
-        array_walk($methods, function ($value) {
44
+        array_walk($methods, function($value) {
45 45
             return strtoupper($value);
46 46
         });
47 47
         $this->methods = $methods;
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      * @param RequestInterface $request
158 158
      * @return array|null
159 159
      */
160
-    public function match(RequestInterface $request):?array
160
+    public function match(RequestInterface $request): ?array
161 161
     {
162 162
         if (count($this->methods) > 0 && !\in_array($request->getMethod(), $this->methods)) {
163 163
             return null;
Please login to merge, or discard this patch.