1
0
mirror of synced 2024-12-14 07:06:04 +03:00

- fixed switch statement formating according to ZF CS

This commit is contained in:
lsmith 2006-12-29 21:30:37 +00:00
parent b4ac430dba
commit 239995d3c3
42 changed files with 1337 additions and 1342 deletions

View File

@ -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)) {

View File

@ -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);

View File

@ -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.');

View File

@ -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.');