mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Comply PSR
This commit is contained in:
parent
7b171ed3d8
commit
38f8aab27c
@ -103,17 +103,17 @@ class DebugExtension extends Twig_Extension
|
|||||||
$var = func_get_arg($i);
|
$var = func_get_arg($i);
|
||||||
$subcaption = null;
|
$subcaption = null;
|
||||||
|
|
||||||
if ( $var instanceof ComponentBase )
|
if ($var instanceof ComponentBase) {
|
||||||
$caption = static::COMPONENT_CAPTION;
|
$caption = static::COMPONENT_CAPTION;
|
||||||
elseif ( is_array($var) )
|
}
|
||||||
|
elseif (is_array($var)) {
|
||||||
$caption = static::ARRAY_CAPTION;
|
$caption = static::ARRAY_CAPTION;
|
||||||
else
|
}
|
||||||
{
|
else {
|
||||||
$caption = static::OBJECT_CAPTION;
|
$caption = static::OBJECT_CAPTION;
|
||||||
$subcaption = get_class($var);
|
$subcaption = get_class($var);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$result .= $this->dump($var, $caption, $subcaption);
|
$result .= $this->dump($var, $caption, $subcaption);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -184,8 +184,11 @@ class DebugExtension extends Twig_Extension
|
|||||||
$output[] = '<tr>';
|
$output[] = '<tr>';
|
||||||
$output[] = '<th colspan="3" colspan="100" style="'.$this->getHeaderCss().'">';
|
$output[] = '<th colspan="3" colspan="100" style="'.$this->getHeaderCss().'">';
|
||||||
$output[] = $caption;
|
$output[] = $caption;
|
||||||
if ($subcaption)
|
|
||||||
|
if ($subcaption) {
|
||||||
$output[] = '<div style="'.$this->getSubheaderCss().'">'.$subcaption.'</div>';
|
$output[] = '<div style="'.$this->getSubheaderCss().'">'.$subcaption.'</div>';
|
||||||
|
}
|
||||||
|
|
||||||
$output[] = '</td>';
|
$output[] = '</td>';
|
||||||
$output[] = '</tr>';
|
$output[] = '</tr>';
|
||||||
return implode(PHP_EOL, $output);
|
return implode(PHP_EOL, $output);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user