Completed
Push — master ( 5d5002...ec507e )
by Lars
17:36
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_ClassMethods.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -52,26 +52,26 @@  discard block
 block discarded – undo
52 52
             try {
53 53
               $paramClassName = $param->getClass();
54 54
               if ($paramClassName) {
55
-                $paramString .= $paramClassName->name . ' ';
55
+                $paramString .= $paramClassName->name.' ';
56 56
               }
57 57
             } catch (\ReflectionException $e) {
58
-              preg_match('/\[\s\<\w+?>\s([\w]+)/', (string)$param, $matches);
58
+              preg_match('/\[\s\<\w+?>\s([\w]+)/', (string) $param, $matches);
59 59
               $paramClassName = isset($matches[1]) ? $matches[1] : '';
60 60
 
61
-              $paramString .= ' UNDEFINED CLASS (' . $paramClassName . ') ';
61
+              $paramString .= ' UNDEFINED CLASS ('.$paramClassName.') ';
62 62
             }
63 63
           }
64 64
 
65
-          $paramString .= ($param->isPassedByReference() ? '&' : '') . '$' . $param->getName();
65
+          $paramString .= ($param->isPassedByReference() ? '&' : '').'$'.$param->getName();
66 66
 
67 67
           if ($param->isDefaultValueAvailable()) {
68 68
             if (is_array($param->getDefaultValue())) {
69 69
               $arrayValues = array();
70 70
               foreach ($param->getDefaultValue() as $key => $value) {
71
-                $arrayValues[] = $key . ' => ' . $value;
71
+                $arrayValues[] = $key.' => '.$value;
72 72
               }
73 73
 
74
-              $defaultValue = 'array(' . implode(', ', $arrayValues) . ')';
74
+              $defaultValue = 'array('.implode(', ', $arrayValues).')';
75 75
             } elseif ($param->getDefaultValue() === null) {
76 76
               $defaultValue = 'NULL';
77 77
             } elseif ($param->getDefaultValue() === false) {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
               $defaultValue = $param->getDefaultValue();
85 85
             }
86 86
 
87
-            $paramString .= ' = ' . $defaultValue;
87
+            $paramString .= ' = '.$defaultValue;
88 88
           }
89 89
 
90 90
           $params[] = $paramString;
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
           }
108 108
         }
109 109
 
110
-        $output->name = ($method->returnsReference() ? '&' : '') . $method->getName() . '('
111
-                        . implode(', ', $params) . ')';
110
+        $output->name = ($method->returnsReference() ? '&' : '').$method->getName().'('
111
+                        . implode(', ', $params).')';
112 112
         $output->access = $access;
113 113
 
114 114
         if (is_string($docBlock)) {
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             $lines[] = self::escape(trim($line), 'UTF-8');
126 126
           }
127 127
 
128
-          $output->extendedValue = implode("\n", $lines) . "\n\n";
128
+          $output->extendedValue = implode("\n", $lines)."\n\n";
129 129
         }
130 130
 
131 131
         $declaringClass = $method->getDeclaringClass();
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
           $output->extendedValue .= "<small>Inherited from <i>{$declaringClassName}</i></small>\n";
137 137
         }
138 138
 
139
-        $fileName = Kint::shortenPath($method->getFileName()) . ':' . $method->getStartLine();
139
+        $fileName = Kint::shortenPath($method->getFileName()).':'.$method->getStartLine();
140 140
         /** @noinspection PhpToStringImplementationInspection */
141 141
         $output->extendedValue .= "<small>Defined in {$fileName}</small>";
142 142
 
143
-        $sortName = $access . $method->getName();
143
+        $sortName = $access.$method->getName();
144 144
 
145 145
         if ($method->isPrivate()) {
146 146
           $private[$sortName] = $output;
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.