@@ -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 | */ |