Completed
Push — master ( 8d337c...be4e4a )
by Mehmet
08:25
created
src/Router.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         string $method,
119 119
         string $requestedPath,
120 120
         string $folder = '',
121
-        ?string $cachedFile = null
121
+        ? string $cachedFile = null
122 122
     ) {
123 123
         if (!in_array($method, self::$validRequestMethods, true)) {
124 124
             $message = sprintf('%s is not valid Http request method.', $method);
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         }
127 127
         $this->method = $method;
128 128
         $this->requestedPath = $this->extractFolder($requestedPath, $folder);
129
-        $this->defaultReturnType = ($defaultReturnType >=1 && $defaultReturnType <=7) ? $defaultReturnType : self::HTML;
129
+        $this->defaultReturnType = ($defaultReturnType >= 1 && $defaultReturnType <= 7) ? $defaultReturnType : self::HTML;
130 130
         $this->cachedFile = $cachedFile;
131 131
     }
132 132
 
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
         $requestMethods,
164 164
         string $route,
165 165
         $action,
166
-        ?int $returnType = null,
167
-        ?string $alias = null
166
+        ? int $returnType = null,
167
+        ? string $alias = null
168 168
     ) : void {
169 169
     
170 170
         $requestMethodsGiven = is_array($requestMethods) ? (array) $requestMethods : [0 => $requestMethods];
@@ -202,12 +202,12 @@  discard block
 block discarded – undo
202 202
      * @param int|null $returnType
203 203
      * @return int
204 204
      */
205
-    private function determineReturnType(?int $returnType) : int
205
+    private function determineReturnType(? int $returnType) : int
206 206
     {
207 207
         if ($returnType === null) {
208 208
             return $this->defaultReturnType;
209 209
         }
210
-        return ($returnType >=1 && $returnType <=7) ? $returnType : self::HTML;
210
+        return ($returnType >= 1 && $returnType <= 7) ? $returnType : self::HTML;
211 211
     }
212 212
 
213 213
     /**
Please login to merge, or discard this patch.