@@ -231,6 +231,9 @@ discard block |
||
231 | 231 | */ |
232 | 232 | abstract protected function appendValue($key, $value, $expiration = 0); |
233 | 233 | |
234 | + /** |
|
235 | + * @param string $token |
|
236 | + */ |
|
234 | 237 | private function createProfileFromData($token, $data, $parent = null) |
235 | 238 | { |
236 | 239 | $profile = new Profile($token); |
@@ -297,6 +300,9 @@ discard block |
||
297 | 300 | return false; |
298 | 301 | } |
299 | 302 | |
303 | + /** |
|
304 | + * @param string $name |
|
305 | + */ |
|
300 | 306 | private function isItemNameValid($name) |
301 | 307 | { |
302 | 308 | $length = strlen($name); |
@@ -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 | { |
@@ -106,7 +106,7 @@ |
||
106 | 106 | /** |
107 | 107 | * Indicates if metadata is included or not. |
108 | 108 | * |
109 | - * @return string |
|
109 | + * @return boolean |
|
110 | 110 | */ |
111 | 111 | public function getIncludeMetadata() |
112 | 112 | { |
@@ -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 | */ |