Browse Source

Fix code formatting

Daniel Rudolf 9 years ago
parent
commit
27d694697f
2 changed files with 5 additions and 5 deletions
  1. 3 3
      lib/AbstractPicoPlugin.php
  2. 2 2
      lib/Pico.php

+ 3 - 3
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()'
         );
     }
 

+ 2 - 2
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);