1
0
mirror of synced 2025-02-01 04:51:45 +03:00

- CS fixes

This commit is contained in:
lsmith 2007-01-02 15:24:43 +00:00
parent 9f6a652a62
commit dcdc049588
8 changed files with 2662 additions and 2658 deletions

View File

@ -108,8 +108,9 @@ class Doctrine_DataDict_Firebird extends Doctrine_DataDict
$field['field_sub_type'] = !empty($field['field_sub_type'])
? strtolower($field['field_sub_type']) : null;
if( ! isset($field['name']))
if ( ! isset($field['name'])) {
$field['name'] = '';
}
switch ($dbType) {
case 'smallint':

View File

@ -236,8 +236,9 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict
$type = array();
$unsigned = $fixed = null;
if( ! isset($field['name']))
if ( ! isset($field['name'])) {
$field['name'] = '';
}
switch ($dbType) {
case 'tinyint':

View File

@ -104,8 +104,9 @@ class Doctrine_DataDict_Oracle extends Doctrine_DataDict
$length = $field['length'];
}
if( ! isset($field['name']))
if ( ! isset($field['name'])) {
$field['name'] = '';
}
switch ($db_type) {
case 'integer':

View File

@ -435,8 +435,9 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict
$type = array();
$unsigned = $fixed = null;
if( ! isset($field['name']))
if ( ! isset($field['name'])) {
$field['name'] = '';
}
$db_type = strtolower($field['type']);

View File

@ -128,8 +128,9 @@ class Doctrine_DataDict_Sqlite extends Doctrine_DataDict
$fixed = null;
$type = array();
if( ! isset($field['name']))
if ( ! isset($field['name'])) {
$field['name'] = '';
}
switch ($dbType) {
case 'boolean':

View File

@ -184,8 +184,7 @@ class Doctrine_Validator
{
if ($column[0] == "timestamp") {
return true;
}
else if ($column[0] == "array" || $column[0] == "object") {
} else if ($column[0] == "array" || $column[0] == "object") {
$length = strlen(serialize($value));
} else {
$length = strlen($value);