|
@@ -71,7 +71,7 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface
|
|
{
|
|
{
|
|
// plugins can be enabled/disabled using the config
|
|
// plugins can be enabled/disabled using the config
|
|
if ($eventName === 'onConfigLoaded') {
|
|
if ($eventName === 'onConfigLoaded') {
|
|
- $pluginEnabled = $this->getConfig(get_called_class().'.enabled');
|
|
|
|
|
|
+ $pluginEnabled = $this->getConfig(get_called_class() . '.enabled');
|
|
if ($pluginEnabled !== null) {
|
|
if ($pluginEnabled !== null) {
|
|
$this->setEnabled($pluginEnabled);
|
|
$this->setEnabled($pluginEnabled);
|
|
}
|
|
}
|
|
@@ -137,8 +137,8 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface
|
|
}
|
|
}
|
|
|
|
|
|
throw new BadMethodCallException(
|
|
throw new BadMethodCallException(
|
|
- 'Call to undefined method '.get_class($this->getPico()).'::'.$methodName.'() '
|
|
|
|
- . 'through '.get_called_class().'::__call()'
|
|
|
|
|
|
+ 'Call to undefined method ' . get_class($this->getPico()) . '::' . $methodName . '() '
|
|
|
|
+ . 'through ' . get_called_class() . '::__call()'
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|