@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | * Class RegexURLParser |
| 16 | 16 | * @package LunixREST\APIRequest\URLParser\RegexURLParser |
| 17 | 17 | */ |
| 18 | -class RegexURLParser implements URLParser |
|
| 19 | -{ |
|
| 18 | +class RegexURLParser implements URLParser { |
|
| 20 | 19 | /** |
| 21 | 20 | * @var string |
| 22 | 21 | */ |
@@ -32,8 +31,7 @@ discard block |
||
| 32 | 31 | * @param MIMEProvider|null $MIMEProvider |
| 33 | 32 | * @throws InvalidRegexPatternException |
| 34 | 33 | */ |
| 35 | - public function __construct(string $pattern, ?MIMEProvider $MIMEProvider = null) |
|
| 36 | - { |
|
| 34 | + public function __construct(string $pattern, ?MIMEProvider $MIMEProvider = null) { |
|
| 37 | 35 | $this->pattern = $pattern; |
| 38 | 36 | |
| 39 | 37 | if(@preg_match($pattern, null) === false) { |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | * Class InvalidRequestURLException |
| 7 | 7 | * @package LunixREST\APIRequest\URLParser\RegexURLParser\Exceptions |
| 8 | 8 | */ |
| 9 | -class InvalidRegexPatternException extends \Exception |
|
| 10 | -{ |
|
| 9 | +class InvalidRegexPatternException extends \Exception { |
|
| 11 | 10 | |
| 12 | 11 | } |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace LunixREST\APIRequest\URLParser\Exceptions; |
| 3 | 3 | |
| 4 | -class UnableToProvideMIMEException extends \Exception |
|
| 5 | -{ |
|
| 4 | +class UnableToProvideMIMEException extends \Exception { |
|
| 6 | 5 | |
| 7 | 6 | } |
@@ -8,8 +8,7 @@ |
||
| 8 | 8 | * Interface MIMEProvider |
| 9 | 9 | * @package LunixREST\APIRequest\URLParser |
| 10 | 10 | */ |
| 11 | -interface MIMEProvider |
|
| 12 | -{ |
|
| 11 | +interface MIMEProvider { |
|
| 13 | 12 | /** |
| 14 | 13 | * @param string $fileExtension |
| 15 | 14 | * @return string |