@@ -10,7 +10,7 @@ discard block |
||
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 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | } |
116 | 116 | $this->method = $method; |
117 | 117 | $this->requestedPath = $requestedPath; |
118 | - $this->defaultReturnType = ($defaultReturnType >=1 && $defaultReturnType <=7) ? $defaultReturnType : self::HTML; |
|
118 | + $this->defaultReturnType = ($defaultReturnType >= 1 && $defaultReturnType <= 7) ? $defaultReturnType : self::HTML; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | public function withSubFolder(string $folder) : self |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | if ($returnType === null) { |
184 | 184 | return $this->defaultReturnType; |
185 | 185 | } |
186 | - return ($returnType >=1 && $returnType <=7) ? $returnType : self::HTML; |
|
186 | + return ($returnType >= 1 && $returnType <= 7) ? $returnType : self::HTML; |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | private function checkRequestMethodIsValid(string $requestMethod) : void |