@@ -185,7 +185,7 @@ |
||
185 | 185 | * @param array $user current user |
186 | 186 | * @param string $role effective user role |
187 | 187 | * @param Request $request request |
188 | - * @return bool if rule matched, null if rule not matched |
|
188 | + * @return boolean|null if rule matched, null if rule not matched |
|
189 | 189 | */ |
190 | 190 | protected function _matchRule($permission, $user, $role, $request) |
191 | 191 | { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @param Action $action An Action instance. |
53 | 53 | * @param callable $beforeReverse Callback. |
54 | - * @return array |
|
54 | + * @return string|null |
|
55 | 55 | */ |
56 | 56 | public function indexPath(Action $action, $beforeReverse = null) |
57 | 57 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @param string $parentName Action name. |
86 | 86 | * @param Action $action An Action instance. |
87 | 87 | * @param string $type Type of action. |
88 | - * @return array |
|
88 | + * @return string |
|
89 | 89 | */ |
90 | 90 | public function parentViewPath($parentName, $action, $type) |
91 | 91 | { |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * Returns user token. |
75 | 75 | * |
76 | 76 | * @param string $userId User id. |
77 | - * @return mixed|null |
|
77 | + * @return string |
|
78 | 78 | */ |
79 | 79 | protected function _userToken($userId = null) |
80 | 80 | { |
@@ -116,6 +116,9 @@ |
||
116 | 116 | $this->assertEquals($this->defaultPermissions, $this->simpleRbacAuthorize->config('permissions')); |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @param string $instance |
|
121 | + */ |
|
119 | 122 | protected function assertConstructorPermissions($instance, $config, $permissions) |
120 | 123 | { |
121 | 124 | $reflectedClass = new ReflectionClass($instance); |
@@ -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"; |
@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Execute action. |
69 | 69 | * |
70 | - * @return mixed |
|
70 | + * @return string |
|
71 | 71 | * @throws Exception |
72 | 72 | */ |
73 | 73 | public function execute() |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * Api method for table. |
100 | 100 | * |
101 | 101 | * @param Table $table A Table instance. |
102 | - * @return Table |
|
102 | + * @return string |
|
103 | 103 | */ |
104 | 104 | public function table($table = null) |
105 | 105 | { |
@@ -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 | { |
@@ -206,7 +206,7 @@ |
||
206 | 206 | * Get and set controller associated with service, |
207 | 207 | * |
208 | 208 | * @param \Cake\Controller\Controller $controller Controller. |
209 | - * @return \Cake\Controller\Controller |
|
209 | + * @return null|Controller |
|
210 | 210 | */ |
211 | 211 | public function controller(Controller $controller = null) |
212 | 212 | { |