@@ -101,6 +101,9 @@ |
||
| 101 | 101 | $this->Action->execute(); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | + /** |
|
| 105 | + * @param integer $id |
|
| 106 | + */ |
|
| 104 | 107 | protected function _initializeAction($id, $post = []) |
| 105 | 108 | { |
| 106 | 109 | $this->_initializeController([ |
@@ -152,6 +152,9 @@ |
||
| 152 | 152 | $renderer->error($error); |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | + /** |
|
| 156 | + * @param string $text |
|
| 157 | + */ |
|
| 155 | 158 | protected function _xmlMessage($text) |
| 156 | 159 | { |
| 157 | 160 | return '<?xml version="1.0" encoding="UTF-8"?>' . "\n" . $text . "\n"; |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | /** |
| 67 | 67 | * Execute action. |
| 68 | 68 | * |
| 69 | - * @return mixed |
|
| 69 | + * @return string|null |
|
| 70 | 70 | * @throws Exception |
| 71 | 71 | */ |
| 72 | 72 | public function execute() |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * Execute action. |
| 54 | 54 | * |
| 55 | - * @return mixed |
|
| 55 | + * @return boolean |
|
| 56 | 56 | */ |
| 57 | 57 | public function action($tag_id) |
| 58 | 58 | { |
@@ -101,6 +101,9 @@ |
||
| 101 | 101 | $this->Action->execute(); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | + /** |
|
| 105 | + * @param integer $id |
|
| 106 | + */ |
|
| 104 | 107 | protected function _initializeAction($id, $post = []) |
| 105 | 108 | { |
| 106 | 109 | $this->_initializeController([ |
@@ -19,8 +19,6 @@ |
||
| 19 | 19 | use CakeDC\Api\Test\ConfigTrait; |
| 20 | 20 | use CakeDC\Api\Test\FixturesTrait; |
| 21 | 21 | use Cake\Controller\Controller; |
| 22 | -use Cake\Network\Request; |
|
| 23 | -use Cake\Network\Response; |
|
| 24 | 22 | use CakeDC\Api\TestSuite\TestCase; |
| 25 | 23 | |
| 26 | 24 | class ServiceTest extends TestCase |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use Zend\Diactoros\Response\RedirectResponse; |
| 11 | 11 | use Cake\Http\RequestTransformer; |
| 12 | 12 | use Cake\Http\ResponseTransformer; |
| 13 | - |
|
| 14 | 13 | use CakeDC\Api\Service\ConfigReader; |
| 15 | 14 | use CakeDC\Api\Service\ServiceRegistry; |
| 16 | 15 | |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | * Build router settings. |
| 356 | 356 | * This implementation build action map for resource routes based on Service actions. |
| 357 | 357 | * |
| 358 | - * @return array |
|
| 358 | + * @return callable |
|
| 359 | 359 | */ |
| 360 | 360 | public function routerDefaultOptions() |
| 361 | 361 | { |
@@ -591,7 +591,7 @@ discard block |
||
| 591 | 591 | * Fill up response and stop execution. |
| 592 | 592 | * |
| 593 | 593 | * @param Result $result A Result instance. |
| 594 | - * @return Response |
|
| 594 | + * @return \Cake\Network\Response |
|
| 595 | 595 | */ |
| 596 | 596 | public function respond($result = null) |
| 597 | 597 | { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * |
| 129 | 129 | * @param EntityInterface $entity An Entity instance. |
| 130 | 130 | * @param array $data Entity data. |
| 131 | - * @return \Cake\Datasource\EntityInterface|mixed |
|
| 131 | + * @return EntityInterface |
|
| 132 | 132 | */ |
| 133 | 133 | protected function _patchEntity($entity, $data) |
| 134 | 134 | { |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | /** |
| 163 | 163 | * Returns single entity by id. |
| 164 | 164 | * |
| 165 | - * @param mixed $primaryKey Primary key. |
|
| 165 | + * @param string $primaryKey Primary key. |
|
| 166 | 166 | * @return \Cake\Collection\Collection |
| 167 | 167 | */ |
| 168 | 168 | protected function _getEntity($primaryKey) |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | /** |
| 212 | 212 | * Model id getter. |
| 213 | 213 | * |
| 214 | - * @return mixed|string |
|
| 214 | + * @return string |
|
| 215 | 215 | */ |
| 216 | 216 | public function id() |
| 217 | 217 | { |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | /** |
| 232 | 232 | * Parent id getter. |
| 233 | 233 | * |
| 234 | - * @return mixed|string |
|
| 234 | + * @return string |
|
| 235 | 235 | */ |
| 236 | 236 | public function parentId() |
| 237 | 237 | { |