@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | public function getAccessPath() |
36 | 36 | { |
37 | 37 | if (null !== $this->access_path) { |
38 | - return parent::getAccessPath().'('.$this->getParams().')'; |
|
38 | + return parent::getAccessPath() . '(' . $this->getParams() . ')'; |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | $ref = $p->reference ? '&' : ''; |
58 | 58 | |
59 | 59 | if ($type) { |
60 | - $out[] = $type.' '.$ref.$p->getName(); |
|
60 | + $out[] = $type . ' ' . $ref . $p->getName(); |
|
61 | 61 | } else { |
62 | - $out[] = $ref.$p->getName(); |
|
62 | + $out[] = $ref . $p->getName(); |
|
63 | 63 | } |
64 | 64 | } |
65 | 65 |
@@ -123,21 +123,21 @@ discard block |
||
123 | 123 | $name = \strtolower($this->name); |
124 | 124 | |
125 | 125 | if ('__construct' === $name) { |
126 | - $this->access_path = 'new \\'.$parent->getType(); |
|
126 | + $this->access_path = 'new \\' . $parent->getType(); |
|
127 | 127 | } elseif ('__invoke' === $name) { |
128 | 128 | $this->access_path = $parent->access_path; |
129 | 129 | } elseif ('__clone' === $name) { |
130 | - $this->access_path = 'clone '.$parent->access_path; |
|
130 | + $this->access_path = 'clone ' . $parent->access_path; |
|
131 | 131 | $this->showparams = false; |
132 | 132 | } elseif ('__tostring' === $name) { |
133 | - $this->access_path = '(string) '.$parent->access_path; |
|
133 | + $this->access_path = '(string) ' . $parent->access_path; |
|
134 | 134 | $this->showparams = false; |
135 | 135 | } elseif (isset($magic[$name])) { |
136 | 136 | $this->access_path = null; |
137 | 137 | } elseif ($this->static) { |
138 | - $this->access_path = '\\'.$this->owner_class.'::'.$this->name; |
|
138 | + $this->access_path = '\\' . $this->owner_class . '::' . $this->name; |
|
139 | 139 | } else { |
140 | - $this->access_path = $parent->access_path.'->'.$this->name; |
|
140 | + $this->access_path = $parent->access_path . '->' . $this->name; |
|
141 | 141 | } |
142 | 142 | } |
143 | 143 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | break; |
163 | 163 | } |
164 | 164 | |
165 | - $out .= $line.' '; |
|
165 | + $out .= $line . ' '; |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | if (\strlen($out)) { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | foreach ($mods as $word) { |
185 | 185 | if (null !== $word) { |
186 | - $out .= $word.' '; |
|
186 | + $out .= $word . ' '; |
|
187 | 187 | } |
188 | 188 | } |
189 | 189 | |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | { |
197 | 197 | if (null !== $this->access_path) { |
198 | 198 | if ($this->showparams) { |
199 | - return parent::getAccessPath().'('.$this->getParams().')'; |
|
199 | + return parent::getAccessPath() . '(' . $this->getParams() . ')'; |
|
200 | 200 | } |
201 | 201 | |
202 | 202 | return parent::getAccessPath(); |
@@ -219,12 +219,12 @@ discard block |
||
219 | 219 | |
220 | 220 | $default = $p->getDefault(); |
221 | 221 | if ($default) { |
222 | - $default = ' = '.$default; |
|
222 | + $default = ' = ' . $default; |
|
223 | 223 | } |
224 | 224 | |
225 | 225 | $ref = $p->reference ? '&' : ''; |
226 | 226 | |
227 | - $out[] = $type.$ref.$p->getName().$default; |
|
227 | + $out[] = $type . $ref . $p->getName() . $default; |
|
228 | 228 | } |
229 | 229 | |
230 | 230 | return $this->paramcache = \implode(', ', $out); |
@@ -248,6 +248,6 @@ discard block |
||
248 | 248 | $funcname = \substr($funcname, 2); |
249 | 249 | } |
250 | 250 | |
251 | - return 'https://secure.php.net/'.$class.'.'.$funcname; |
|
251 | + return 'https://secure.php.net/' . $class . '.' . $funcname; |
|
252 | 252 | } |
253 | 253 | } |
@@ -66,6 +66,6 @@ |
||
66 | 66 | |
67 | 67 | public function getDateTime() |
68 | 68 | { |
69 | - return DateTime::createFromFormat('U u', $this->seconds.' '.\str_pad($this->microseconds, 6, '0', STR_PAD_LEFT)); |
|
69 | + return DateTime::createFromFormat('U u', $this->seconds . ' ' . \str_pad($this->microseconds, 6, '0', STR_PAD_LEFT)); |
|
70 | 70 | } |
71 | 71 | } |
@@ -138,11 +138,11 @@ discard block |
||
138 | 138 | $this->flags[] = ($this->perms & 01000) ? 'S' : '-'; |
139 | 139 | } |
140 | 140 | |
141 | - $this->contents = \implode($this->flags).' '.$this->owner.' '.$this->group; |
|
142 | - $this->contents .= ' '.$this->getSize().' '.$this->getMTime().' '; |
|
141 | + $this->contents = \implode($this->flags) . ' ' . $this->owner . ' ' . $this->group; |
|
142 | + $this->contents .= ' ' . $this->getSize() . ' ' . $this->getMTime() . ' '; |
|
143 | 143 | |
144 | 144 | if ($this->is_link && $this->linktarget) { |
145 | - $this->contents .= $this->path.' -> '.$this->linktarget; |
|
145 | + $this->contents .= $this->path . ' -> ' . $this->linktarget; |
|
146 | 146 | } elseif (null !== $this->realpath && \strlen($this->realpath) < \strlen($this->path)) { |
147 | 147 | $this->contents .= $this->realpath; |
148 | 148 | } else { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | |
153 | 153 | public function getLabel() |
154 | 154 | { |
155 | - return $this->typename.' ('.$this->getSize().')'; |
|
155 | + return $this->typename . ' (' . $this->getSize() . ')'; |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | public function getSize() |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | if ($this->size) { |
161 | 161 | $size = Utils::getHumanReadableBytes($this->size); |
162 | 162 | |
163 | - return \round($size['value'], 2).$size['unit']; |
|
163 | + return \round($size['value'], 2) . $size['unit']; |
|
164 | 164 | } |
165 | 165 | } |
166 | 166 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | public function getLabel() |
49 | 49 | { |
50 | 50 | if (\is_array($this->contents) && \count($this->contents) > 1) { |
51 | - return $this->label.' ('.\count($this->contents).')'; |
|
51 | + return $this->label . ' (' . \count($this->contents) . ')'; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | return $this->label; |
@@ -221,7 +221,7 @@ |
||
221 | 221 | $hex_alpha = \sprintf('%02x%02x%02x%02x', $this->r, $this->g, $this->b, \round($this->a * 0xFF)); |
222 | 222 | |
223 | 223 | return \array_search($hex, self::$color_map, true) ?: \array_search($hex_alpha, self::$color_map, true); |
224 | - case self::COLOR_HEX_3: |
|
224 | + case self::COLOR_HEX_3: |
|
225 | 225 | if (0 === $this->r % 0x11 && 0 === $this->g % 0x11 && 0 === $this->b % 0x11) { |
226 | 226 | return \sprintf( |
227 | 227 | '#%1X%1X%1X', |
@@ -89,7 +89,7 @@ |
||
89 | 89 | |
90 | 90 | public function getName() |
91 | 91 | { |
92 | - return '$'.$this->name; |
|
92 | + return '$' . $this->name; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | public function getDefault() |
@@ -97,7 +97,7 @@ |
||
97 | 97 | |
98 | 98 | if ($this->trace['object']) { |
99 | 99 | $callee = new Representation('object'); |
100 | - $callee->label = 'Callee object ['.$this->trace['object']->classname.']'; |
|
100 | + $callee->label = 'Callee object [' . $this->trace['object']->classname . ']'; |
|
101 | 101 | $callee->contents[] = $this->trace['object']; |
102 | 102 | $this->addRepresentation($callee); |
103 | 103 | } |
@@ -42,7 +42,7 @@ |
||
42 | 42 | public function getValueShort() |
43 | 43 | { |
44 | 44 | if ($this->is_string_value && ($rep = $this->value) && 'contents' === $rep->getName() && 'string' === \gettype($rep->contents)) { |
45 | - return '"'.$rep->contents.'"'; |
|
45 | + return '"' . $rep->contents . '"'; |
|
46 | 46 | } |
47 | 47 | } |
48 | 48 | } |