@@ -401,7 +401,7 @@ |
||
| 401 | 401 | * is rejected. If any promise is rejected, then the aggregate promise is |
| 402 | 402 | * rejected with the encountered rejection. |
| 403 | 403 | * |
| 404 | - * @param mixed $iterable |
|
| 404 | + * @param \Generator $iterable |
|
| 405 | 405 | * @param int|callable $concurrency |
| 406 | 406 | * @param callable $onFulfilled |
| 407 | 407 | * |
@@ -513,7 +513,7 @@ |
||
| 513 | 513 | } |
| 514 | 514 | |
| 515 | 515 | /** |
| 516 | - * @return null|string |
|
| 516 | + * @return boolean |
|
| 517 | 517 | */ |
| 518 | 518 | protected function isPureFtpdServer() |
| 519 | 519 | { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * Formats a log record. |
| 80 | 80 | * |
| 81 | 81 | * @param array $record A record to format |
| 82 | - * @return mixed The formatted record |
|
| 82 | + * @return string The formatted record |
|
| 83 | 83 | */ |
| 84 | 84 | public function format(array $record) |
| 85 | 85 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * Formats a set of log records. |
| 114 | 114 | * |
| 115 | 115 | * @param array $records A set of records to format |
| 116 | - * @return mixed The formatted set of records |
|
| 116 | + * @return string The formatted set of records |
|
| 117 | 117 | */ |
| 118 | 118 | public function formatBatch(array $records) |
| 119 | 119 | { |
@@ -125,6 +125,9 @@ discard block |
||
| 125 | 125 | return $message; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | + /** |
|
| 129 | + * @return string |
|
| 130 | + */ |
|
| 128 | 131 | protected function convertToString($data) |
| 129 | 132 | { |
| 130 | 133 | if (null === $data || is_scalar($data)) { |
@@ -113,6 +113,9 @@ discard block |
||
| 113 | 113 | return '[unknown('.gettype($data).')]'; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | + /** |
|
| 117 | + * @param \Throwable $e |
|
| 118 | + */ |
|
| 116 | 119 | protected function normalizeException($e) |
| 117 | 120 | { |
| 118 | 121 | // TODO 2.0 only check for Throwable |
@@ -277,6 +280,7 @@ discard block |
||
| 277 | 280 | * can be used as a callback for array_walk_recursive. |
| 278 | 281 | * |
| 279 | 282 | * @param mixed &$data Input to check and convert if needed |
| 283 | + * @param string $data |
|
| 280 | 284 | * @private |
| 281 | 285 | */ |
| 282 | 286 | public function detectAndCleanUtf8(&$data) |
@@ -284,6 +288,10 @@ discard block |
||
| 284 | 288 | if (is_string($data) && !preg_match('//u', $data)) { |
| 285 | 289 | $data = preg_replace_callback( |
| 286 | 290 | '/[\x80-\xFF]+/', |
| 291 | + |
|
| 292 | + /** |
|
| 293 | + * @param string $m |
|
| 294 | + */ |
|
| 287 | 295 | function ($m) { return utf8_encode($m[0]); }, |
| 288 | 296 | $data |
| 289 | 297 | ); |
@@ -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) { |
@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | use yii\helpers\Html; |
| 3 | 3 | use Itstructure\MultiLevelMenu\MenuWidget; |
| 4 | -use app\models\Category; |
|
| 5 | 4 | |
| 6 | 5 | /* @var Category $data */ |
| 7 | 6 | /* @var Category $model */ |