Skip to content

Commit

Permalink
MDL-29321 syntax - fix switch() statement
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Sep 18, 2011
1 parent b1c1eea commit 37b5d8b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/xmldb/xmldb_field.php
Original file line number Diff line number Diff line change
Expand Up @@ -813,32 +813,32 @@ function validateDefinition(xmldb_table $xmldb_table=null) {

switch ($this->getType()) {
case XMLDB_TYPE_INTEGER:
break;
break;

case XMLDB_TYPE_NUMBER:
break;
break;

case XMLDB_TYPE_FLOAT:
break;
break;

case XMLDB_TYPE_CHAR:
if ($this->getLength() > self::CHAR_MAX_LENGTH) {
return 'Invalid field definition in table {'.$xmldb_table->getName(). '}: XMLDB_TYPE_CHAR field "'.$this->getName().'" is too long.'
.' Limit is '.self::CHAR_MAX_LENGTH.' chars.';
}
break;
break;

case XMLDB_TYPE_TEXT:
break;
break;

case XMLDB_TYPE_BINARY:
break;
break;

case XMLDB_TYPE_DATETIME:
break;
break;

case XMLDB_TYPE_TIMESTAMP:
break;
break;
}

return null;
Expand Down

0 comments on commit 37b5d8b

Please sign in to comment.