@@ -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 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * |
53 | 53 | * @param array $params |
54 | 54 | * |
55 | - * @return ActiveDataProvider |
|
55 | + * @return \yii\data\ActiveDataProvider |
|
56 | 56 | */ |
57 | 57 | public function search($params) |
58 | 58 | { |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | /** |
228 | 228 | * Finds an identity by the given ID. |
229 | 229 | * |
230 | - * @param string|int $id the ID to be looked for |
|
230 | + * @param integer $id the ID to be looked for |
|
231 | 231 | * |
232 | 232 | * @return IdentityInterface the identity object that matches the given ID. |
233 | 233 | * Null should be returned if such an identity cannot be found |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | /** |
242 | 242 | * Finds an identity by the given token. |
243 | 243 | * |
244 | - * @param mixed $token the token to be looked for |
|
244 | + * @param string $token the token to be looked for |
|
245 | 245 | * |
246 | 246 | * @param mixed $type the type of the token. The value of this parameter depends on the |
247 | 247 | * implementation. For example, [[\yii\filters\auth\HttpBearerAuth]] will |
@@ -377,6 +377,7 @@ discard block |
||
377 | 377 | * Set hashed password. |
378 | 378 | * |
379 | 379 | * @param string $password. |
380 | + * @param string $password |
|
380 | 381 | * |
381 | 382 | * @return $this |
382 | 383 | */ |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | /** |
184 | 184 | * List if attributes. |
185 | 185 | * |
186 | - * @return array |
|
186 | + * @return string[] |
|
187 | 187 | */ |
188 | 188 | public function attributes() |
189 | 189 | { |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | /** |
285 | 285 | * List of profile assigned roles. |
286 | 286 | * |
287 | - * @return string[] |
|
287 | + * @return integer[] |
|
288 | 288 | */ |
289 | 289 | public function getRoles() |
290 | 290 | { |
@@ -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 | { |
@@ -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, |