@@ -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 | { |