Test Setup Failed
Push — master ( 49b9dc...580cf3 )
by Mehmet
01:46
created
src/Router.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -153,6 +153,9 @@
 block discarded – undo
153 153
         return $requestPath;
154 154
     }
155 155
 
156
+    /**
157
+     * @param string $requestMethods
158
+     */
156 159
     public function add(
157 160
         $requestMethods,
158 161
         string $route,
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  * @link     https://github.com/selamiphp/router
11 11
  */
12 12
 
13
-declare(strict_types = 1);
13
+declare(strict_types=1);
14 14
 
15 15
 namespace Selami\Router;
16 16
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         }
117 117
         $this->method = $method;
118 118
         $this->requestedPath = rtrim($requestedPath, '/');
119
-        $this->defaultReturnType = ($defaultReturnType >=1 && $defaultReturnType <=7) ? $defaultReturnType : self::HTML;
119
+        $this->defaultReturnType = ($defaultReturnType >= 1 && $defaultReturnType <= 7) ? $defaultReturnType : self::HTML;
120 120
     }
121 121
 
122 122
     public static function createWithServerRequestInterface(int $defaultReturnType, ServerRequestInterface $request)
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         return $new;
139 139
     }
140 140
 
141
-    public function withCacheFile(?string $fileName=null) : self
141
+    public function withCacheFile(?string $fileName = null) : self
142 142
     {
143 143
         $new = clone $this;
144 144
         $new->cacheFile = $fileName;
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
         if ($returnType === null) {
197 197
             return $this->defaultReturnType;
198 198
         }
199
-        return ($returnType >=1 && $returnType <=7) ? $returnType : self::HTML;
199
+        return ($returnType >= 1 && $returnType <= 7) ? $returnType : self::HTML;
200 200
     }
201 201
 
202 202
     private function checkRequestMethodIsValid(string $requestMethod) : void
Please login to merge, or discard this patch.