Skip to content

Commit e042912

Browse files
committed
#1399 - Fix code style with minor refactor
1 parent a3b4300 commit e042912

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/Phalcon/Mvc/Model/Migration.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -930,9 +930,8 @@ public function getConnection()
930930
*/
931931
public static function columnHasSize($type)
932932
{
933-
$adapter = self::$databaseConfig->path('adapter');
934-
if ($adapter == 'Postgresql' &&
935-
in_array($type, [Column::TYPE_BOOLEAN, Column::TYPE_INTEGER, Column::TYPE_BIGINTEGER, Column::TYPE_DOUBLE])) {
933+
$postgresTypes = [Column::TYPE_BOOLEAN, Column::TYPE_INTEGER, Column::TYPE_BIGINTEGER, Column::TYPE_DOUBLE];
934+
if (self::$databaseConfig->path('adapter') == 'Postgresql' && in_array($type, $postgresTypes)) {
936935
return false;
937936
}
938937

0 commit comments

Comments
 (0)