@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | /** |
| 225 | 225 | * Gets the Collectors associated with this profiler. |
| 226 | 226 | * |
| 227 | - * @return array An array of collectors |
|
| 227 | + * @return DataCollectorInterface[] An array of collectors |
|
| 228 | 228 | */ |
| 229 | 229 | public function all() |
| 230 | 230 | { |
@@ -284,6 +284,9 @@ discard block |
||
| 284 | 284 | return $this->collectors[$name]; |
| 285 | 285 | } |
| 286 | 286 | |
| 287 | + /** |
|
| 288 | + * @param string $value |
|
| 289 | + */ |
|
| 287 | 290 | private function getTimestamp($value) |
| 288 | 291 | { |
| 289 | 292 | if (null === $value || '' == $value) { |
@@ -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')) { |
@@ -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 | { |