Skip to content

Commit

Permalink
rearrange methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Jan 18, 2025
1 parent 58dfcbc commit 7522482
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Column/ColumnDefinitionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ public function build(ColumnInterface $column): string
. $this->buildExtra($column);
}

protected function isAllowSize(string $dbType): bool
{
return in_array(strtolower(preg_replace('/\([^)]+\)/', '', $dbType)), self::TYPES_WITH_SIZE, true);
}

protected function buildOnDelete(string $onDelete): string
{
return match ($onDelete = strtoupper($onDelete)) {
Expand Down Expand Up @@ -110,4 +105,9 @@ protected function getDefaultUuidExpression(): string
{
return 'sys_guid()';
}

protected function isAllowSize(string $dbType): bool
{
return in_array(strtolower(preg_replace('/\([^)]+\)/', '', $dbType)), self::TYPES_WITH_SIZE, true);
}
}

0 comments on commit 7522482

Please sign in to comment.