Skip to content
Permalink
Browse files

Manually correct remaining casts.

  • Loading branch information...
dereuromark committed Sep 10, 2014
1 parent 04ef392 commit e3dc51bb685b6f3c9623d5fae7a4441f6b85d729
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/Cake/Model/Datasource/Database/Mysql.php
  2. +2 −2 lib/Cake/Model/Datasource/Database/Postgres.php
@@ -493,7 +493,7 @@ public function index($model) {
if ($idx->Index_type === 'FULLTEXT') {
$index[$idx->Key_name]['type'] = strtolower($idx->Index_type);
} else {
$index[$idx->Key_name]['unique'] = intval($idx->Non_unique == 0);
$index[$idx->Key_name]['unique'] = (int)($idx->Non_unique == 0);
}
} else {
if (!empty($index[$idx->Key_name]['column']) && !is_array($index[$idx->Key_name]['column'])) {
@@ -219,10 +219,10 @@ public function describe($model) {
} elseif ($c->type === 'uuid') {
$length = 36;
} else {
$length = intval($c->oct_length);
$length = (int)$c->oct_length;
}
} elseif (!empty($c->char_length)) {
$length = intval($c->char_length);
$length = (int)$c->char_length;
} else {
$length = $this->length($c->type);
}

0 comments on commit e3dc51b

Please sign in to comment.
You can’t perform that action at this time.