@@ -50,8 +50,7 @@ discard block |
||
| 50 | 50 | * @class BaseColumn |
| 51 | 51 | * @package Platine\Database\Schema |
| 52 | 52 | */ |
| 53 | -class BaseColumn |
|
| 54 | -{ |
|
| 53 | +class BaseColumn { |
|
| 55 | 54 | /** |
| 56 | 55 | * The column properties |
| 57 | 56 | * @var array<string, mixed> |
@@ -63,8 +62,7 @@ discard block |
||
| 63 | 62 | * @param string $name The name of the column |
| 64 | 63 | * @param string|null $type The type of column |
| 65 | 64 | */ |
| 66 | - public function __construct(protected string $name, protected ?string $type = null) |
|
| 67 | - { |
|
| 65 | + public function __construct(protected string $name, protected ?string $type = null) { |
|
| 68 | 66 | } |
| 69 | 67 | |
| 70 | 68 | /** |
@@ -50,8 +50,7 @@ discard block |
||
| 50 | 50 | * @class CreateTable |
| 51 | 51 | * @package Platine\Database\Schema |
| 52 | 52 | */ |
| 53 | -class CreateTable |
|
| 54 | -{ |
|
| 53 | +class CreateTable { |
|
| 55 | 54 | /** |
| 56 | 55 | * The list of CreateColumn |
| 57 | 56 | * @var array<string, CreateColumn> |
@@ -98,8 +97,7 @@ discard block |
||
| 98 | 97 | * Class constructor |
| 99 | 98 | * @param string $table The name of the table |
| 100 | 99 | */ |
| 101 | - public function __construct(protected string $table) |
|
| 102 | - { |
|
| 100 | + public function __construct(protected string $table) { |
|
| 103 | 101 | } |
| 104 | 102 | |
| 105 | 103 | /** |
@@ -50,8 +50,7 @@ |
||
| 50 | 50 | * @class CreateColumn |
| 51 | 51 | * @package Platine\Database\Schema |
| 52 | 52 | */ |
| 53 | -class CreateColumn extends BaseColumn |
|
| 54 | -{ |
|
| 53 | +class CreateColumn extends BaseColumn { |
|
| 55 | 54 | /** |
| 56 | 55 | * The associated table instance |
| 57 | 56 | * @var CreateTable |
@@ -50,8 +50,7 @@ discard block |
||
| 50 | 50 | * @class ForeignKey |
| 51 | 51 | * @package Platine\Database\Schema |
| 52 | 52 | */ |
| 53 | -class ForeignKey |
|
| 54 | -{ |
|
| 53 | +class ForeignKey { |
|
| 55 | 54 | /** |
| 56 | 55 | * The referenced table |
| 57 | 56 | * @var string |
@@ -74,8 +73,7 @@ discard block |
||
| 74 | 73 | * Class constructor |
| 75 | 74 | * @param array<int, string> $columns The base table columns |
| 76 | 75 | */ |
| 77 | - public function __construct(protected array $columns) |
|
| 78 | - { |
|
| 76 | + public function __construct(protected array $columns) { |
|
| 79 | 77 | } |
| 80 | 78 | |
| 81 | 79 | /** |