diff --git a/lib/AbstractPicoPlugin.php b/lib/AbstractPicoPlugin.php index 07905d1..09e8eb2 100644 --- a/lib/AbstractPicoPlugin.php +++ b/lib/AbstractPicoPlugin.php @@ -71,7 +71,7 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface { // plugins can be enabled/disabled using the config if ($eventName === 'onConfigLoaded') { - $pluginEnabled = $this->getConfig(get_called_class().'.enabled'); + $pluginEnabled = $this->getConfig(get_called_class() . '.enabled'); if ($pluginEnabled !== null) { $this->setEnabled($pluginEnabled); } @@ -137,8 +137,8 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface } 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()' ); } diff --git a/lib/Pico.php b/lib/Pico.php index 2b1efbc..5c11e2e 100644 --- a/lib/Pico.php +++ b/lib/Pico.php @@ -380,7 +380,7 @@ class Pico return $this->plugins[$pluginName]; } - throw new RuntimeException("Missing plugin '".$pluginName."'"); + throw new RuntimeException("Missing plugin '" . $pluginName . "'"); } /** @@ -570,7 +570,7 @@ class Pico if (!file_exists($this->getConfig('content_dir') . $errorFile)) { $errorFile = ($errorFileDir === '.') ? '404' . $this->getConfig('content_ext') : $errorFile; - throw new RuntimeException('Required "' . $errorFile .'" not found'); + throw new RuntimeException('Required "' . $errorFile . '" not found'); } return $this->loadFileContent($this->getConfig('content_dir') . $errorFile);