From 752248246ec140b45e1ceba4c38978121fa006c6 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sat, 18 Jan 2025 12:33:58 +0700 Subject: [PATCH] rearrange methods --- src/Column/ColumnDefinitionBuilder.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Column/ColumnDefinitionBuilder.php b/src/Column/ColumnDefinitionBuilder.php index ac2cd3f..bd5853e 100644 --- a/src/Column/ColumnDefinitionBuilder.php +++ b/src/Column/ColumnDefinitionBuilder.php @@ -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)) { @@ -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); + } }