@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace app\behaviors; |
4 | 4 | |
5 | -use Yii; |
|
6 | 5 | use yii\base\{Model, Behavior}; |
7 | 6 | use app\models\LoginAttempt; |
8 | 7 |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | /** |
227 | 227 | * Finds an identity by the given ID. |
228 | 228 | * |
229 | - * @param string|int $id the ID to be looked for |
|
229 | + * @param integer $id the ID to be looked for |
|
230 | 230 | * |
231 | 231 | * @return IdentityInterface the identity object that matches the given ID. |
232 | 232 | * Null should be returned if such an identity cannot be found |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | /** |
241 | 241 | * Finds an identity by the given token. |
242 | 242 | * |
243 | - * @param mixed $token the token to be looked for |
|
243 | + * @param string $token the token to be looked for |
|
244 | 244 | * |
245 | 245 | * @param mixed $type the type of the token. The value of this parameter depends on the |
246 | 246 | * implementation. For example, [[\yii\filters\auth\HttpBearerAuth]] will |
@@ -376,6 +376,7 @@ discard block |
||
376 | 376 | * Set hashed password. |
377 | 377 | * |
378 | 378 | * @param string $password. |
379 | + * @param string $password |
|
379 | 380 | * |
380 | 381 | * @return $this |
381 | 382 | */ |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * List if attributes. |
184 | 184 | * |
185 | - * @return array |
|
185 | + * @return string[] |
|
186 | 186 | */ |
187 | 187 | public function attributes() |
188 | 188 | { |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | /** |
284 | 284 | * List of profile assigned roles. |
285 | 285 | * |
286 | - * @return string[] |
|
286 | + * @return integer[] |
|
287 | 287 | */ |
288 | 288 | public function getRoles() |
289 | 289 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @param array $options |
26 | 26 | * |
27 | - * @return mixed |
|
27 | + * @return null|string |
|
28 | 28 | */ |
29 | 29 | public function getDefaultThumbImage(array $options = []) |
30 | 30 | { |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | use yii\helpers\Html; |
3 | 3 | use Itstructure\MultiLevelMenu\MenuWidget; |
4 | -use app\models\Page; |
|
5 | 4 | |
6 | 5 | /* @var Page $data */ |
7 | 6 | /* @var Page $model */ |
@@ -218,6 +218,7 @@ |
||
218 | 218 | |
219 | 219 | /** |
220 | 220 | * Build the versions list for the specified service by globbing the dir. |
221 | + * @param string $service |
|
221 | 222 | */ |
222 | 223 | private function buildVersionsList($service) |
223 | 224 | { |
@@ -17,6 +17,9 @@ discard block |
||
17 | 17 | return $this->dispatch($shape, $value); |
18 | 18 | } |
19 | 19 | |
20 | + /** |
|
21 | + * @param Shape $shape |
|
22 | + */ |
|
20 | 23 | private function dispatch($shape, \SimpleXMLElement $value) |
21 | 24 | { |
22 | 25 | static $methods = [ |
@@ -56,6 +59,9 @@ discard block |
||
56 | 59 | return $target; |
57 | 60 | } |
58 | 61 | |
62 | + /** |
|
63 | + * @param integer $name |
|
64 | + */ |
|
59 | 65 | private function memberKey(Shape $shape, $name) |
60 | 66 | { |
61 | 67 | if (null !== $shape['locationName']) { |
@@ -48,6 +48,9 @@ discard block |
||
48 | 48 | return $query; |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param string $prefix |
|
53 | + */ |
|
51 | 54 | protected function format(Shape $shape, $value, $prefix, array &$query) |
52 | 55 | { |
53 | 56 | $type = 'format_' . $shape['type']; |
@@ -58,6 +61,9 @@ discard block |
||
58 | 61 | } |
59 | 62 | } |
60 | 63 | |
64 | + /** |
|
65 | + * @param string $prefix |
|
66 | + */ |
|
61 | 67 | protected function format_structure( |
62 | 68 | StructureShape $shape, |
63 | 69 | array $value, |
@@ -16,6 +16,9 @@ |
||
16 | 16 | private $api; |
17 | 17 | private $paramBuilder; |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $endpoint |
|
21 | + */ |
|
19 | 22 | public function __construct( |
20 | 23 | Service $api, |
21 | 24 | $endpoint, |