Skip to content

Commit

Permalink
phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AD7six committed Mar 24, 2014
1 parent 8164e02 commit c1caf0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Core/InstanceConfigTrait.php
Expand Up @@ -91,7 +91,7 @@ protected function _configRead($key) {

$return = $this->_config;

foreach(explode('.', $key) as $k) {
foreach (explode('.', $key) as $k) {
if (!is_array($return) || !isset($return[$k])) {
$return = null;
break;
Expand All @@ -107,14 +107,14 @@ protected function _configRead($key) {
/**
* Write a config variable
*
* @throws Error\Exception if attempting to clobber existing config
* @throws Cake\Error\Exception if attempting to clobber existing config
* @param string|array $key
* @param mixed|null $value
* @return void
*/
protected function _configWrite($key, $value = null) {
if (is_array($key)) {
foreach($key as $k => $val) {
foreach ($key as $k => $val) {
$this->_configWrite($k, $val);
}
return;
Expand All @@ -127,7 +127,7 @@ protected function _configWrite($key, $value = null) {

$update =& $this->_config;

foreach(explode('.', $key) as $k) {
foreach (explode('.', $key) as $k) {
if (!is_array($update)) {
throw new Error\Exception(sprintf('Cannot set %s value', $key));
}
Expand Down

0 comments on commit c1caf0b

Please sign in to comment.