@@ -118,7 +118,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | /** |