Passed
Push — main ( 2cb152...6ff26f )
by TARIQ
23:50
created
brighty/system/ThirdParty/Kint/Zval/BlobValue.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,20 +83,20 @@
 block discarded – undo
83 83
     public function getType()
84 84
     {
85 85
         if (false === $this->encoding) {
86
-            return 'binary '.$this->type;
86
+            return 'binary ' . $this->type;
87 87
         }
88 88
 
89 89
         if ('ASCII' === $this->encoding) {
90 90
             return $this->type;
91 91
         }
92 92
 
93
-        return $this->encoding.' '.$this->type;
93
+        return $this->encoding . ' ' . $this->type;
94 94
     }
95 95
 
96 96
     public function getValueShort()
97 97
     {
98 98
         if ($rep = $this->value) {
99
-            return '"'.$rep->contents.'"';
99
+            return '"' . $rep->contents . '"';
100 100
         }
101 101
     }
102 102
 
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Renderer/PlainRenderer.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -105,17 +105,17 @@  discard block
 block discarded – undo
105 105
 
106 106
     public function colorValue($string)
107 107
     {
108
-        return '<i>'.$string.'</i>';
108
+        return '<i>' . $string . '</i>';
109 109
     }
110 110
 
111 111
     public function colorType($string)
112 112
     {
113
-        return '<b>'.$string.'</b>';
113
+        return '<b>' . $string . '</b>';
114 114
     }
115 115
 
116 116
     public function colorTitle($string)
117 117
     {
118
-        return '<u>'.$string.'</u>';
118
+        return '<u>' . $string . '</u>';
119 119
     }
120 120
 
121 121
     public function renderTitle(Value $o)
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
 
145 145
                 switch ($type) {
146 146
                     case 'script':
147
-                        $output .= '<script class="kint-plain-script">'.$contents.'</script>';
147
+                        $output .= '<script class="kint-plain-script">' . $contents . '</script>';
148 148
                         break;
149 149
                     case 'style':
150
-                        $output .= '<style class="kint-plain-style">'.$contents.'</style>';
150
+                        $output .= '<style class="kint-plain-style">' . $contents . '</style>';
151 151
                         break;
152 152
                     default:
153 153
                         $output .= $contents;
@@ -160,21 +160,21 @@  discard block
 block discarded – undo
160 160
             }
161 161
         }
162 162
 
163
-        return $output.'<div class="kint-plain">';
163
+        return $output . '<div class="kint-plain">';
164 164
     }
165 165
 
166 166
     public function postRender()
167 167
     {
168 168
         if (self::$disable_utf8) {
169
-            return $this->utf8ToHtmlentity(parent::postRender()).'</div>';
169
+            return $this->utf8ToHtmlentity(parent::postRender()) . '</div>';
170 170
         }
171 171
 
172
-        return parent::postRender().'</div>';
172
+        return parent::postRender() . '</div>';
173 173
     }
174 174
 
175 175
     public function ideLink($file, $line)
176 176
     {
177
-        $path = $this->escape(Kint::shortenPath($file)).':'.$line;
177
+        $path = $this->escape(Kint::shortenPath($file)) . ':' . $line;
178 178
         $ideLink = Kint::getIdeLink($file, $line);
179 179
 
180 180
         if (!$ideLink) {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             $class = 'class="kint-ide-link" ';
188 188
         }
189 189
 
190
-        return '<a '.$class.'href="'.$this->escape($ideLink).'">'.$path.'</a>';
190
+        return '<a ' . $class . 'href="' . $this->escape($ideLink) . '">' . $path . '</a>';
191 191
     }
192 192
 
193 193
     public function escape($string, $encoding = false)
@@ -223,13 +223,13 @@  discard block
 block discarded – undo
223 223
 
224 224
     protected static function renderJs()
225 225
     {
226
-        return \file_get_contents(KINT_DIR.'/resources/compiled/shared.js').\file_get_contents(KINT_DIR.'/resources/compiled/plain.js');
226
+        return \file_get_contents(KINT_DIR . '/resources/compiled/shared.js') . \file_get_contents(KINT_DIR . '/resources/compiled/plain.js');
227 227
     }
228 228
 
229 229
     protected static function renderCss()
230 230
     {
231
-        if (\file_exists(KINT_DIR.'/resources/compiled/'.self::$theme)) {
232
-            return \file_get_contents(KINT_DIR.'/resources/compiled/'.self::$theme);
231
+        if (\file_exists(KINT_DIR . '/resources/compiled/' . self::$theme)) {
232
+            return \file_get_contents(KINT_DIR . '/resources/compiled/' . self::$theme);
233 233
         }
234 234
 
235 235
         return \file_get_contents(self::$theme);
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Renderer/Text/DepthLimitPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
         $out = '';
35 35
 
36 36
         if (0 == $o->depth) {
37
-            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)).PHP_EOL;
37
+            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)) . PHP_EOL;
38 38
         }
