| @@ -455,7 +455,7 @@ discard block | ||
| 455 | 455 | * @param int $lineNumber the line to display | 
| 456 | 456 | * @param int $padding surrounding lines to show besides the main one | 
| 457 | 457 | * | 
| 458 | - * @return bool|string | |
| 458 | + * @return false|string | |
| 459 | 459 | */ | 
| 460 | 460 | private static function _showSource($file, $lineNumber, $padding = 7) | 
| 461 | 461 |    { | 
| @@ -518,7 +518,7 @@ discard block | ||
| 518 | 518 | * | 
| 519 | 519 | * @param $step | 
| 520 | 520 | * | 
| 521 | - * @return array | |
| 521 | + * @return boolean | |
| 522 | 522 | */ | 
| 523 | 523 | private static function _stepIsInternal($step) | 
| 524 | 524 |    { | 
| @@ -568,7 +568,7 @@ discard block | ||
| 568 | 568 | * | 
| 569 | 569 | * @param mixed $data | 
| 570 | 570 | * | 
| 571 | - * @return void|string | |
| 571 | + * @return string | |
| 572 | 572 | */ | 
| 573 | 573 | public static function dump($data = null) | 
| 574 | 574 |    { | 
| @@ -780,7 +780,7 @@ discard block | ||
| 780 | 780 | * @param string $file | 
| 781 | 781 | * @param int $line | 
| 782 | 782 | * | 
| 783 | - * @return mixed | |
| 783 | + * @return string | |
| 784 | 784 | */ | 
| 785 | 785 | public static function getIdeLink($file, $line) | 
| 786 | 786 |    { | 
| @@ -838,7 +838,7 @@ discard block | ||
| 838 | 838 | * | 
| 839 | 839 | * @param array $trace [OPTIONAL] you can pass your own trace, otherwise, `debug_backtrace` will be called | 
| 840 | 840 | * | 
| 841 | - * @return mixed | |
| 841 | + * @return string | |
| 842 | 842 | */ | 
| 843 | 843 | public static function trace($trace = null) | 
| 844 | 844 |    { | 
| @@ -122,9 +122,9 @@ discard block | ||
| 122 | 122 | $codePattern = $callee['function']; | 
| 123 | 123 |      } else { | 
| 124 | 124 |        if ($callee['type'] === '::') { | 
| 125 | - $codePattern = $callee['class'] . "\x07*" . $callee['type'] . "\x07*" . $callee['function']; | |
| 125 | + $codePattern = $callee['class']."\x07*".$callee['type']."\x07*".$callee['function']; | |
| 126 | 126 |        } else { | 
| 127 | - $codePattern = ".*\x07*" . $callee['type'] . "\x07*" . $callee['function']; | |
| 127 | + $codePattern = ".*\x07*".$callee['type']."\x07*".$callee['function']; | |
| 128 | 128 | } | 
| 129 | 129 | } | 
| 130 | 130 | |
| @@ -378,14 +378,14 @@ discard block | ||
| 378 | 378 | $args[$params[$i]->name] = $arg; | 
| 379 | 379 |            } else { | 
| 380 | 380 | # assign the argument by number | 
| 381 | - $args['#' . ($i + 1)] = $arg; | |
| 381 | + $args['#'.($i + 1)] = $arg; | |
| 382 | 382 | } | 
| 383 | 383 | } | 
| 384 | 384 | } | 
| 385 | 385 | |
| 386 | 386 |        if (isset($step['class'])) { | 
| 387 | 387 | # Class->method() or Class::method() | 
| 388 | - $function = $step['class'] . $step['type'] . $function; | |
| 388 | + $function = $step['class'].$step['type'].$function; | |
| 389 | 389 | } | 
| 390 | 390 | |
| 391 | 391 | // TODO: it's possible to parse the object name out from the source! | 
| @@ -479,7 +479,7 @@ discard block | ||
| 479 | 479 | ); | 
| 480 | 480 | |
| 481 | 481 | # set the zero-padding amount for line numbers | 
| 482 | - $format = '% ' . strlen($range['end']) . 'd'; | |
| 482 | + $format = '% '.strlen($range['end']).'d'; | |
| 483 | 483 | |
| 484 | 484 | $source = ''; | 
| 485 | 485 |      while (($row = fgets($filePointer)) !== false) { | 
| @@ -493,13 +493,13 @@ discard block | ||
| 493 | 493 | $row = htmlspecialchars($row, ENT_NOQUOTES, 'UTF-8'); | 
| 494 | 494 | |
| 495 | 495 | # trim whitespace and sanitize the row | 
| 496 | - $row = '<span>' . sprintf($format, $line) . '</span> ' . $row; | |
| 496 | + $row = '<span>'.sprintf($format, $line).'</span> '.$row; | |
| 497 | 497 | |
| 498 | 498 |          if ($line === $lineNumber) { | 
| 499 | 499 | # apply highlighting to this row | 
| 500 | - $row = '<div class="kint-highlight">' . $row . '</div>'; | |
| 500 | + $row = '<div class="kint-highlight">'.$row.'</div>'; | |
| 501 | 501 |          } else { | 
| 502 | - $row = '<div>' . $row . '</div>'; | |
| 502 | + $row = '<div>'.$row.'</div>'; | |
| 503 | 503 | } | 
| 504 | 504 | |
| 505 | 505 | # add to the captured source | 
| @@ -809,7 +809,7 @@ discard block | ||
| 809 | 809 |          $path = str_replace('\\', '/', $path); | 
| 810 | 810 | |
| 811 | 811 |          if (strpos($file, $path) === 0) { | 
| 812 | - $shortenedName = $replaceString . substr($file, strlen($path)); | |
| 812 | + $shortenedName = $replaceString.substr($file, strlen($path)); | |
| 813 | 813 | $replaced = true; | 
| 814 | 814 | break; | 
| 815 | 815 | } | 
| @@ -827,7 +827,7 @@ discard block | ||
| 827 | 827 | } | 
| 828 | 828 | } | 
| 829 | 829 | |
| 830 | -      $shortenedName = ($i ? '.../' : '') . implode('/', array_slice($fileParts, $i)); | |
| 830 | +      $shortenedName = ($i ? '.../' : '').implode('/', array_slice($fileParts, $i)); | |
| 831 | 831 | } | 
| 832 | 832 | |
| 833 | 833 | return $shortenedName; | 
| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | return; | 
| 19 | 19 | } | 
| 20 | 20 | |
| 21 | -    define('KINT_DIR', __DIR__ . '/'); | |
| 21 | +    define('KINT_DIR', __DIR__.'/'); | |
| 22 | 22 | |
| 23 | - require KINT_DIR . 'config.default.php'; | |
| 23 | + require KINT_DIR.'config.default.php'; | |
| 24 | 24 | |
| 25 | 25 | # init settings | 
| 26 | 26 |      if (!empty($GLOBALS['_kint_settings'])) { | 
| @@ -54,7 +54,7 @@ discard block | ||
| 54 | 54 | } | 
| 55 | 55 | |
| 56 | 56 | $url = Kint::getIdeLink($callee['file'], $callee['line']); | 
| 57 | - $shortenedName = Kint::shortenPath($callee['file']) . ':' . $callee['line']; | |
| 57 | + $shortenedName = Kint::shortenPath($callee['file']).':'.$callee['line']; | |
| 58 | 58 | |
| 59 | 59 |      if (Kint::enabled() === Kint::MODE_PLAIN) { | 
| 60 | 60 |        if (strpos($url, 'http://') === 0) { | 
| @@ -92,7 +92,7 @@ discard block | ||
| 92 | 92 | break; | 
| 93 | 93 | } | 
| 94 | 94 | |
| 95 | - return $repeat ? str_repeat($char, $repeat) : (string)$char; | |
| 95 | + return $repeat ? str_repeat($char, $repeat) : (string) $char; | |
| 96 | 96 | } | 
| 97 | 97 | |
| 98 | 98 | /** | 
| @@ -109,7 +109,7 @@ discard block | ||
| 109 | 109 |      switch (Kint::enabled()) { | 
| 110 | 110 | case Kint::MODE_PLAIN: | 
| 111 | 111 |          if (!self::$_enableColors) { | 
| 112 | - return $text . $nlAfterChar; | |
| 112 | + return $text.$nlAfterChar; | |
| 113 | 113 | } | 
| 114 | 114 | |
| 115 | 115 |          switch ($type) { | 
| @@ -124,11 +124,11 @@ discard block | ||
| 124 | 124 | break; | 
| 125 | 125 | } | 
| 126 | 126 | |
| 127 | - return $text . $nlAfterChar; | |
| 127 | + return $text.$nlAfterChar; | |
| 128 | 128 | break; | 
| 129 | 129 | case Kint::MODE_CLI: | 
| 130 | 130 |          if (!self::$_enableColors) { | 
| 131 | - return $text . $nlAfterChar; | |
| 131 | + return $text.$nlAfterChar; | |
| 132 | 132 | } | 
| 133 | 133 | |
| 134 | 134 | $optionsMap = array( | 
| @@ -137,11 +137,11 @@ discard block | ||
| 137 | 137 | 'value' => "\x1b[32m", # green | 
| 138 | 138 | ); | 
| 139 | 139 | |
| 140 | - return $optionsMap[$type] . $text . "\x1b[0m" . $nlAfterChar; | |
| 140 | + return $optionsMap[$type].$text."\x1b[0m".$nlAfterChar; | |
| 141 | 141 | break; | 
| 142 | 142 | case Kint::MODE_WHITESPACE: | 
| 143 | 143 | default: | 
| 144 | - return $text . $nlAfterChar; | |
| 144 | + return $text.$nlAfterChar; | |
| 145 | 145 | break; | 
| 146 | 146 | } | 
| 147 | 147 | } | 
| @@ -156,26 +156,26 @@ discard block | ||
| 156 | 156 | $output = ''; | 
| 157 | 157 | |
| 158 | 158 |      if ($kintVar->access) { | 
| 159 | - $output .= ' ' . $kintVar->access; | |
| 159 | + $output .= ' '.$kintVar->access; | |
| 160 | 160 | } | 
| 161 | 161 | |
| 162 | 162 |      if ($kintVar->name !== null && $kintVar->name !== '') { | 
| 163 | - $output .= ' ' . KintParser::escape($kintVar->name); | |
| 163 | + $output .= ' '.KintParser::escape($kintVar->name); | |
| 164 | 164 | } | 
| 165 | 165 | |
| 166 | 166 |      if ($kintVar->operator) { | 
| 167 | - $output .= ' ' . $kintVar->operator; | |
| 167 | + $output .= ' '.$kintVar->operator; | |
| 168 | 168 | } | 
| 169 | 169 | |
| 170 | - $output .= ' ' . self::_colorize($kintVar->type, 'type', false); | |
| 170 | + $output .= ' '.self::_colorize($kintVar->type, 'type', false); | |
| 171 | 171 | |
| 172 | 172 |      if ($kintVar->size !== null) { | 
| 173 | -      $output .= ' (' . $kintVar->size . ')'; | |
| 173 | +      $output .= ' ('.$kintVar->size.')'; | |
| 174 | 174 | } | 
| 175 | 175 | |
| 176 | 176 | |
| 177 | 177 |      if ($kintVar->value !== null && $kintVar->value !== '') { | 
| 178 | - $output .= ' ' . self::_colorize( | |
| 178 | + $output .= ' '.self::_colorize( | |
| 179 | 179 | $kintVar->value, # escape shell | 
| 180 | 180 | 'value', | 
| 181 | 181 | false | 
| @@ -197,7 +197,7 @@ discard block | ||
| 197 | 197 | |
| 198 | 198 | return | 
| 199 | 199 | self::_colorize( | 
| 200 | -            self::_char('┌') . self::_char('─', 78) . self::_char('┐') . PHP_EOL | |
| 200 | +            self::_char('┌').self::_char('─', 78).self::_char('┐').PHP_EOL | |
| 201 | 201 |              . self::_char('│'), | 
| 202 | 202 | 'title', | 
| 203 | 203 | false | 
| @@ -206,8 +206,8 @@ discard block | ||
| 206 | 206 | . self::_colorize(str_pad($escaped, 78 + $lengthDifference, ' ', STR_PAD_BOTH), 'title', false) | 
| 207 | 207 | |
| 208 | 208 | . self::_colorize( | 
| 209 | -            self::_char('│') . PHP_EOL | |
| 210 | -            . self::_char('└') . self::_char('─', 78) . self::_char('┘'), | |
| 209 | +            self::_char('│').PHP_EOL | |
| 210 | +            . self::_char('└').self::_char('─', 78).self::_char('┘'), | |
| 211 | 211 | 'title' | 
| 212 | 212 | ); | 
| 213 | 213 | } | 
| @@ -230,11 +230,11 @@ discard block | ||
| 230 | 230 | |
| 231 | 231 | |
| 232 | 232 | $space = str_repeat($s = ' ', $level); | 
| 233 | - $output .= $space . self::_drawHeader($kintVar); | |
| 233 | + $output .= $space.self::_drawHeader($kintVar); | |
| 234 | 234 | |
| 235 | 235 | |
| 236 | 236 |      if ($kintVar->extendedValue !== null) { | 
| 237 | -      $output .= ' ' . ($kintVar->type === 'array' ? '[' : '(') . PHP_EOL; | |
| 237 | +      $output .= ' '.($kintVar->type === 'array' ? '[' : '(').PHP_EOL; | |
| 238 | 238 | |
| 239 | 239 | |
| 240 | 240 |        if (is_array($kintVar->extendedValue)) { | 
| @@ -243,12 +243,12 @@ discard block | ||
| 243 | 243 | } | 
| 244 | 244 |        } elseif (is_string($kintVar->extendedValue)) { | 
| 245 | 245 | /** @noinspection PhpToStringImplementationInspection */ | 
| 246 | - $output .= $space . $s . $kintVar->extendedValue . PHP_EOL; # "depth too great" or similar | |
| 246 | + $output .= $space.$s.$kintVar->extendedValue.PHP_EOL; # "depth too great" or similar | |
| 247 | 247 |        } else { | 
| 248 | 248 | /** @noinspection PhpParamsInspection */ | 
| 249 | 249 | $output .= self::decorate($kintVar->extendedValue, $level + 1); // it's kintVariableData | 
| 250 | 250 | } | 
| 251 | - $output .= $space . ($kintVar->type === 'array' ? ']' : ')') . PHP_EOL; | |
| 251 | + $output .= $space.($kintVar->type === 'array' ? ']' : ')').PHP_EOL; | |
| 252 | 252 |      } else { | 
| 253 | 253 | $output .= PHP_EOL; | 
| 254 | 254 | } | 
| @@ -266,7 +266,7 @@ discard block | ||
| 266 | 266 |      $output = self::_title('TRACE'); | 
| 267 | 267 | $lastStep = count($traceData); | 
| 268 | 268 |      foreach ($traceData as $stepNo => $step) { | 
| 269 | - $title = str_pad(++$stepNo . ': ', 4, ' '); | |
| 269 | + $title = str_pad(++$stepNo.': ', 4, ' '); | |
| 270 | 270 | |
| 271 | 271 | $title .= self::_colorize( | 
| 272 | 272 | (isset($step['file']) ? self::_buildCalleeString($step) : 'PHP internal call'), | 
| @@ -274,7 +274,7 @@ discard block | ||
| 274 | 274 | ); | 
| 275 | 275 | |
| 276 | 276 |        if (!empty($step['function'])) { | 
| 277 | - $title .= ' ' . $step['function']; | |
| 277 | + $title .= ' '.$step['function']; | |
| 278 | 278 |          if (isset($step['args'])) { | 
| 279 | 279 |            $title .= '('; | 
| 280 | 280 |            if (empty($step['args'])) { | 
| @@ -294,7 +294,7 @@ discard block | ||
| 294 | 294 |          foreach ($step['args'] as $name => $argument) { | 
| 295 | 295 | $argument = KintParser::factory( | 
| 296 | 296 | $argument, | 
| 297 | - $name ? $appendDollar . $name : '#' . ++$i | |
| 297 | + $name ? $appendDollar.$name : '#'.++$i | |
| 298 | 298 | ); | 
| 299 | 299 | $argument->operator = $name ? ' =' : ':'; | 
| 300 | 300 | $maxLevels = Kint::$maxLevels; | 
| @@ -306,12 +306,12 @@ discard block | ||
| 306 | 306 | Kint::$maxLevels = $maxLevels; | 
| 307 | 307 | } | 
| 308 | 308 | } | 
| 309 | - $output .= ' )' . PHP_EOL; | |
| 309 | + $output .= ' )'.PHP_EOL; | |
| 310 | 310 | } | 
| 311 | 311 | |
| 312 | 312 |        if (!empty($step['object'])) { | 
| 313 | 313 | $output .= self::_colorize( | 
| 314 | -            '    ' . self::_char('─', 27) . ' Callee object ' . self::_char('─', 34), | |
| 314 | +            '    '.self::_char('─', 27).' Callee object '.self::_char('─', 34), | |
| 315 | 315 | 'title' | 
| 316 | 316 | ); | 
| 317 | 317 | |
| @@ -365,10 +365,10 @@ discard block | ||
| 365 | 365 | $lastChar = Kint::enabled() === Kint::MODE_PLAIN ? '</pre>' : ''; | 
| 366 | 366 | |
| 367 | 367 |      if (!Kint::$displayCalledFrom) { | 
| 368 | - return $lastLine . $lastChar; | |
| 368 | + return $lastLine.$lastChar; | |
| 369 | 369 | } | 
| 370 | 370 | |
| 371 | -    return $lastLine . self::_colorize('Called from ' . self::_buildCalleeString($callee), 'title') . $lastChar; | |
| 371 | +    return $lastLine.self::_colorize('Called from '.self::_buildCalleeString($callee), 'title').$lastChar; | |
| 372 | 372 | } | 
| 373 | 373 | |
| 374 | 374 | /** | 
| @@ -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 | /** | 
| @@ -48,7 +48,7 @@ discard block | ||
| 48 | 48 | $key = substr($key, 1, -1); | 
| 49 | 49 | } | 
| 50 | 50 |            if (ctype_digit($key)) { | 
| 51 | - $key = (int)$key; | |
| 51 | + $key = (int) $key; | |
| 52 | 52 | } | 
| 53 | 53 | } | 
| 54 | 54 | $ret[$key] = self::_unparse($var); | 
| @@ -56,7 +56,7 @@ discard block | ||
| 56 | 56 | } | 
| 57 | 57 | |
| 58 | 58 |      if (class_exists($kintVar->type)) { | 
| 59 | - $ret = (object)$ret; | |
| 59 | + $ret = (object) $ret; | |
| 60 | 60 | } | 
| 61 | 61 | |
| 62 | 62 | return $ret; | 
| @@ -70,7 +70,7 @@ discard block | ||
| 70 | 70 | */ | 
| 71 | 71 | public static function decorate(KintVariableData $kintVar, /** @noinspection PhpUnusedParameterInspection */ $level = 0) | 
| 72 | 72 |    { | 
| 73 | -    return "kintDump.push(" . json_encode(self::_unparse($kintVar)) . ");" | |
| 73 | +    return "kintDump.push(".json_encode(self::_unparse($kintVar)).");" | |
| 74 | 74 | . "console.log(kintDump[kintDump.length-1]);"; | 
| 75 | 75 | } | 
| 76 | 76 | |
| @@ -93,7 +93,7 @@ discard block | ||
| 93 | 93 | } | 
| 94 | 94 | } | 
| 95 | 95 | |
| 96 | -    return "kintDump.push(" . json_encode($traceData) . ");" | |
| 96 | +    return "kintDump.push(".json_encode($traceData).");" | |
| 97 | 97 | . "console.log(kintDump[kintDump.length-1]);"; | 
| 98 | 98 | } | 
| 99 | 99 | |
| @@ -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 | /** | 
| @@ -22,15 +22,15 @@ discard block | ||
| 22 | 22 | $output = ''; | 
| 23 | 23 |      if ($verbose) { | 
| 24 | 24 |        if ($kintVar->access !== null) { | 
| 25 | - $output .= "<var>" . $kintVar->access . "</var> "; | |
| 25 | + $output .= "<var>".$kintVar->access."</var> "; | |
| 26 | 26 | } | 
| 27 | 27 | |
| 28 | 28 |        if ($kintVar->name !== null && $kintVar->name !== '') { | 
| 29 | - $output .= "<dfn>" . KintParser::escape($kintVar->name) . "</dfn> "; | |
| 29 | + $output .= "<dfn>".KintParser::escape($kintVar->name)."</dfn> "; | |
| 30 | 30 | } | 
| 31 | 31 | |
| 32 | 32 |        if ($kintVar->operator !== null) { | 
| 33 | - $output .= $kintVar->operator . " "; | |
| 33 | + $output .= $kintVar->operator." "; | |
| 34 | 34 | } | 
| 35 | 35 | } | 
| 36 | 36 | |
| @@ -49,7 +49,7 @@ discard block | ||
| 49 | 49 | } | 
| 50 | 50 | |
| 51 | 51 |      if ($kintVar->size !== null) { | 
| 52 | -      $output .= "(" . $kintVar->size . ") "; | |
| 52 | +      $output .= "(".$kintVar->size.") "; | |
| 53 | 53 | } | 
| 54 | 54 | |
| 55 | 55 | return $output; | 
| @@ -65,7 +65,7 @@ discard block | ||
| 65 | 65 |    { | 
| 66 | 66 | $shortenedPath = Kint::shortenPath($file); | 
| 67 | 67 |      if (!Kint::$fileLinkFormat) { | 
| 68 | - return $shortenedPath . ':' . $line; | |
| 68 | + return $shortenedPath.':'.$line; | |
| 69 | 69 | } | 
| 70 | 70 | |
| 71 | 71 | $ideLink = Kint::getIdeLink($file, $line); | 
| @@ -95,7 +95,7 @@ discard block | ||
| 95 | 95 |        if (Kint::$expandedByDefault) { | 
| 96 | 96 | $class .= ' kint-show'; | 
| 97 | 97 | } | 
| 98 | - $output .= '<dt class="' . $class . '">'; | |
| 98 | + $output .= '<dt class="'.$class.'">'; | |
| 99 | 99 |      } else { | 
| 100 | 100 | $output .= '<dt>'; | 
| 101 | 101 | } | 
| @@ -139,9 +139,9 @@ discard block | ||
| 139 | 139 | |
| 140 | 140 |        } else if ($parentType == 'object') { | 
| 141 | 141 | |
| 142 | - $accessChain .= '->' . $name; | |
| 142 | + $accessChain .= '->'.$name; | |
| 143 | 143 |          if (0 === strpos($name, '__construct(')) { | 
| 144 | - $accessChain = 'new ' . $context . substr($name, 11); | |
| 144 | + $accessChain = 'new '.$context.substr($name, 11); | |
| 145 | 145 | } | 
| 146 | 146 | $thisChain = $accessChain; | 
| 147 | 147 | |
| @@ -154,25 +154,25 @@ discard block | ||
| 154 | 154 | && | 
| 155 | 155 | is_int($context) | 
| 156 | 156 |          ) { | 
| 157 | - $name = (string)$context; | |
| 157 | + $name = (string) $context; | |
| 158 | 158 | } | 
| 159 | 159 | |
| 160 | 160 |          if (ctype_digit($name)) { | 
| 161 | - $accessChain .= '[' . $name . ']'; | |
| 161 | + $accessChain .= '['.$name.']'; | |
| 162 | 162 |          } else { | 
| 163 | - $accessChain .= '[\'' . $name . '\']'; | |
| 163 | + $accessChain .= '[\''.$name.'\']'; | |
| 164 | 164 | } | 
| 165 | 165 | |
| 166 | 166 | $thisChain = $accessChain; | 
| 167 | 167 | |
| 168 | 168 |        } else if ($parentType == 'static') { | 
| 169 | 169 | |
| 170 | - $accessChain = $context . '::' . $name; | |
| 170 | + $accessChain = $context.'::'.$name; | |
| 171 | 171 | $thisChain = $accessChain; | 
| 172 | 172 | |
| 173 | 173 |        } else if ($parentType == 'self') { | 
| 174 | 174 | |
| 175 | - $accessChain = 'self::' . $name; | |
| 175 | + $accessChain = 'self::'.$name; | |
| 176 | 176 | $thisChain = $accessChain; | 
| 177 | 177 | |
| 178 | 178 | } | 
| @@ -192,7 +192,7 @@ discard block | ||
| 192 | 192 | $output .= '<span class="kint-popup-trigger" title="Open in new window">→</span><nav></nav>'; | 
| 193 | 193 | } | 
| 194 | 194 | |
| 195 | - $output .= self::_drawHeader($kintVar) . $kintVar->value . '</dt>'; | |
| 195 | + $output .= self::_drawHeader($kintVar).$kintVar->value.'</dt>'; | |
| 196 | 196 | |
| 197 | 197 |      if ($extendedPresent) { | 
| 198 | 198 | $output .= '<dd>'; | 
| @@ -206,7 +206,7 @@ discard block | ||
| 206 | 206 | } | 
| 207 | 207 |        } elseif (is_string($kintVar->extendedValue)) { | 
| 208 | 208 | /** @noinspection PhpToStringImplementationInspection */ | 
| 209 | - $output .= '<pre>' . $kintVar->extendedValue . '</pre>'; | |
| 209 | + $output .= '<pre>'.$kintVar->extendedValue.'</pre>'; | |
| 210 | 210 |        } else { | 
| 211 | 211 | /** @noinspection PhpParamsInspection */ | 
| 212 | 212 | $output .= self::decorate($kintVar->extendedValue); // it's kintVariableData | 
| @@ -217,7 +217,7 @@ discard block | ||
| 217 | 217 | |
| 218 | 218 |        foreach ($kintVar->_alternatives as $k => $var) { | 
| 219 | 219 | $active = $k === 0 ? ' class="kint-active-tab"' : ''; | 
| 220 | -        $output .= "<li{$active}>" . self::_drawHeader($var, false) . '</li>'; | |
| 220 | +        $output .= "<li{$active}>".self::_drawHeader($var, false).'</li>'; | |
| 221 | 221 | } | 
| 222 | 222 | |
| 223 | 223 | $output .= "</ul><ul>"; | 
| @@ -262,20 +262,20 @@ discard block | ||
| 262 | 262 | } | 
| 263 | 263 | |
| 264 | 264 | $output .= is_string($v) | 
| 265 | - ? '<pre>' . $v . '</pre>' | |
| 265 | + ? '<pre>'.$v.'</pre>' | |
| 266 | 266 | : self::decorate($v, $level, $accessChain, $p, $c); | 
| 267 | 267 | } | 
| 268 | 268 | |
| 269 | 269 |          } elseif (is_string($var->value)) { | 
| 270 | 270 | |
| 271 | - $output .= '<pre>' . $var->value . '</pre>'; | |
| 271 | + $output .= '<pre>'.$var->value.'</pre>'; | |
| 272 | 272 | |
| 273 | 273 |          } elseif (isset($var->value)) { | 
| 274 | 274 | |
| 275 | 275 | throw new \Exception( | 
| 276 | 276 | 'Kint has encountered an error, ' | 
| 277 | 277 | . 'please paste this report to https://github.com/raveren/kint/issues<br>' | 
| 278 | - . 'Error encountered at ' . basename(__FILE__) . ':' . __LINE__ . '<br>' | |
| 278 | + . 'Error encountered at '.basename(__FILE__).':'.__LINE__.'<br>' | |
| 279 | 279 | . ' variables: ' | 
| 280 | 280 | . htmlspecialchars(var_export($kintVar->_alternatives, true), ENT_QUOTES) | 
| 281 | 281 | ); | 
| @@ -291,8 +291,8 @@ discard block | ||
| 291 | 291 | $output .= '</dd>'; | 
| 292 | 292 | } | 
| 293 | 293 | |
| 294 | -    if ( $thisChain ) { | |
| 295 | - $output .= '<dt class="access-path"><div class="access-icon">⇄</div>' . $thisChain . '</dt>'; | |
| 294 | +    if ($thisChain) { | |
| 295 | + $output .= '<dt class="access-path"><div class="access-icon">⇄</div>'.$thisChain.'</dt>'; | |
| 296 | 296 | } | 
| 297 | 297 | |
| 298 | 298 | $output .= '</dl>'; | 
| @@ -317,8 +317,8 @@ discard block | ||
| 317 | 317 | } | 
| 318 | 318 | |
| 319 | 319 | $output .= ' | 
| 320 | - <dt class="' . $class . '"> | |
| 321 | - <b>' . ($i + 1) . '</b> | |
| 320 | + <dt class="' . $class.'"> | |
| 321 | + <b>' . ($i + 1).'</b> | |
| 322 | 322 | <nav></nav> | 
| 323 | 323 | <var> | 
| 324 | 324 | '; | 
| @@ -334,7 +334,7 @@ discard block | ||
| 334 | 334 | $output .= $step['function']; | 
| 335 | 335 | |
| 336 | 336 |        if (isset($step['args'])) { | 
| 337 | -        $output .= '(' . implode(', ', array_keys($step['args'])) . ')'; | |
| 337 | +        $output .= '('.implode(', ', array_keys($step['args'])).')'; | |
| 338 | 338 | } | 
| 339 | 339 | |
| 340 | 340 | $output .= '</dt><dd>'; | 
| @@ -379,7 +379,7 @@ discard block | ||
| 379 | 379 | && | 
| 380 | 380 | !empty($step['object']) | 
| 381 | 381 |        ) { | 
| 382 | - $output .= "<li>" . self::decorate($calleeDump) . "</li>"; | |
| 382 | + $output .= "<li>".self::decorate($calleeDump)."</li>"; | |
| 383 | 383 | } | 
| 384 | 384 | |
| 385 | 385 | $output .= '</ul></dd>'; | 
| @@ -397,15 +397,15 @@ discard block | ||
| 397 | 397 | */ | 
| 398 | 398 | public static function init() | 
| 399 | 399 |    { | 
| 400 | - $baseDir = KINT_DIR . 'view/compiled/'; | |
| 400 | + $baseDir = KINT_DIR.'view/compiled/'; | |
| 401 | 401 | |
| 402 | -    if (!is_readable($cssFile = $baseDir . Kint::$theme . '.css')) { | |
| 403 | - $cssFile = $baseDir . 'original.css'; | |
| 402 | +    if (!is_readable($cssFile = $baseDir.Kint::$theme.'.css')) { | |
| 403 | + $cssFile = $baseDir.'original.css'; | |
| 404 | 404 | } | 
| 405 | 405 | |
| 406 | 406 | return ' | 
| 407 | - <script class="-kint-js">' . file_get_contents($baseDir . 'kint.js') . '</script> | |
| 408 | - <style class="-kint-css">' . file_get_contents($cssFile) . '</style> | |
| 407 | + <script class="-kint-js">' . file_get_contents($baseDir.'kint.js').'</script> | |
| 408 | + <style class="-kint-css">' . file_get_contents($cssFile).'</style> | |
| 409 | 409 | '; | 
| 410 | 410 | } | 
| 411 | 411 | |
| @@ -438,19 +438,19 @@ discard block | ||
| 438 | 438 | && | 
| 439 | 439 |          !in_array($prevCaller['function'], array('include', 'include_once', 'require', 'require_once'), true) | 
| 440 | 440 |      ) { | 
| 441 | - $callingFunction .= $prevCaller['function'] . '()'; | |
| 441 | + $callingFunction .= $prevCaller['function'].'()'; | |
| 442 | 442 | } | 
| 443 | 443 |      $callingFunction and $callingFunction = " [{$callingFunction}]"; | 
| 444 | 444 | |
| 445 | 445 | |
| 446 | 446 |      if (isset($callee['file'])) { | 
| 447 | - $calleeInfo .= 'Called from ' . self::_ideLink($callee['file'], $callee['line']); | |
| 447 | + $calleeInfo .= 'Called from '.self::_ideLink($callee['file'], $callee['line']); | |
| 448 | 448 | } | 
| 449 | 449 | |
| 450 | 450 |      if (!empty($miniTrace)) { | 
| 451 | 451 | $traceDisplay = '<ol>'; | 
| 452 | 452 |        foreach ($miniTrace as $step) { | 
| 453 | - $traceDisplay .= '<li>' . self::_ideLink($step['file'], $step['line']); // closing tag not required | |
| 453 | + $traceDisplay .= '<li>'.self::_ideLink($step['file'], $step['line']); // closing tag not required | |
| 454 | 454 | if ( | 
| 455 | 455 | isset($step['function']) | 
| 456 | 456 | && | 
| @@ -463,13 +463,13 @@ discard block | ||
| 463 | 463 |            if (isset($step['type'])) { | 
| 464 | 464 | $classString .= $step['type']; | 
| 465 | 465 | } | 
| 466 | - $classString .= $step['function'] . '()]'; | |
| 466 | + $classString .= $step['function'].'()]'; | |
| 467 | 467 | $traceDisplay .= $classString; | 
| 468 | 468 | } | 
| 469 | 469 | } | 
| 470 | 470 | $traceDisplay .= '</ol>'; | 
| 471 | 471 | |
| 472 | - $calleeInfo = '<nav></nav>' . $calleeInfo; | |
| 472 | + $calleeInfo = '<nav></nav>'.$calleeInfo; | |
| 473 | 473 | } | 
| 474 | 474 | |
| 475 | 475 | |
| @@ -20,7 +20,7 @@ | ||
| 20 | 20 | if ( | 
| 21 | 21 | is_object($variable) | 
| 22 | 22 | || is_array($variable) | 
| 23 | - || (string)$variable !== $variable | |
| 23 | + || (string) $variable !== $variable | |
| 24 | 24 | || strlen($variable) > 2048 | 
| 25 | 25 |          || preg_match('[[:?<>"*|]]', $variable) | 
| 26 | 26 | || !@is_readable($variable) # f@#! PHP and its random warnings | 
| @@ -19,7 +19,7 @@ discard block | ||
| 19 | 19 | if ( | 
| 20 | 20 | is_object($variable) | 
| 21 | 21 | || is_array($variable) | 
| 22 | - || (string)$variable !== $variable | |
| 22 | + || (string) $variable !== $variable | |
| 23 | 23 | || !isset($variable[0]) | 
| 24 | 24 |          || ($variable[0] !== '{' && $variable[0] !== '[') | 
| 25 | 25 | || ($json = json_decode($variable, true)) === null | 
| @@ -27,7 +27,7 @@ discard block | ||
| 27 | 27 | return false; | 
| 28 | 28 | } | 
| 29 | 29 | |
| 30 | - $val = (array)$json; | |
| 30 | + $val = (array) $json; | |
| 31 | 31 |      if (empty($val)) { | 
| 32 | 32 | return false; | 
| 33 | 33 | } | 
| @@ -22,15 +22,15 @@ discard block | ||
| 22 | 22 | is_array($variable) | 
| 23 | 23 | || | 
| 24 | 24 | ( | 
| 25 | - (string)$variable !== $variable | |
| 25 | + (string) $variable !== $variable | |
| 26 | 26 | && | 
| 27 | - (int)$variable !== $variable | |
| 27 | + (int) $variable !== $variable | |
| 28 | 28 | ) | 
| 29 | 29 |      ) { | 
| 30 | 30 | return false; | 
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | - $len = strlen((int)$variable); | |
| 33 | + $len = strlen((int) $variable); | |
| 34 | 34 | |
| 35 | 35 | return | 
| 36 | 36 | ( | 
| @@ -45,7 +45,7 @@ discard block | ||
| 45 | 45 | ) # also handles javascript micro timestamps | 
| 46 | 46 | ) | 
| 47 | 47 | && | 
| 48 | - (string)(int)$variable == $variable; | |
| 48 | + (string) (int) $variable == $variable; | |
| 49 | 49 | } | 
| 50 | 50 | |
| 51 | 51 | /** | 
| @@ -18,7 +18,7 @@ | ||
| 18 | 18 |    { | 
| 19 | 19 |      try { | 
| 20 | 20 | if ( | 
| 21 | - (string)$variable === $variable | |
| 21 | + (string) $variable === $variable | |
| 22 | 22 | && | 
| 23 | 23 | 0 === strpos($variable, '<?xml') | 
| 24 | 24 |        ) { |