@@ -9,15 +9,13 @@ discard block |
||
9 | 9 | * Class Endpoint |
10 | 10 | * @package LunixREST\Endpoints |
11 | 11 | */ |
12 | -class DefaultEndpoint implements Endpoint |
|
13 | -{ |
|
12 | +class DefaultEndpoint implements Endpoint { |
|
14 | 13 | /** |
15 | 14 | * @param APIRequest $request |
16 | 15 | * @return null|array|object |
17 | 16 | * @throws UnsupportedMethodException |
18 | 17 | */ |
19 | - public function get(APIRequest $request) |
|
20 | - { |
|
18 | + public function get(APIRequest $request) { |
|
21 | 19 | throw new UnsupportedMethodException('Method not supported'); |
22 | 20 | } |
23 | 21 | |
@@ -26,8 +24,7 @@ discard block |
||
26 | 24 | * @return null|array|object |
27 | 25 | * @throws UnsupportedMethodException |
28 | 26 | */ |
29 | - public function getAll(APIRequest $request) |
|
30 | - { |
|
27 | + public function getAll(APIRequest $request) { |
|
31 | 28 | throw new UnsupportedMethodException('Method not supported'); |
32 | 29 | } |
33 | 30 | |
@@ -36,8 +33,7 @@ discard block |
||
36 | 33 | * @return null|array|object |
37 | 34 | * @throws UnsupportedMethodException |
38 | 35 | */ |
39 | - public function post(APIRequest $request) |
|
40 | - { |
|
36 | + public function post(APIRequest $request) { |
|
41 | 37 | throw new UnsupportedMethodException('Method not supported'); |
42 | 38 | } |
43 | 39 | |
@@ -46,8 +42,7 @@ discard block |
||
46 | 42 | * @return null|array|object |
47 | 43 | * @throws UnsupportedMethodException |
48 | 44 | */ |
49 | - public function postAll(APIRequest $request) |
|
50 | - { |
|
45 | + public function postAll(APIRequest $request) { |
|
51 | 46 | throw new UnsupportedMethodException('Method not supported'); |
52 | 47 | } |
53 | 48 | |
@@ -56,8 +51,7 @@ discard block |
||
56 | 51 | * @return null|array|object |
57 | 52 | * @throws UnsupportedMethodException |
58 | 53 | */ |
59 | - public function put(APIRequest $request) |
|
60 | - { |
|
54 | + public function put(APIRequest $request) { |
|
61 | 55 | throw new UnsupportedMethodException('Method not supported'); |
62 | 56 | } |
63 | 57 | |
@@ -66,8 +60,7 @@ discard block |
||
66 | 60 | * @return null|array|object |
67 | 61 | * @throws UnsupportedMethodException |
68 | 62 | */ |
69 | - public function putAll(APIRequest $request) |
|
70 | - { |
|
63 | + public function putAll(APIRequest $request) { |
|
71 | 64 | throw new UnsupportedMethodException('Method not supported'); |
72 | 65 | } |
73 | 66 | |
@@ -76,8 +69,7 @@ discard block |
||
76 | 69 | * @return null|array|object |
77 | 70 | * @throws UnsupportedMethodException |
78 | 71 | */ |
79 | - public function options(APIRequest $request) |
|
80 | - { |
|
72 | + public function options(APIRequest $request) { |
|
81 | 73 | throw new UnsupportedMethodException('Method not supported'); |
82 | 74 | } |
83 | 75 | |
@@ -86,8 +78,7 @@ discard block |
||
86 | 78 | * @return null|array|object |
87 | 79 | * @throws UnsupportedMethodException |
88 | 80 | */ |
89 | - public function optionsAll(APIRequest $request) |
|
90 | - { |
|
81 | + public function optionsAll(APIRequest $request) { |
|
91 | 82 | throw new UnsupportedMethodException('Method not supported'); |
92 | 83 | } |
93 | 84 | |
@@ -96,8 +87,7 @@ discard block |
||
96 | 87 | * @return null|array|object |
97 | 88 | * @throws UnsupportedMethodException |
98 | 89 | */ |
99 | - public function delete(APIRequest $request) |
|
100 | - { |
|
90 | + public function delete(APIRequest $request) { |
|
101 | 91 | throw new UnsupportedMethodException('Method not supported'); |
102 | 92 | } |
103 | 93 | |
@@ -106,8 +96,7 @@ discard block |
||
106 | 96 | * @return null|array|object |
107 | 97 | * @throws UnsupportedMethodException |
108 | 98 | */ |
109 | - public function deleteAll(APIRequest $request) |
|
110 | - { |
|
99 | + public function deleteAll(APIRequest $request) { |
|
111 | 100 | throw new UnsupportedMethodException('Method not supported'); |
112 | 101 | } |
113 | 102 | } |