39 39
 
40
-        $out .= $this->renderer->renderHeader($o).' '.$this->renderer->colorValue('DEPTH LIMIT').PHP_EOL;
40
+        $out .= $this->renderer->renderHeader($o) . ' ' . $this->renderer->colorValue('DEPTH LIMIT') . PHP_EOL;
41 41
 
42 42
         return $out;
43 43
     }
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Renderer/Text/RecursionPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
         $out = '';
35 35
 
36 36
         if (0 == $o->depth) {
37
-            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)).PHP_EOL;
37
+            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)) . PHP_EOL;
38 38
         }
39 39
 
40
-        $out .= $this->renderer->renderHeader($o).' '.$this->renderer->colorValue('RECURSION').PHP_EOL;
40
+        $out .= $this->renderer->renderHeader($o) . ' ' . $this->renderer->colorValue('RECURSION') . PHP_EOL;
41 41
 
42 42
         return $out;
43 43
     }
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Renderer/Text/TracePlugin.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,24 +35,24 @@  discard block
 block discarded – undo
35 35
         $out = '';
36 36
 
37 37
         if (0 == $o->depth) {
38
-            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)).PHP_EOL;
38
+            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)) . PHP_EOL;
39 39
         }
40 40
 
41
-        $out .= $this->renderer->renderHeader($o).':'.PHP_EOL;
41
+        $out .= $this->renderer->renderHeader($o) . ':' . PHP_EOL;
42 42
 
43 43
         $indent = \str_repeat(' ', ($o->depth + 1) * $this->renderer->indent_width);
44 44
 
45 45
         $i = 1;
46 46
         foreach ($o->value->contents as $frame) {
47
-            $framedesc = $indent.\str_pad($i.': ', 4, ' ');
47
+            $framedesc = $indent . \str_pad($i . ': ', 4, ' ');
48 48
 
49 49
             if ($frame->trace['file']) {
50
-                $framedesc .= $this->renderer->ideLink($frame->trace['file'], $frame->trace['line']).PHP_EOL;
50
+                $framedesc .= $this->renderer->ideLink($frame->trace['file'], $frame->trace['line']) . PHP_EOL;
51 51
             } else {
52
-                $framedesc .= 'PHP internal call'.PHP_EOL;
52
+                $framedesc .= 'PHP internal call' . PHP_EOL;
53 53
             }
54 54
 
55
-            $framedesc .= $indent.'    ';
55
+            $framedesc .= $indent . '    ';
56 56
 
57 57
             if ($frame->trace['class']) {
58 58
                 $framedesc .= $this->renderer->escape($frame->trace['class']);
@@ -65,13 +65,13 @@  discard block
 block discarded – undo
65 65
             }
66 66
 
67 67
             if (\is_string($frame->trace['function'])) {
68
-                $framedesc .= $this->renderer->escape($frame->trace['function']).'(...)';
68
+                $framedesc .= $this->renderer->escape($frame->trace['function']) . '(...)';
69 69
             } elseif ($frame->trace['function'] instanceof MethodValue) {
70 70
                 $framedesc .= $this->renderer->escape($frame->trace['function']->getName());
71
-                $framedesc .= '('.$this->renderer->escape($frame->trace['function']->getParams()).')';
71
+                $framedesc .= '(' . $this->renderer->escape($frame->trace['function']->getParams()) . ')';
72 72
             }
73 73
 
74
-            $out .= $this->renderer->colorType($framedesc).PHP_EOL.PHP_EOL;
74
+            $out .= $this->renderer->colorType($framedesc) . PHP_EOL . PHP_EOL;
75 75
 
76 76
             if ($source = $frame->getRepresentation('source')) {
77 77
                 $line_wanted = $source->line;
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
 
97 97
                 foreach ($source as $lineno => $line) {
98 98
                     if ($lineno == $line_wanted) {
99
-                        $out .= $indent.$this->renderer->colorValue($this->renderer->escape($line)).PHP_EOL;
99
+                        $out .= $indent . $this->renderer->colorValue($this->renderer->escape($line)) . PHP_EOL;
100 100
                     } else {
101
-                        $out .= $indent.$this->renderer->escape($line).PHP_EOL;
101
+                        $out .= $indent . $this->renderer->escape($line) . PHP_EOL;
102 102
                     }
103 103
                 }
104 104
             }
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Renderer/Text/MicrotimePlugin.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -56,63 +56,63 @@
 block discarded – undo
56 56
         $out = '';
57 57
 
58 58
         if (0 == $o->depth) {
59
-            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)).PHP_EOL;
59
+            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)) . PHP_EOL;
60 60
         }
