Completed
Push — master ( 3c84ea...366ddd )
by Lars
02:25
created
src/kint/KintBootup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.
src/kint/parsers/custom/Kint_Parsers_FsPath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/kint/parsers/custom/Kint_Parsers_Json.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/kint/parsers/custom/Kint_Parsers_Timestamp.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,15 +22,15 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
   /**
Please login to merge, or discard this patch.
src/kint/parsers/custom/Kint_Parsers_Xml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
       ) {
Please login to merge, or discard this patch.
src/kint/parsers/custom/Kint_Parsers_ClassStatics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
       }
40 40
 
41 41
       $_ = $property->getValue();
42
-      $output = KintParser::factory($_, '$' . $property->getName());
42
+      $output = KintParser::factory($_, '$'.$property->getName());
43 43
 
44 44
       $output->access = $access;
45 45
       $output->operator = '::';
Please login to merge, or discard this patch.
src/kint/parsers/objects/Kint_Objects_Smarty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     }
27 27
 
28 28
     /** @noinspection PhpUndefinedClassInspection */
29
-    $this->name = 'object Smarty (v' . substr(Smarty::SMARTY_VERSION, 7) . ')'; # trim 'Smarty-'
29
+    $this->name = 'object Smarty (v'.substr(Smarty::SMARTY_VERSION, 7).')'; # trim 'Smarty-'
30 30
 
31 31
     $assigned = $globalAssigns = array();
32 32
     /** @noinspection PhpUndefinedFieldInspection */
Please login to merge, or discard this patch.
src/kint/parsers/objects/Kint_Objects_Closure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
     $val = $reflection->getFileName();
53 53
     if ($val) {
54
-      $this->value = Kint::shortenPath($val) . ':' . $reflection->getStartLine();
54
+      $this->value = Kint::shortenPath($val).':'.$reflection->getStartLine();
55 55
     }
56 56
 
57 57
     return $ret;
Please login to merge, or discard this patch.
src/kint/Kint.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.