@@ -3,8 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use LunixREST\Endpoint\Exceptions\UnknownEndpointException; |
5 | 5 | |
6 | -interface EndpointFactory |
|
7 | -{ |
|
6 | +interface EndpointFactory { |
|
8 | 7 | /** |
9 | 8 | * @param string $name |
10 | 9 | * @param string $version |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace LunixREST\Endpoint\Exceptions; |
3 | 3 | |
4 | -class UnknownEndpointException extends \Exception |
|
5 | -{ |
|
4 | +class UnknownEndpointException extends \Exception { |
|
6 | 5 | |
7 | 6 | } |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace LunixREST\Endpoint\Exceptions; |
3 | 3 | |
4 | -class UnsupportedMethodException extends \Exception |
|
5 | -{ |
|
4 | +class UnsupportedMethodException extends \Exception { |
|
6 | 5 | |
7 | 6 | } |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace LunixREST\Exceptions; |
3 | 3 | |
4 | -class InstanceNotFoundException extends \Exception |
|
5 | -{ |
|
4 | +class InstanceNotFoundException extends \Exception { |
|
6 | 5 | |
7 | 6 | } |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace LunixREST\Exceptions; |
3 | 3 | |
4 | -class InvalidAPIKeyException extends \Exception |
|
5 | -{ |
|
4 | +class InvalidAPIKeyException extends \Exception { |
|
6 | 5 | |
7 | 6 | } |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace LunixREST\Exceptions; |
3 | 3 | |
4 | -class AccessDeniedException extends \Exception |
|
5 | -{ |
|
4 | +class AccessDeniedException extends \Exception { |
|
6 | 5 | |
7 | 6 | } |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace LunixREST\Exceptions; |
3 | 3 | |
4 | -class ThrottleLimitExceededException extends \Exception |
|
5 | -{ |
|
4 | +class ThrottleLimitExceededException extends \Exception { |
|
6 | 5 | |
7 | 6 | } |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace LunixREST\Server\Exceptions; |
3 | 3 | |
4 | -class MethodNotFoundException extends \Exception |
|
5 | -{ |
|
4 | +class MethodNotFoundException extends \Exception { |
|
6 | 5 | |
7 | 6 | } |
@@ -7,8 +7,7 @@ |
||
7 | 7 | * Interface AccessControl |
8 | 8 | * @package LunixREST\AccessControl |
9 | 9 | */ |
10 | -interface AccessControl |
|
11 | -{ |
|
10 | +interface AccessControl { |
|
12 | 11 | /** |
13 | 12 | * Validates if a given request should be able to access what it's trying to |
14 | 13 | * @param $request |