@@ -15,8 +15,7 @@ |
||
15 | 15 | * Interface Server |
16 | 16 | * @package LunixREST\Server |
17 | 17 | */ |
18 | -interface Server |
|
19 | -{ |
|
18 | +interface Server { |
|
20 | 19 | /** |
21 | 20 | * @param APIRequest $request |
22 | 21 | * @return APIResponse |
@@ -7,8 +7,7 @@ |
||
7 | 7 | * Class APIResponse |
8 | 8 | * @package LunixREST\APIResponse |
9 | 9 | */ |
10 | -interface APIResponse |
|
11 | -{ |
|
10 | +interface APIResponse { |
|
12 | 11 | /** |
13 | 12 | * @return null|object|array |
14 | 13 | */ |
@@ -7,8 +7,7 @@ |
||
7 | 7 | * Class DefaultResponseFactory |
8 | 8 | * @package LunixREST\Response |
9 | 9 | */ |
10 | -class DefaultResponseFactory implements ResponseFactory |
|
11 | -{ |
|
10 | +class DefaultResponseFactory implements ResponseFactory { |
|
12 | 11 | /** |
13 | 12 | * @param ResponseData $data |
14 | 13 | * @param array $acceptedMIMETypes |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace LunixREST\Response\Exceptions; |
3 | 3 | |
4 | -class NotAcceptableResponseTypeException extends \Exception |
|
5 | -{ |
|
4 | +class NotAcceptableResponseTypeException extends \Exception { |
|
6 | 5 | |
7 | 6 | } |
@@ -7,15 +7,13 @@ discard block |
||
7 | 7 | * Class JSONResponse |
8 | 8 | * @package LunixREST\APIResponse |
9 | 9 | */ |
10 | -class JSONResponse implements APIResponse |
|
11 | -{ |
|
10 | +class JSONResponse implements APIResponse { |
|
12 | 11 | /** |
13 | 12 | * @var null|object|array |
14 | 13 | */ |
15 | 14 | public $data; |
16 | 15 | |
17 | - public function __construct($data) |
|
18 | - { |
|
16 | + public function __construct($data) { |
|
19 | 17 | $this->data = $data; |
20 | 18 | } |
21 | 19 | |
@@ -35,8 +33,7 @@ discard block |
||
35 | 33 | /** |
36 | 34 | * @return null|object|array |
37 | 35 | */ |
38 | - public function getResponseData() |
|
39 | - { |
|
36 | + public function getResponseData() { |
|
40 | 37 | return $this->data; |
41 | 38 | } |
42 | 39 | } |
@@ -3,8 +3,7 @@ |
||
3 | 3 | |
4 | 4 | use LunixREST\Response\Exceptions\NotAcceptableResponseTypeException; |
5 | 5 | |
6 | -interface ResponseFactory |
|
7 | -{ |
|
6 | +interface ResponseFactory { |
|
8 | 7 | /** |
9 | 8 | * @param ResponseData $data |
10 | 9 | * @param array $acceptedMIMETypes - acceptable MIME types in order of preference |