Fix code formatting

This commit is contained in:
Daniel Rudolf 2015-10-04 21:34:37 +02:00
parent 006afa5774
commit 27d694697f
2 changed files with 5 additions and 5 deletions

View File

@ -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.'() ' 'Call to undefined method ' . get_class($this->getPico()) . '::' . $methodName . '() '
. 'through '.get_called_class().'::__call()' . 'through ' . get_called_class() . '::__call()'
); );
} }

View File

@ -380,7 +380,7 @@ class Pico
return $this->plugins[$pluginName]; 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)) { if (!file_exists($this->getConfig('content_dir') . $errorFile)) {
$errorFile = ($errorFileDir === '.') ? '404' . $this->getConfig('content_ext') : $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); return $this->loadFileContent($this->getConfig('content_dir') . $errorFile);