| @@ -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 | |
| @@ -117,7 +117,7 @@ discard block | ||
| 117 | 117 | } | 
| 118 | 118 | $this->method = $method; | 
| 119 | 119 | $this->requestedPath = $requestedPath; | 
| 120 | - $this->defaultReturnType = ($defaultReturnType >=1 && $defaultReturnType <=7) ? $defaultReturnType : self::HTML; | |
| 120 | + $this->defaultReturnType = ($defaultReturnType >= 1 && $defaultReturnType <= 7) ? $defaultReturnType : self::HTML; | |
| 121 | 121 | } | 
| 122 | 122 | |
| 123 | 123 | public function withDefaultReturnType(int $defaultReturnType) : self | 
| @@ -134,7 +134,7 @@ discard block | ||
| 134 | 134 | return $new; | 
| 135 | 135 | } | 
| 136 | 136 | |
| 137 | - public function withCacheFile(?string $fileName=null) : self | |
| 137 | + public function withCacheFile(?string $fileName = null) : self | |
| 138 | 138 |      { | 
| 139 | 139 | $new = clone $this; | 
| 140 | 140 | $new->cacheFile = $fileName; | 
| @@ -192,7 +192,7 @@ discard block | ||
| 192 | 192 |          if ($returnType === null) { | 
| 193 | 193 | return $this->defaultReturnType; | 
| 194 | 194 | } | 
| 195 | - return ($returnType >=1 && $returnType <=7) ? $returnType : self::HTML; | |
| 195 | + return ($returnType >= 1 && $returnType <= 7) ? $returnType : self::HTML; | |
| 196 | 196 | } | 
| 197 | 197 | |
| 198 | 198 | private function checkRequestMethodIsValid(string $requestMethod) : void |