Permalink
Browse files

Merge pull request #237 from arraecreative/3.3/develop

Fixing formatting inconsistencies
  • Loading branch information...
2 parents 751e283 + 6201090 commit 6e6619082b42611fbc1a3a47d1adb92d2c884c2b @kiall kiall committed Apr 6, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −6 classes/Kohana/Config.php
@@ -82,7 +82,7 @@ public function detach(Kohana_Config_Source $source)
*/
public function load($group)
{
- if( ! count($this->_sources))
+ if ( ! count($this->_sources))
{
throw new Kohana_Exception('No configuration sources attached');
}
@@ -100,10 +100,10 @@ public function load($group)
if (strpos($group, '.') !== FALSE)
{
// Split the config group and path
- list ($group, $path) = explode('.', $group, 2);
+ list($group, $path) = explode('.', $group, 2);
}
- if(isset($this->_groups[$group]))
+ if (isset($this->_groups[$group]))
{
if (isset($path))
{
@@ -151,7 +151,7 @@ public function copy($group)
// Load the configuration group
$config = $this->load($group);
- foreach($config->as_array() as $key => $value)
+ foreach ($config->as_array() as $key => $value)
{
$this->_write_config($group, $key, $value);
}
@@ -169,13 +169,12 @@ public function copy($group)
*/
public function _write_config($group, $key, $value)
{
- foreach($this->_sources as $source)
+ foreach ($this->_sources as $source)
{
if ( ! ($source instanceof Kohana_Config_Writer))
{
continue;
}
-
// Copy each value in the config
$source->write($group, $key, $value);

0 comments on commit 6e66190

Please sign in to comment.