@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * |
215 | 215 | * @param resource $file The file resource, with the pointer placed at the end of the line to read |
216 | 216 | * |
217 | - * @return mixed A string representing the line or null if beginning of file is reached |
|
217 | + * @return null|string A string representing the line or null if beginning of file is reached |
|
218 | 218 | */ |
219 | 219 | protected function readLineFromFile($file) |
220 | 220 | { |
@@ -254,6 +254,9 @@ discard block |
||
254 | 254 | return '' === $line ? null : $line; |
255 | 255 | } |
256 | 256 | |
257 | + /** |
|
258 | + * @param string $token |
|
259 | + */ |
|
257 | 260 | protected function createProfileFromData($token, $data, $parent = null) |
258 | 261 | { |
259 | 262 | $profile = new Profile($token); |
@@ -196,6 +196,9 @@ discard block |
||
196 | 196 | { |
197 | 197 | } |
198 | 198 | |
199 | + /** |
|
200 | + * @param string $parent |
|
201 | + */ |
|
199 | 202 | protected function createProfileFromData($token, $data, $parent = null) |
200 | 203 | { |
201 | 204 | $profile = new Profile($token); |
@@ -249,7 +252,7 @@ discard block |
||
249 | 252 | * |
250 | 253 | * @param string $token The profile token |
251 | 254 | * |
252 | - * @return string |
|
255 | + * @return boolean |
|
253 | 256 | */ |
254 | 257 | protected function has($token) |
255 | 258 | { |
@@ -246,6 +246,9 @@ discard block |
||
246 | 246 | $this->redis = $redis; |
247 | 247 | } |
248 | 248 | |
249 | + /** |
|
250 | + * @param string $token |
|
251 | + */ |
|
249 | 252 | private function createProfileFromData($token, $data, $parent = null) |
250 | 253 | { |
251 | 254 | $profile = new Profile($token); |
@@ -312,6 +315,9 @@ discard block |
||
312 | 315 | return false; |
313 | 316 | } |
314 | 317 | |
318 | + /** |
|
319 | + * @param string $name |
|
320 | + */ |
|
315 | 321 | private function isItemNameValid($name) |
316 | 322 | { |
317 | 323 | $length = strlen($name); |
@@ -84,6 +84,9 @@ |
||
84 | 84 | return $this->computeHash($this->buildUrl($url, $params)) === $hash; |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param string $uri |
|
89 | + */ |
|
87 | 90 | private function computeHash($uri) |
88 | 91 | { |
89 | 92 | return urlencode(base64_encode(hash_hmac('sha256', $uri, $this->secret, true))); |
@@ -273,6 +273,9 @@ discard block |
||
273 | 273 | return self::mb_detect_encoding($var, array($encoding)) || false !== @iconv($encoding, $encoding, $var); |
274 | 274 | } |
275 | 275 | |
276 | + /** |
|
277 | + * @return string |
|
278 | + */ |
|
276 | 279 | public static function mb_detect_encoding($str, $encodingList = null, $strict = false) |
277 | 280 | { |
278 | 281 | if (null === $encodingList) { |
@@ -588,6 +591,9 @@ discard block |
||
588 | 591 | return $code; |
589 | 592 | } |
590 | 593 | |
594 | + /** |
|
595 | + * @param boolean $part |
|
596 | + */ |
|
591 | 597 | private static function getSubpart($pos, $part, $haystack, $encoding) |
592 | 598 | { |
593 | 599 | if (false === $pos) { |
@@ -635,6 +641,9 @@ discard block |
||
635 | 641 | return self::mb_convert_case($s[0], MB_CASE_UPPER, 'UTF-8'); |
636 | 642 | } |
637 | 643 | |
644 | + /** |
|
645 | + * @param string $file |
|
646 | + */ |
|
638 | 647 | private static function getData($file) |
639 | 648 | { |
640 | 649 | if (file_exists($file = __DIR__.'/Resources/unidata/'.$file.'.php')) { |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * |
52 | 52 | * @param array $params |
53 | 53 | * |
54 | - * @return ActiveDataProvider |
|
54 | + * @return \yii\data\ActiveDataProvider |
|
55 | 55 | */ |
56 | 56 | public function search($params) |
57 | 57 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | * @param callable|null $exceptionHandler A handler that will be called on Exception |
42 | 42 | * @param LoggerInterface|null $logger A PSR-3 logger |
43 | 43 | * @param array|int $levels An array map of E_* to LogLevel::* or an integer bit field of E_* constants |
44 | - * @param int|null $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value |
|
44 | + * @param integer $throwAt Thrown errors in a bit field of E_* constants, or null to keep the current value |
|
45 | 45 | * @param bool $scream Enables/disables screaming mode, where even silenced errors are logged |
46 | 46 | * @param string $fileLinkFormat The format for links to source files |
47 | 47 | */ |
@@ -79,6 +79,9 @@ discard block |
||
79 | 79 | return $signatureHash; |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $resource |
|
84 | + */ |
|
82 | 85 | private function createCannedPolicy($resource, $expiration) |
83 | 86 | { |
84 | 87 | return json_encode([ |
@@ -101,6 +104,9 @@ discard block |
||
101 | 104 | return $signature; |
102 | 105 | } |
103 | 106 | |
107 | + /** |
|
108 | + * @param string $policy |
|
109 | + */ |
|
104 | 110 | private function encode($policy) |
105 | 111 | { |
106 | 112 | return strtr(base64_encode($policy), '+=/', '-_~'); |
@@ -12,9 +12,9 @@ discard block |
||
12 | 12 | /** |
13 | 13 | * Returns a function that always returns the same value; |
14 | 14 | * |
15 | - * @param mixed $value Value to return. |
|
15 | + * @param FulfilledPromise $value Value to return. |
|
16 | 16 | * |
17 | - * @return callable |
|
17 | + * @return \Closure |
|
18 | 18 | */ |
19 | 19 | function constantly($value) |
20 | 20 | { |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * Filters values that do not satisfy the predicate function $pred. |
26 | 26 | * |
27 | - * @param mixed $iterable Iterable sequence of data. |
|
27 | + * @param \Iterator $iterable Iterable sequence of data. |
|
28 | 28 | * @param callable $pred Function that accepts a value and returns true/false |
29 | 29 | * |
30 | 30 | * @return \Generator |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * Applies a map function $f to each value in a collection. |
43 | 43 | * |
44 | - * @param mixed $iterable Iterable sequence of data. |
|
44 | + * @param \Iterator $iterable Iterable sequence of data. |
|
45 | 45 | * @param callable $f Map function to apply. |
46 | 46 | * |
47 | 47 | * @return \Generator |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * value in the sequence and yields the application of the map function to each |
59 | 59 | * value. |
60 | 60 | * |
61 | - * @param mixed $iterable Iterable sequence of data. |
|
61 | + * @param ResultPaginator $iterable Iterable sequence of data. |
|
62 | 62 | * @param callable $f Map function to apply. |
63 | 63 | * |
64 | 64 | * @return \Generator |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * $fn = \Aws\or_chain($a, $b); |
108 | 108 | * echo $fn(1, 2); // 3 |
109 | 109 | * |
110 | - * @return callable |
|
110 | + * @return \Closure |
|
111 | 111 | */ |
112 | 112 | function or_chain() |
113 | 113 | { |