Completed
Push — Rest ( f6cb9a...500cb2 )
by Stanislav
02:55 queued 24s
created
Application/Aware/AbstractModelCrud.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
Application/Helpers/Node.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -186,8 +186,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Application/Modules/Rest/Aware/RestValidatorProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Application/Modules/Rest/DTO/UserDTO.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,6 @@
 block discarded – undo
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() {
Please login to merge, or discard this patch.
Application/Modules/Rest/Events/BeforeExecuteRoute/ResolveRequestLength.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Application/Modules/Rest/Services/RestCacheService.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
Application/Modules/Rest/Services/RestExceptionHandler.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Application/Modules/Rest/Services/RestSecurityService.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param array $credentials
37 37
      * @throws \Application\Modules\Rest\Exceptions\UnauthorizedException
38 38
      * @throws \Application\Modules\Rest\Exceptions\NotFoundException
39
-     * @return ResultSet
39
+     * @return UserDTO
40 40
      */
41 41
     public function authenticate(array $credentials) {
42 42
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * Register new user from credentials
83 83
      *
84 84
      * @param array $credentials
85
-     * @return ResultSet
85
+     * @return UserDTO
86 86
      * @throws \Application\Modules\Rest\Exceptions\BadRequestException
87 87
      * @throws \Application\Modules\Rest\Exceptions\ConflictException
88 88
      */
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
     /**
222 222
      * If user has role?
223 223
      *
224
-     * @param mixed $role
224
+     * @param mixed $roles
225 225
      * @return boolean
226 226
      */
227 227
     public function hasRole($roles) {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      * Send recovery message
247 247
      *
248 248
      * @param \Application\Models\Users $user
249
-     * @param $password
249
+     * @param integer $password
250 250
      * @throws UnprocessableEntityException
251 251
      */
252 252
     private function recoverySend(\Application\Models\Users $user, $password) {
Please login to merge, or discard this patch.
Application/Modules/Rest/Services/RestService.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * Set response content length
166 166
      *
167 167
      * @param string $content
168
-     * @return RestService
168
+     * @return integer
169 169
      */
170 170
     public function setContentLength($content) {
171 171
         return strlen(json_encode($content));
@@ -322,7 +322,6 @@  discard block
 block discarded – undo
322 322
     /**
323 323
      * Send response to client
324 324
      *
325
-     * @param boolean $modified
326 325
      * @return \Phalcon\Http\ResponseInterface
327 326
      */
328 327
     public function response() {
Please login to merge, or discard this patch.