@@ -388,9 +388,9 @@ |
||
| 388 | 388 | // TODO: make this readable ... |
| 389 | 389 | return isset(self::$_css3Named[$var]) |
| 390 | 390 | || preg_match( |
| 391 | - '/^(?:#[0-9A-Fa-f]{3}|#[0-9A-Fa-f]{6}|(?:rgb|hsl)a?\s*\((?:\s*[0-9.%]+\s*,?){3,4}\))$/', |
|
| 392 | - $var |
|
| 393 | - ); |
|
| 391 | + '/^(?:#[0-9A-Fa-f]{3}|#[0-9A-Fa-f]{6}|(?:rgb|hsl)a?\s*\((?:\s*[0-9.%]+\s*,?){3,4}\))$/', |
|
| 392 | + $var |
|
| 393 | + ); |
|
| 394 | 394 | } |
| 395 | 395 | |
| 396 | 396 | /** |
@@ -609,7 +609,7 @@ |
||
| 609 | 609 | |
| 610 | 610 | /** |
| 611 | 611 | * @param mixed $value |
| 612 | - * @param null|false|string $encoding |
|
| 612 | + * @param false|string $encoding |
|
| 613 | 613 | * |
| 614 | 614 | * @return string|null |
| 615 | 615 | */ |
@@ -474,9 +474,9 @@ |
||
| 474 | 474 | |
| 475 | 475 | |
| 476 | 476 | return '<footer>' |
| 477 | - . '<span class="kint-popup-trigger" title="Open in new window">→</span> ' |
|
| 478 | - . "{$calleeInfo}{$callingFunction}{$traceDisplay}" |
|
| 479 | - . '</footer></div>'; |
|
| 477 | + . '<span class="kint-popup-trigger" title="Open in new window">→</span> ' |
|
| 478 | + . "{$calleeInfo}{$callingFunction}{$traceDisplay}" |
|
| 479 | + . '</footer></div>'; |
|
| 480 | 480 | } |
| 481 | 481 | |
| 482 | 482 | /** |
@@ -78,8 +78,8 @@ |
||
| 78 | 78 | * @param KintVariableData $kintVar |
| 79 | 79 | * @param int $level |
| 80 | 80 | * @param string $accessChain |
| 81 | - * @param mixed $parentType |
|
| 82 | - * @param mixed $context |
|
| 81 | + * @param string $parentType |
|
| 82 | + * @param integer $context |
|
| 83 | 83 | * |
| 84 | 84 | * @return string |
| 85 | 85 | * @throws \Exception |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | public static function decorate(KintVariableData $kintVar, /** @noinspection PhpUnusedParameterInspection */ $level = 0) |
| 72 | 72 | { |
| 73 | 73 | return 'kintDump.push(' . json_encode(self::_unparse($kintVar)) . ');' |
| 74 | - . 'console.log(kintDump[kintDump.length-1]);'; |
|
| 74 | + . 'console.log(kintDump[kintDump.length-1]);'; |
|
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | return 'kintDump.push(' . json_encode($traceData) . ');' |
| 97 | - . 'console.log(kintDump[kintDump.length-1]);'; |
|
| 97 | + . 'console.log(kintDump[kintDump.length-1]);'; |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -464,7 +464,7 @@ discard block |
||
| 464 | 464 | * @param int $lineNumber the line to display |
| 465 | 465 | * @param int $padding surrounding lines to show besides the main one |
| 466 | 466 | * |
| 467 | - * @return bool|string |
|
| 467 | + * @return false|string |
|
| 468 | 468 | */ |
| 469 | 469 | private static function _showSource($file, $lineNumber, $padding = 7) |
| 470 | 470 | { |
@@ -527,7 +527,7 @@ discard block |
||
| 527 | 527 | * |
| 528 | 528 | * @param $step |
| 529 | 529 | * |
| 530 | - * @return array |
|
| 530 | + * @return boolean |
|
| 531 | 531 | */ |
| 532 | 532 | private static function _stepIsInternal($step) |
| 533 | 533 | { |
@@ -794,7 +794,7 @@ discard block |
||
| 794 | 794 | * @param string $file |
| 795 | 795 | * @param int $line |
| 796 | 796 | * |
| 797 | - * @return mixed |
|
| 797 | + * @return string |
|
| 798 | 798 | */ |
| 799 | 799 | public static function getIdeLink($file, $line) |
| 800 | 800 | { |
@@ -852,7 +852,7 @@ discard block |
||
| 852 | 852 | * |
| 853 | 853 | * @param array $trace [OPTIONAL] you can pass your own trace, otherwise, `debug_backtrace` will be called |
| 854 | 854 | * |
| 855 | - * @return mixed |
|
| 855 | + * @return string|null |
|
| 856 | 856 | */ |
| 857 | 857 | public static function trace($trace = null) |
| 858 | 858 | { |