Passed
Push — main ( 2cb152...6ff26f )
by TARIQ
23:50
created
brighty/system/ThirdParty/Kint/Parser/IteratorPlugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         return Parser::TRIGGER_SUCCESS;
59 59
     }
60 60
 
61
-    public function parse(&$var, Value &$o, $trigger)
61
+    public function parse(&$var, Value & $o, $trigger)
62 62
     {
63 63
         if (!$var instanceof Traversable) {
64 64
             return;
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         foreach (self::$blacklist as $class) {
68 68
             if ($var instanceof $class) {
69 69
                 $b = new Value();
70
-                $b->name = $class.' Iterator Contents';
71
-                $b->access_path = 'iterator_to_array('.$o->access_path.', true)';
70
+                $b->name = $class . ' Iterator Contents';
71
+                $b->access_path = 'iterator_to_array(' . $o->access_path . ', true)';
72 72
                 $b->depth = $o->depth + 1;
73 73
                 $b->hints[] = 'blacklist';
74 74
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $base_obj->depth = $o->depth;
88 88
 
89 89
         if ($o->access_path) {
90
-            $base_obj->access_path = 'iterator_to_array('.$o->access_path.')';
90
+            $base_obj->access_path = 'iterator_to_array(' . $o->access_path . ')';
91 91
         }
92 92
 
93 93
         $r = new Representation('Iterator');
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Parser/DateTimePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         return Parser::TRIGGER_SUCCESS;
42 42
     }
43 43
 
44
-    public function parse(&$var, Value &$o, $trigger)
44
+    public function parse(&$var, Value & $o, $trigger)
45 45
     {
46 46
         if (!$var instanceof DateTime) {
47 47
             return;
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Parser/Plugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,5 +51,5 @@
 block discarded – undo
51 51
         return Parser::TRIGGER_NONE;
52 52
     }
53 53
 
54
-    abstract public function parse(&$var, Value &$o, $trigger);
54
+    abstract public function parse(&$var, Value & $o, $trigger);
55 55
 }
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Parser/ClassStaticsPlugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         return Parser::TRIGGER_SUCCESS;
46 46
     }
47 47
 
48
-    public function parse(&$var, Value &$o, $trigger)
48
+    public function parse(&$var, Value & $o, $trigger)
49 49
     {
50 50
         $class = \get_class($var);
51 51
         $reflection = new ReflectionClass($class);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             $consts = [];
57 57
 
58 58
             foreach ($reflection->getConstants() as $name => $val) {
59
-                $const = Value::blank($name, '\\'.$class.'::'.$name);
59
+                $const = Value::blank($name, '\\' . $class . '::' . $name);
60 60
                 $const->const = true;
61 61
                 $const->depth = $o->depth + 1;
62 62
                 $const->owner_class = $class;
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         foreach ($reflection->getProperties(ReflectionProperty::IS_STATIC) as $static) {
76 76
             $prop = new Value();
77
-            $prop->name = '$'.$static->getName();
77
+            $prop->name = '$' . $static->getName();
78 78
             $prop->depth = $o->depth + 1;
79 79
             $prop->static = true;
80 80
             $prop->operator = Value::OPERATOR_STATIC;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             }
89 89
 
90 90
             if ($this->parser->childHasPath($o, $prop)) {
91
-                $prop->access_path = '\\'.$prop->owner_class.'::'.$prop->name;
91
+                $prop->access_path = '\\' . $prop->owner_class . '::' . $prop->name;
92 92
             }
93 93
 
94 94
             $static->setAccessible(true);
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Parser/ClassMethodsPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         return Parser::TRIGGER_SUCCESS;
46 46
     }
47 47
 
48
-    public function parse(&$var, Value &$o, $trigger)
48
+    public function parse(&$var, Value & $o, $trigger)
49 49
     {
50 50
         $class = \get_class($var);
51 51
 
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Parser/SimpleXMLElementPlugin.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         return Parser::TRIGGER_SUCCESS;
51 51
     }
52 52
 
53
-    public function parse(&$var, Value &$o, $trigger)
53
+    public function parse(&$var, Value & $o, $trigger)
54 54
     {
55 55
         if (!$var instanceof SimpleXMLElement) {
56 56
             return;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $base_obj->depth = $x->depth;
83 83
 
84 84
         if ($x->access_path) {
85
-            $base_obj->access_path = '(string) '.$x->access_path;
85
+            $base_obj->access_path = '(string) ' . $x->access_path;
86 86
         }
87 87
 
88 88
         // Attributes are strings. If we're too deep set the
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
                 } else {
111 111
                     $obj = clone $base_obj;
112 112
                     if ($obj->access_path) {
113
-                        $obj->access_path .= '->attributes('.\var_export($nsAlias, true).', true)';
113
+                        $obj->access_path .= '->attributes(' . \var_export($nsAlias, true) . ', true)';
114 114
                     }
115 115
 
116 116
                     $cleanAttribs = $this->parser->parse($cleanAttribs, $obj)->value->contents;
117 117
 
118 118
                     foreach ($cleanAttribs as $attribute) {
119
-                        $attribute->name = $nsAlias.':'.$attribute->name;
119
+                        $attribute->name = $nsAlias . ':' . $attribute->name;
120 120
                         $a->contents[] = $attribute;
121 121
                     }
122 122
                 }
@@ -144,20 +144,20 @@  discard block
 block discarded – undo
144 144
                     $obj->name = (string) $name;
145 145
                     if ($x->access_path) {
146 146
                         if (null === $nsUrl) {
147
-                            $obj->access_path = $x->access_path.'->children()->';
147
+                            $obj->access_path = $x->access_path . '->children()->';
148 148
                         } else {
149
-                            $obj->access_path = $x->access_path.'->children('.\var_export($nsAlias, true).', true)->';
149
+                            $obj->access_path = $x->access_path . '->children(' . \var_export($nsAlias, true) . ', true)->';
150 150
                         }
151 151
 
152 152
                         if (\preg_match('/^[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]+$/', (string) $name)) {
153 153
                             $obj->access_path .= (string) $name;
154 154
                         } else {
155
-                            $obj->access_path .= '{'.\var_export((string) $name, true).'}';
155
+                            $obj->access_path .= '{' . \var_export((string) $name, true) . '}';
156 156
                         }
157 157
 
158 158
                         if (isset($nsap[$obj->access_path])) {
159 159
                             ++$nsap[$obj->access_path];
160
-                            $obj->access_path .= '['.$nsap[$obj->access_path].']';
160
+                            $obj->access_path .= '[' . $nsap[$obj->access_path] . ']';
161 161
                         } else {
162 162
                             $nsap[$obj->access_path] = 0;
163 163
                         }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                     $value = $this->parser->parse($child, $obj);
167 167
 
168 168
                     if ($value->access_path && 'string' === $value->type) {
169
-                        $value->access_path = '(string) '.$value->access_path;
169
+                        $value->access_path = '(string) ' . $value->access_path;
170 170
                     }
171 171
 
172 172
                     $c->contents[] = $value;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
                 $base_obj->depth = $x->depth + 1;
187 187
                 $base_obj->name = $x->name;
188 188
                 if ($x->access_path) {
189
-                    $base_obj->access_path = '(string) '.$x->access_path;
189
+                    $base_obj->access_path = '(string) ' . $x->access_path;
190 190
                 }
191 191
 
192 192
                 $value = (string) $var;
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Parser/FsPathPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
         return Parser::TRIGGER_SUCCESS;
44 44
     }
45 45
 
46
-    public function parse(&$var, Value &$o, $trigger)
46
+    public function parse(&$var, Value & $o, $trigger)
47 47
     {
48 48
         if (\strlen($var) > 2048) {
49 49
             return;
50 50
         }
51 51
 
52
-        if (!\preg_match('/[\\/\\'.DIRECTORY_SEPARATOR.']/', $var)) {
52
+        if (!\preg_match('/[\\/\\' . DIRECTORY_SEPARATOR . ']/', $var)) {
53 53
             return;
54 54
         }
55 55
 
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Parser/DOMDocumentPlugin.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         return Parser::TRIGGER_SUCCESS;
91 91
     }
92 92
 
93
-    public function parse(&$var, Value &$o, $trigger)
93
+    public function parse(&$var, Value & $o, $trigger)
94 94
     {
95 95
         if (!$o instanceof InstanceValue) {
96 96
             return;
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         }
106 106
     }
107 107
 
108
-    protected function parseList(&$var, InstanceValue &$o, $trigger)
108
+    protected function parseList(&$var, InstanceValue & $o, $trigger)
109 109
     {
110 110
         // Recursion should never happen, should always be stopped at the parent
111 111
         // DOMNode. Depth limit on the other hand we're going to skip since
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
         // Make empty iterator representation since we need it in DOMNode to point out depth limits
128 128
         if ($this->parser->getDepthLimit() && $o->depth + 1 >= $this->parser->getDepthLimit()) {
129 129
             $b = new Value();
130
-            $b->name = $o->classname.' Iterator Contents';
131
-            $b->access_path = 'iterator_to_array('.$o->access_path.')';
130
+            $b->name = $o->classname . ' Iterator Contents';
131
+            $b->access_path = 'iterator_to_array(' . $o->access_path . ')';
132 132
             $b->depth = $o->depth + 1;
133 133
             $b->hints[] = 'depth_limit';
134 134
 
@@ -155,13 +155,13 @@  discard block
 block discarded – undo
155 155
                     //
156 156
                     // Contrary to the PHP docs, getNamedItemNS takes null
157 157
                     // as a namespace argument for an unnamespaced item.
158
-                    $base_obj->access_path = $o->access_path.'->getNamedItemNS(';
158
+                    $base_obj->access_path = $o->access_path . '->getNamedItemNS(';
159 159
                     $base_obj->access_path .= \var_export($item->namespaceURI, true);
160 160
                     $base_obj->access_path .= ', ';
161 161
                     $base_obj->access_path .= \var_export($item->name, true);
162 162
                     $base_obj->access_path .= ')';
163 163
                 } elseif ($var instanceof DOMNodeList) {
164
-                    $base_obj->access_path = $o->access_path.'->item('.\var_export($key, true).')';
164
+                    $base_obj->access_path = $o->access_path . '->item(' . \var_export($key, true) . ')';
165 165
                 }
166 166
             }
167 167
 
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         }
170 170
     }
171 171
 
172
-    protected function parseNode(&$var, InstanceValue &$o)
172
+    protected function parseNode(&$var, InstanceValue & $o)
173 173
     {
174 174
         // Fill the properties
175 175
         // They can't be enumerated through reflection or casting,
@@ -286,9 +286,9 @@  discard block
 block discarded – undo
286 286
             $base_obj->access_path = $o->access_path;
287 287
 
288 288
             if (\preg_match('/^[A-Za-z0-9_]+$/', $base_obj->name)) {
289
-                $base_obj->access_path .= '->'.$base_obj->name;
289
+                $base_obj->access_path .= '->' . $base_obj->name;
290 290
             } else {
291
-                $base_obj->access_path .= '->{'.\var_export($base_obj->name, true).'}';
291
+                $base_obj->access_path .= '->{' . \var_export($base_obj->name, true) . '}';
292 292
             }
293 293
         }
294 294
 
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Parser/TracePlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         return Parser::TRIGGER_SUCCESS;
46 46
     }
47 47
 
48
-    public function parse(&$var, Value &$o, $trigger)
48
+    public function parse(&$var, Value & $o, $trigger)
49 49
     {
50 50
         if (!$o->value) {
51 51
             return;
Please login to merge, or discard this patch.