Commit 239995d3 authored by lsmith's avatar lsmith

- fixed switch statement formating according to ZF CS

parent b4ac430d
...@@ -375,7 +375,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite ...@@ -375,7 +375,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
switch ($type) { switch ($type) {
case "array": case "array":
case "object": case "object":
if ($tmp[$name] !== self::$null) { if ($tmp[$name] !== self::$null) {
if (is_string($tmp[$name])) { if (is_string($tmp[$name])) {
$value = unserialize($tmp[$name]); $value = unserialize($tmp[$name]);
...@@ -389,7 +388,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite ...@@ -389,7 +388,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
} }
break; break;
case "gzip": case "gzip":
if ($tmp[$name] !== self::$null) { if ($tmp[$name] !== self::$null) {
$value = gzuncompress($tmp[$name]); $value = gzuncompress($tmp[$name]);
...@@ -475,9 +473,9 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite ...@@ -475,9 +473,9 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
$this->_data = array_merge($this->_data, $this->_id); $this->_data = array_merge($this->_data, $this->_id);
foreach ($this->_data as $k => $v) { foreach ($this->_data as $k => $v) {
if ($v instanceof Doctrine_Record) if ($v instanceof Doctrine_Record) {
unset($vars['_data'][$k]); unset($vars['_data'][$k]);
elseif ($v === self::$null) { } elseif ($v === self::$null) {
unset($vars['_data'][$k]); unset($vars['_data'][$k]);
} else { } else {
switch ($this->_table->getTypeOf($k)) { switch ($this->_table->getTypeOf($k)) {
......
...@@ -56,7 +56,6 @@ class Doctrine_Transaction_Mssql extends Doctrine_Transaction ...@@ -56,7 +56,6 @@ class Doctrine_Transaction_Mssql extends Doctrine_Transaction
case 'REPEATABLE READ': case 'REPEATABLE READ':
case 'SERIALIZABLE': case 'SERIALIZABLE':
case 'SNAPSHOT': case 'SNAPSHOT':
break; break;
default: default:
throw new Doctrine_Transaction_Exception('isolation level is not supported: ' . $isolation); throw new Doctrine_Transaction_Exception('isolation level is not supported: ' . $isolation);
......
...@@ -91,7 +91,6 @@ class Doctrine_Transaction_Mysql extends Doctrine_Transaction ...@@ -91,7 +91,6 @@ class Doctrine_Transaction_Mysql extends Doctrine_Transaction
case 'READ COMMITTED': case 'READ COMMITTED':
case 'REPEATABLE READ': case 'REPEATABLE READ':
case 'SERIALIZABLE': case 'SERIALIZABLE':
break; break;
default: default:
throw new Doctrine_Transaction_Exception('Isolation level ' . $isolation . ' is not supported.'); throw new Doctrine_Transaction_Exception('Isolation level ' . $isolation . ' is not supported.');
......
...@@ -91,7 +91,6 @@ class Doctrine_Transaction_Pgsql extends Doctrine_Transaction ...@@ -91,7 +91,6 @@ class Doctrine_Transaction_Pgsql extends Doctrine_Transaction
case 'READ COMMITTED': case 'READ COMMITTED':
case 'REPEATABLE READ': case 'REPEATABLE READ':
case 'SERIALIZABLE': case 'SERIALIZABLE':
break; break;
default: default:
throw new Doctrine_Transaction_Exception('Isolation level '.$isolation.' is not supported.'); throw new Doctrine_Transaction_Exception('Isolation level '.$isolation.' is not supported.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment