apply code style rules
This commit is contained in:
parent
f097a58691
commit
0d4662edf5
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.php_cs.cache
|
@ -98,17 +98,17 @@ class SmartyCollector extends DataCollector implements Renderable
|
||||
$widget = $this->isHtmlVarDumperUsed()
|
||||
? "PhpDebugBar.Widgets.HtmlVariableListWidget"
|
||||
: "PhpDebugBar.Widgets.VariableListWidget";
|
||||
return array(
|
||||
"smarty" => array(
|
||||
return [
|
||||
"smarty" => [
|
||||
"icon" => "tags",
|
||||
"widget" => $widget,
|
||||
"map" => "smarty.vars",
|
||||
"default" => "{}"
|
||||
),
|
||||
"smarty:badge" => array(
|
||||
"default" => "{}",
|
||||
],
|
||||
"smarty:badge" => [
|
||||
"map" => "smarty.count",
|
||||
"default" => 0
|
||||
)
|
||||
);
|
||||
"default" => 0,
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -17,5 +17,7 @@ namespace D3\DebugBar\Modules\Core {
|
||||
|
||||
use OxidEsales\Eshop\Core\ShopControl;
|
||||
|
||||
class ShopControl_DebugBar_parent extends ShopControl{}
|
||||
class ShopControl_DebugBar_parent extends ShopControl
|
||||
{
|
||||
}
|
||||
}
|
@ -85,8 +85,8 @@ function debugVar($mVar, bool $blToFile = false): void
|
||||
$out = var_export($mVar, true);
|
||||
$f = fopen(Registry::getConfig()->getConfigParam('sCompileDir') . "/vardump.txt", "a");
|
||||
if (is_resource($f)) {
|
||||
fwrite( $f, $out );
|
||||
fclose( $f );
|
||||
fwrite($f, $out);
|
||||
fclose($f);
|
||||
}
|
||||
} else {
|
||||
if (!isAdmin()) {
|
||||
|
@ -37,7 +37,7 @@ $aModule = [
|
||||
'url' => 'https://www.oxidmodule.com/',
|
||||
'controllers' => [],
|
||||
'extend' => [
|
||||
ShopControl::class => ShopControl_DebugBar::class
|
||||
ShopControl::class => ShopControl_DebugBar::class,
|
||||
],
|
||||
'events' => [],
|
||||
'templates' => [],
|
||||
|
Loading…
x
Reference in New Issue
Block a user