@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function read($sConfigFile) |
| 25 | 25 | { |
| 26 | 26 | $sExt = pathinfo($sConfigFile, PATHINFO_EXTENSION); |
| 27 | - switch($sExt) |
|
| 27 | + switch ($sExt) |
|
| 28 | 28 | { |
| 29 | 29 | case 'php': |
| 30 | 30 | $aConfigOptions = Php::read($sConfigFile); |
@@ -26,13 +26,13 @@ |
||
| 26 | 26 | public static function read($sConfigFile) |
| 27 | 27 | { |
| 28 | 28 | $sConfigFile = realpath($sConfigFile); |
| 29 | - if(!is_readable($sConfigFile)) |
|
| 29 | + if (!is_readable($sConfigFile)) |
|
| 30 | 30 | { |
| 31 | 31 | throw new \Jaxon\Config\Exception\File(jaxon_trans('config.errors.file.access', array('path' => $sConfigFile))); |
| 32 | 32 | } |
| 33 | 33 | $sFileContent = file_get_contents($sConfigFile); |
| 34 | 34 | $aConfigOptions = json_decode($sFileContent, true); |
| 35 | - if(!is_array($aConfigOptions)) |
|
| 35 | + if (!is_array($aConfigOptions)) |
|
| 36 | 36 | { |
| 37 | 37 | throw new \Jaxon\Config\Exception\File(jaxon_trans('config.errors.file.content', array('path' => $sConfigFile))); |
| 38 | 38 | } |