@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | |
| 370 | 370 | /** |
| 371 | 371 | * Handler to catch warnings and notices. |
| 372 | - * @return bool|null false to call normal error handler, null otherwise |
|
| 372 | + * @return false|null false to call normal error handler, null otherwise |
|
| 373 | 373 | * @throws ErrorException |
| 374 | 374 | * @internal |
| 375 | 375 | */ |
@@ -437,6 +437,9 @@ discard block |
||
| 437 | 437 | } |
| 438 | 438 | |
| 439 | 439 | |
| 440 | + /** |
|
| 441 | + * @param boolean $errorOccurred |
|
| 442 | + */ |
|
| 440 | 443 | private static function removeOutputBuffers($errorOccurred) |
| 441 | 444 | { |
| 442 | 445 | while (ob_get_level() > self::$obLevel) { |
@@ -597,7 +600,7 @@ discard block |
||
| 597 | 600 | /** |
| 598 | 601 | * Logs message or exception. |
| 599 | 602 | * @param mixed $message |
| 600 | - * @return mixed |
|
| 603 | + * @return string |
|
| 601 | 604 | */ |
| 602 | 605 | public static function log($message, $priority = ILogger::INFO) |
| 603 | 606 | { |
@@ -190,6 +190,9 @@ |
||
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | |
| 193 | + /** |
|
| 194 | + * @param string $var |
|
| 195 | + */ |
|
| 193 | 196 | private static function dumpString(&$var, $options) |
| 194 | 197 | { |
| 195 | 198 | return '<span class="tracy-dump-string">"' |
@@ -60,6 +60,9 @@ discard block |
||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | |
| 63 | + /** |
|
| 64 | + * @param string $mask |
|
| 65 | + */ |
|
| 63 | 66 | public static function formatHtml($mask) |
| 64 | 67 | { |
| 65 | 68 | $args = func_get_args(); |
@@ -75,6 +78,9 @@ discard block |
||
| 75 | 78 | } |
| 76 | 79 | |
| 77 | 80 | |
| 81 | + /** |
|
| 82 | + * @param string $method |
|
| 83 | + */ |
|
| 78 | 84 | public static function findTrace(array $trace, $method, &$index = null) |
| 79 | 85 | { |
| 80 | 86 | $m = explode('::', $method); |
@@ -277,6 +283,7 @@ discard block |
||
| 277 | 283 | |
| 278 | 284 | /** |
| 279 | 285 | * Finds the best suggestion. |
| 286 | + * @param string $value |
|
| 280 | 287 | * @return string|null |
| 281 | 288 | * @internal |
| 282 | 289 | */ |
@@ -107,6 +107,7 @@ discard block |
||
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | 109 | * @param mixed $message |
| 110 | + * @param string $exceptionFile |
|
| 110 | 111 | * @return string |
| 111 | 112 | */ |
| 112 | 113 | public static function formatLogLine($message, $exceptionFile = null) |
@@ -147,6 +148,7 @@ discard block |
||
| 147 | 148 | /** |
| 148 | 149 | * Logs exception to the file if file doesn't exist. |
| 149 | 150 | * @param \Exception|\Throwable $exception |
| 151 | + * @param string $file |
|
| 150 | 152 | * @return string logged error filename |
| 151 | 153 | */ |
| 152 | 154 | protected function logException($exception, $file = null) |
@@ -229,7 +229,7 @@ |
||
| 229 | 229 | /** |
| 230 | 230 | * Should an update be forced? |
| 231 | 231 | * |
| 232 | - * @return true If packages are not locked |
|
| 232 | + * @return boolean If packages are not locked |
|
| 233 | 233 | */ |
| 234 | 234 | public function forceUpdate() |
| 235 | 235 | { |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | } |
| 318 | 318 | |
| 319 | 319 | /** |
| 320 | - * @return bool |
|
| 320 | + * @return null|boolean |
|
| 321 | 321 | */ |
| 322 | 322 | protected function act_deleteDir() |
| 323 | 323 | {
|
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | } |
| 483 | 483 | |
| 484 | 484 | /** |
| 485 | - * @return bool |
|
| 485 | + * @return null|boolean |
|
| 486 | 486 | */ |
| 487 | 487 | protected function act_delete() |
| 488 | 488 | {
|
@@ -863,7 +863,7 @@ discard block |
||
| 863 | 863 | |
| 864 | 864 | /** |
| 865 | 865 | * @param $file |
| 866 | - * @param $dir |
|
| 866 | + * @param string $dir |
|
| 867 | 867 | * @return array |
| 868 | 868 | */ |
| 869 | 869 | protected function moveUploadFile($file, $dir) |
@@ -918,7 +918,7 @@ discard block |
||
| 918 | 918 | } |
| 919 | 919 | |
| 920 | 920 | /** |
| 921 | - * @param null $file |
|
| 921 | + * @param string $file |
|
| 922 | 922 | */ |
| 923 | 923 | protected function sendDefaultThumb($file = null) |
| 924 | 924 | {
|
@@ -1174,7 +1174,7 @@ discard block |
||
| 1174 | 1174 | } |
| 1175 | 1175 | |
| 1176 | 1176 | /** |
| 1177 | - * @param $message |
|
| 1177 | + * @param string $message |
|
| 1178 | 1178 | * @param array|null $data |
| 1179 | 1179 | */ |
| 1180 | 1180 | protected function errorMsg($message, array $data = null) |
@@ -182,6 +182,9 @@ |
||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | |
| 185 | + /** |
|
| 186 | + * @param integer $n |
|
| 187 | + */ |
|
| 185 | 188 | private function getChars($n) |
| 186 | 189 | { |
| 187 | 190 | $response = null; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | /** |
| 47 | 47 | * Get the services provided by the provider. |
| 48 | 48 | * |
| 49 | - * @return array |
|
| 49 | + * @return string[] |
|
| 50 | 50 | */ |
| 51 | 51 | public function provides() |
| 52 | 52 | { |
@@ -550,7 +550,7 @@ |
||
| 550 | 550 | /** |
| 551 | 551 | * Get the results of the relationship. |
| 552 | 552 | * |
| 553 | - * @return mixed |
|
| 553 | + * @return Collection |
|
| 554 | 554 | */ |
| 555 | 555 | public function getResults() |
| 556 | 556 | { |