|
@@ 208-216 (lines=9) @@
|
| 205 |
|
{ |
| 206 |
|
$indent = $this->style->indent($level); |
| 207 |
|
|
| 208 |
|
if (!$hideHeader) { |
| 209 |
|
$count = count($array); |
| 210 |
|
|
| 211 |
|
//Array size and scope |
| 212 |
|
$output = $this->style->style("array({$count})", "type", "array") . "\n"; |
| 213 |
|
$output .= $indent . $this->style->style("[", "syntax", "[") . "\n"; |
| 214 |
|
} else { |
| 215 |
|
$output = ''; |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
foreach ($array as $key => $value) { |
| 219 |
|
if (!is_numeric($key)) { |
|
@@ 249-256 (lines=8) @@
|
| 246 |
|
{ |
| 247 |
|
$indent = $this->style->indent($level); |
| 248 |
|
|
| 249 |
|
if (!$hideHeader) { |
| 250 |
|
$type = ($class ?: get_class($object)) . " object "; |
| 251 |
|
|
| 252 |
|
$header = $this->style->style($type, "type", "object") . "\n"; |
| 253 |
|
$header .= $indent . $this->style->style("(", "syntax", "(") . "\n"; |
| 254 |
|
} else { |
| 255 |
|
$header = ''; |
| 256 |
|
} |
| 257 |
|
|
| 258 |
|
//Let's use method specifically created for dumping |
| 259 |
|
if (method_exists($object, '__debugInfo')) { |