61 61
 
62 62
         $out .= $this->renderer->renderHeader($o);
63
-        $out .= $this->renderer->renderChildren($o).PHP_EOL;
63
+        $out .= $this->renderer->renderChildren($o) . PHP_EOL;
64 64
 
65 65
         $indent = \str_repeat(' ', ($o->depth + 1) * $this->renderer->indent_width);
66 66
 
67 67
         if ($this->useJs) {
68
-            $out .= '<span data-kint-microtime-group="'.$r->group.'">';
68
+            $out .= '<span data-kint-microtime-group="' . $r->group . '">';
69 69
         }
70 70
 
71
-        $out .= $indent.$this->renderer->colorType('TIME:').' ';
72
-        $out .= $this->renderer->colorValue($r->getDateTime()->format('Y-m-d H:i:s.u')).PHP_EOL;
71
+        $out .= $indent . $this->renderer->colorType('TIME:') . ' ';
72
+        $out .= $this->renderer->colorValue($r->getDateTime()->format('Y-m-d H:i:s.u')) . PHP_EOL;
73 73
 
74 74
         if (null !== $r->lap) {
75
-            $out .= $indent.$this->renderer->colorType('SINCE LAST CALL:').' ';
75
+            $out .= $indent . $this->renderer->colorType('SINCE LAST CALL:') . ' ';
76 76
 
77 77
             $lap = \round($r->lap, 4);
78 78
 
79 79
             if ($this->useJs) {
80
-                $lap = '<span class="kint-microtime-lap">'.$lap.'</span>';
80
+                $lap = '<span class="kint-microtime-lap">' . $lap . '</span>';
81 81
             }
82 82
 
83
-            $out .= $this->renderer->colorValue($lap.'s').'.'.PHP_EOL;
83
+            $out .= $this->renderer->colorValue($lap . 's') . '.' . PHP_EOL;
84 84
         }
85 85
         if (null !== $r->total) {
86
-            $out .= $indent.$this->renderer->colorType('SINCE START:').' ';
87
-            $out .= $this->renderer->colorValue(\round($r->total, 4).'s').'.'.PHP_EOL;
86
+            $out .= $indent . $this->renderer->colorType('SINCE START:') . ' ';
87
+            $out .= $this->renderer->colorValue(\round($r->total, 4) . 's') . '.' . PHP_EOL;
88 88
         }
89 89
         if (null !== $r->avg) {
90
-            $out .= $indent.$this->renderer->colorType('AVERAGE DURATION:').' ';
90
+            $out .= $indent . $this->renderer->colorType('AVERAGE DURATION:') . ' ';
91 91
 
92 92
             $avg = \round($r->avg, 4);
93 93
 
94 94
             if ($this->useJs) {
95
-                $avg = '<span class="kint-microtime-avg">'.$avg.'</span>';
95
+                $avg = '<span class="kint-microtime-avg">' . $avg . '</span>';
96 96
             }
97 97
 
98
-            $out .= $this->renderer->colorValue($avg.'s').'.'.PHP_EOL;
98
+            $out .= $this->renderer->colorValue($avg . 's') . '.' . PHP_EOL;
99 99
         }
100 100
 
101 101
         $bytes = Utils::getHumanReadableBytes($r->mem);
102
-        $mem = $r->mem.' bytes ('.\round($bytes['value'], 3).' '.$bytes['unit'].')';
102
+        $mem = $r->mem . ' bytes (' . \round($bytes['value'], 3) . ' ' . $bytes['unit'] . ')';
103 103
         $bytes = Utils::getHumanReadableBytes($r->mem_real);
104
-        $mem .= ' (real '.\round($bytes['value'], 3).' '.$bytes['unit'].')';
104
+        $mem .= ' (real ' . \round($bytes['value'], 3) . ' ' . $bytes['unit'] . ')';
105 105
 
106
-        $out .= $indent.$this->renderer->colorType('MEMORY USAGE:').' ';
107
-        $out .= $this->renderer->colorValue($mem).'.'.PHP_EOL;
106
+        $out .= $indent . $this->renderer->colorType('MEMORY USAGE:') . ' ';
107
+        $out .= $this->renderer->colorValue($mem) . '.' . PHP_EOL;
108 108
 
