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/custom/Kint_Parsers_Color.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -388,9 +388,9 @@
 block discarded – undo
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
   /**
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -227,8 +227,8 @@  discard block
 block discarded – undo
227 227
 
228 228
     return array(
229 229
         round($H * 360),
230
-        round($S * 100) . '%',
231
-        round($L * 100) . '%',
230
+        round($S * 100).'%',
231
+        round($L * 100).'%',
232 232
     );
233 233
   }
234 234
 
@@ -263,9 +263,9 @@  discard block
 block discarded – undo
263 263
         $colors = str_split($color, 2);
264 264
       } else {
265 265
         $colors = array(
266
-            $color[0] . $color[0],
267
-            $color[1] . $color[1],
268
-            $color[2] . $color[2],
266
+            $color[0].$color[0],
267
+            $color[1].$color[1],
268
+            $color[2].$color[2],
269 269
         );
270 270
       }
271 271
 
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
           } else {
335 335
             $a = '';
336 336
           }
337
-          $variant = "rgb{$a}( " . implode(', ', $rgb) . ' )';
337
+          $variant = "rgb{$a}( ".implode(', ', $rgb).' )';
338 338
           break;
339 339
         case 'hsl':
340 340
           $rgb = self::_RGBtoHSL($decimalColors);
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
             $a = '';
350 350
           }
351 351
 
352
-          $variant = "hsl{$a}( " . implode(', ', $rgb) . ' )';
352
+          $variant = "hsl{$a}( ".implode(', ', $rgb).' )';
353 353
           break;
354 354
         case 'name':
355 355
           // [!] name in initial variants array must go after hex
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
         ||
379 379
         is_array($variable)
380 380
         ||
381
-        (string)$variable === $variable
381
+        (string) $variable === $variable
382 382
     ) {
383 383
       return false;
384 384
     }
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.