- fixed switch statement formating according to ZF CS
This commit is contained in:
parent
b4ac430dba
commit
239995d3c3
@ -375,7 +375,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
|
||||
switch ($type) {
|
||||
case "array":
|
||||
case "object":
|
||||
|
||||
if ($tmp[$name] !== self::$null) {
|
||||
if (is_string($tmp[$name])) {
|
||||
$value = unserialize($tmp[$name]);
|
||||
@ -389,7 +388,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
|
||||
}
|
||||
break;
|
||||
case "gzip":
|
||||
|
||||
if ($tmp[$name] !== self::$null) {
|
||||
$value = gzuncompress($tmp[$name]);
|
||||
|
||||
@ -475,9 +473,9 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
|
||||
$this->_data = array_merge($this->_data, $this->_id);
|
||||
|
||||
foreach ($this->_data as $k => $v) {
|
||||
if ($v instanceof Doctrine_Record)
|
||||
if ($v instanceof Doctrine_Record) {
|
||||
unset($vars['_data'][$k]);
|
||||
elseif ($v === self::$null) {
|
||||
} elseif ($v === self::$null) {
|
||||
unset($vars['_data'][$k]);
|
||||
} else {
|
||||
switch ($this->_table->getTypeOf($k)) {
|
||||
|
@ -56,7 +56,6 @@ class Doctrine_Transaction_Mssql extends Doctrine_Transaction
|
||||
case 'REPEATABLE READ':
|
||||
case 'SERIALIZABLE':
|
||||
case 'SNAPSHOT':
|
||||
|
||||
break;
|
||||
default:
|
||||
throw new Doctrine_Transaction_Exception('isolation level is not supported: ' . $isolation);
|
||||
|
@ -91,7 +91,6 @@ class Doctrine_Transaction_Mysql extends Doctrine_Transaction
|
||||
case 'READ COMMITTED':
|
||||
case 'REPEATABLE READ':
|
||||
case 'SERIALIZABLE':
|
||||
|
||||
break;
|
||||
default:
|
||||
throw new Doctrine_Transaction_Exception('Isolation level ' . $isolation . ' is not supported.');
|
||||
|
@ -91,7 +91,6 @@ class Doctrine_Transaction_Pgsql extends Doctrine_Transaction
|
||||
case 'READ COMMITTED':
|
||||
case 'REPEATABLE READ':
|
||||
case 'SERIALIZABLE':
|
||||
|
||||
break;
|
||||
default:
|
||||
throw new Doctrine_Transaction_Exception('Isolation level '.$isolation.' is not supported.');
|
||||
|
Loading…
Reference in New Issue
Block a user