109 109
         $bytes = Utils::getHumanReadableBytes($r->mem_peak);
110
-        $mem = $r->mem_peak.' bytes ('.\round($bytes['value'], 3).' '.$bytes['unit'].')';
110
+        $mem = $r->mem_peak . ' bytes (' . \round($bytes['value'], 3) . ' ' . $bytes['unit'] . ')';
111 111
         $bytes = Utils::getHumanReadableBytes($r->mem_peak_real);
112
-        $mem .= ' (real '.\round($bytes['value'], 3).' '.$bytes['unit'].')';
112
+        $mem .= ' (real ' . \round($bytes['value'], 3) . ' ' . $bytes['unit'] . ')';
113 113
 
114
-        $out .= $indent.$this->renderer->colorType('PEAK MEMORY USAGE:').' ';
115
-        $out .= $this->renderer->colorValue($mem).'.'.PHP_EOL;
114
+        $out .= $indent . $this->renderer->colorType('PEAK MEMORY USAGE:') . ' ';
115
+        $out .= $this->renderer->colorValue($mem) . '.' . PHP_EOL;
116 116
 
117 117
         if ($this->useJs) {
118 118
             $out .= '</span>';
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Renderer/Text/ArrayLimitPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
         $out = '';
35 35
 
36 36
         if (0 == $o->depth) {
37
-            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)).PHP_EOL;
37
+            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)) . PHP_EOL;
38 38
         }
39 39
 
40
-        $out .= $this->renderer->renderHeader($o).' '.$this->renderer->colorValue('ARRAY LIMIT').PHP_EOL;
40
+        $out .= $this->renderer->renderHeader($o) . ' ' . $this->renderer->colorValue('ARRAY LIMIT') . PHP_EOL;
41 41
 
42 42
         return $out;
43 43
     }
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Renderer/Text/BlacklistPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
         $out = '';
35 35
 
36 36
         if (0 == $o->depth) {
37
-            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)).PHP_EOL;
37
+            $out .= $this->renderer->colorTitle($this->renderer->renderTitle($o)) . PHP_EOL;
38 38
         }
39 39
 
40
-        $out .= $this->renderer->renderHeader($o).' '.$this->renderer->colorValue('BLACKLISTED').PHP_EOL;
40
+        $out .= $this->renderer->renderHeader($o) . ' ' . $this->renderer->colorValue('BLACKLISTED') . PHP_EOL;
41 41
 
42 42
         return $out;
43 43
     }
Please login to merge, or discard this patch.
brighty/system/ThirdParty/Kint/Renderer/Rich/Plugin.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
         $header .= '<span class="kint-popup-trigger" title="Open in new window">&boxbox;</span><nav></nav>';
54 54
 
55 55
         if (null !== ($s = $o->getModifiers())) {
56
-            $header .= '<var>'.$s.'</var> ';
56
+            $header .= '<var>' . $s . '</var> ';
57 57
         }
58 58
 
59 59
         if (null !== ($s = $o->getName())) {
60
-            $header .= '<dfn>'.$this->renderer->escape($s).'</dfn> ';
60
+            $header .= '<dfn>' . $this->renderer->escape($s) . '</dfn> ';
61 61
 
62 62
             if ($s = $o->getOperator()) {
63
-                $header .= $this->renderer->escape($s, 'ASCII').' ';
63
+                $header .= $this->renderer->escape($s, 'ASCII') . ' ';
64 64
             }
65 65
         }
66 66
 
@@ -68,22 +68,22 @@  discard block
 block discarded – undo
68 68
             $s = $this->renderer->escape($s);
69 69
 
70 70
             if ($o->reference) {
71
-                $s = '&amp;'.$s;
71
+                $s = '&amp;' . $s;
72 72
             }
73 73
 
74
-            $header .= '<var>'.$s.'</var> ';
74
+            $header .= '<var>' . $s . '</var> ';
75 75
         }
76 76
 
77 77
         if (null !== ($s = $o->getSize())) {
78
-            $header .= '('.$this->renderer->escape($s).') ';
78
+            $header .= '(' . $this->renderer->escape($s) . ') ';
79 79
         }
80 80
 
81 81
         $header .= $content;
82 82
 
83 83
         if (!empty($ap)) {
84
-            $header .= '<div class="access-path">'.$this->renderer->escape($ap).'</div>';
84
+            $header .= '<div class="access-path">' . $this->renderer->escape($ap) . '</div>';
85 85
         }
86 86
 
87
-        return $header.'</dt>';
87
+        return $header . '</dt>';
88 88
     }
89 89
 }
Please login to merge, or discard this patch.