From c1caf0ba20d7886ea55b177a4175c1a8066a3f2f Mon Sep 17 00:00:00 2001 From: AD7six Date: Mon, 24 Mar 2014 23:28:04 +0000 Subject: [PATCH] phpcs fixes --- src/Core/InstanceConfigTrait.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Core/InstanceConfigTrait.php b/src/Core/InstanceConfigTrait.php index 72eedfb23c4..2a9c377e367 100644 --- a/src/Core/InstanceConfigTrait.php +++ b/src/Core/InstanceConfigTrait.php @@ -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; @@ -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; @@ -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)); }