@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * @param \Phalcon\Mvc\Model $model |
138 | 138 | * @param array $credentials |
139 | 139 | * @throws BadRequestException |
140 | - * @return boolean |
|
140 | + * @return boolean|null |
|
141 | 141 | */ |
142 | 142 | protected function update(\Phalcon\Mvc\Model $model, array $credentials) { |
143 | 143 | |
@@ -214,8 +214,6 @@ discard block |
||
214 | 214 | /** |
215 | 215 | * Read records |
216 | 216 | * |
217 | - * @param array $credentials credentials |
|
218 | - * @param array $relations related models |
|
219 | 217 | * @return mixed |
220 | 218 | */ |
221 | 219 | abstract public function read(); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Application\Modules\Rest\Exceptions\BadRequestException; |
5 | 5 | use Application\Modules\Rest\Exceptions\ConflictException; |
6 | -use Application\Modules\Rest\Exceptions\ForbiddenException; |
|
7 | 6 | use Application\Modules\Rest\Exceptions\NotFoundException; |
8 | 7 | use Phalcon\DI\InjectionAwareInterface; |
9 | 8 |
@@ -186,8 +186,6 @@ |
||
186 | 186 | /** |
187 | 187 | * If is serialized value |
188 | 188 | * |
189 | - * @param string $value |
|
190 | - * @param string $value |
|
191 | 189 | * @access static |
192 | 190 | * @return boolean |
193 | 191 | */ |
@@ -37,7 +37,7 @@ |
||
37 | 37 | /** |
38 | 38 | * Get dependency container |
39 | 39 | * |
40 | - * @return \Phalcon\DiInterface |
|
40 | + * @return \Phalcon\DI\FactoryDefault |
|
41 | 41 | */ |
42 | 42 | public function getDi() |
43 | 43 | { |
@@ -129,7 +129,6 @@ |
||
129 | 129 | /** |
130 | 130 | * Reverse object to real array for all public properties |
131 | 131 | * |
132 | - * @param object $object |
|
133 | 132 | * @return mixed |
134 | 133 | */ |
135 | 134 | public function toArray() { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | /** |
41 | 41 | * Check query string by wrong parameters |
42 | 42 | * |
43 | - * @return bool |
|
43 | + * @return false|null |
|
44 | 44 | */ |
45 | 45 | private function isValidQuery() { |
46 | 46 |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Application\Modules\Rest\Events\BeforeExecuteRoute; |
3 | 3 | |
4 | -use Phalcon\Logger; |
|
5 | 4 | use Application\Modules\Rest\Exceptions\ToManyRequestsException; |
6 | 5 | use Application\Modules\Rest\Aware\RestValidatorProvider; |
7 | 6 |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Application\Modules\Rest\Events\BeforeExecuteRoute; |
3 | 3 | |
4 | -use Phalcon\Logger; |
|
5 | 4 | use Application\Modules\Rest\Exceptions\ToManyRequestsException; |
6 | 5 | use Application\Modules\Rest\Aware\RestValidatorProvider; |
7 | 6 |
@@ -1,10 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Application\Modules; |
3 | 3 | |
4 | -use Application\Modules\Rest\Exceptions\RequestTimeoutException; |
|
5 | 4 | use Phalcon\DI; |
6 | 5 | use Phalcon\Mvc\Dispatcher; |
7 | -use Phalcon\Http\Response; |
|
8 | 6 | use Phalcon\Mvc\View; |
9 | 7 | use Application\Modules\Rest\Services\RestExceptionHandler; |
10 | 8 | use Application\Modules\Rest\Exceptions\InternalServerErrorException; |
@@ -71,7 +71,6 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * Set cache value into cache storage |
73 | 73 | * |
74 | - * @param mixed $object |
|
75 | 74 | * @param string $key |
76 | 75 | * @param bool $cached |
77 | 76 | * @return mixed cached object |
@@ -120,7 +119,7 @@ discard block |
||
120 | 119 | /** |
121 | 120 | * Get the cache storage |
122 | 121 | * |
123 | - * @return \Phalcon\Cache\Backend\Memcache |
|
122 | + * @return Storage |
|
124 | 123 | */ |
125 | 124 | public function getStorage() { |
126 | 125 | |
@@ -155,7 +154,7 @@ discard block |
||
155 | 154 | /** |
156 | 155 | * Truncate opcode cache data |
157 | 156 | * |
158 | - * @return boolean |
|
157 | + * @return boolean|null |
|
159 | 158 | */ |
160 | 159 | public function flush() { |
161 | 160 | return $this->getStorage()->flush(); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | /** |
54 | 54 | * Set dependency container |
55 | 55 | * |
56 | - * @param \Phalcon\Di\FactoryDefault $di |
|
56 | + * @param \Phalcon\DiInterface $di |
|
57 | 57 | * @return RestExceptionHandler |
58 | 58 | */ |
59 | 59 | private function setDi(\Phalcon\DiInterface $di) |
@@ -65,7 +65,6 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Handle exception data |
67 | 67 | * |
68 | - * @param \Exception $data |
|
69 | 68 | */ |
70 | 69 | public function handle(\Exception $exception) { |
71 | 70 | |
@@ -112,7 +111,7 @@ discard block |
||
112 | 111 | |
113 | 112 | /** |
114 | 113 | * Get exception data |
115 | - * @return array |
|
114 | + * @return \Exception |
|
116 | 115 | */ |
117 | 116 | private function getException() { |
118 | 117 | return $this->exception; |
@@ -161,7 +160,7 @@ discard block |
||
161 | 160 | /** |
162 | 161 | * Check if message has a json format |
163 | 162 | * |
164 | - * @param $string |
|
163 | + * @param string $string |
|
165 | 164 | * @return bool |
166 | 165 | */ |
167 | 166 | private function isJson($string) { |