Commit dcdc0495 authored by lsmith's avatar lsmith

- CS fixes

parent 9f6a652a
......@@ -464,7 +464,7 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator
*/
public function get($key)
{
if($key === null) {
if ($key === null) {
$record = $this->table->create();
if (isset($this->reference_field)) {
......
......@@ -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':
......
......@@ -122,7 +122,7 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict
// todo: unsigned handling seems to be missing
$unsigned = $fixed = null;
if( ! isset($field['name']))
if ( ! isset($field['name']))
$field['name'] = '';
switch ($db_type) {
......@@ -131,7 +131,7 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict
break;
case 'int':
$type[0] = 'integer';
if($length == 1) {
if ($length == 1) {
$type[] = 'boolean';
}
break;
......
......@@ -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':
......
......@@ -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':
......
......@@ -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']);
......
......@@ -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':
......
......@@ -182,10 +182,9 @@ class Doctrine_Validator
*/
private function validateLength($column, $key, $value)
{
if($column[0] == "timestamp") {
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);
......
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