@@ -55,8 +55,7 @@ discard block |
||
| 55 | 55 | * @class QueryBuilder |
| 56 | 56 | * @package Platine\Database |
| 57 | 57 | */ |
| 58 | -class QueryBuilder |
|
| 59 | -{ |
|
| 58 | +class QueryBuilder { |
|
| 60 | 59 | /** |
| 61 | 60 | * The Schema instance |
| 62 | 61 | * @var Schema |
@@ -67,8 +66,7 @@ discard block |
||
| 67 | 66 | * Class constructor |
| 68 | 67 | * @param Connection $connection |
| 69 | 68 | */ |
| 70 | - public function __construct(protected Connection $connection) |
|
| 71 | - { |
|
| 69 | + public function __construct(protected Connection $connection) { |
|
| 72 | 70 | $this->schema = $this->connection->getSchema(); |
| 73 | 71 | } |
| 74 | 72 | |
@@ -50,8 +50,7 @@ discard block |
||
| 50 | 50 | * @class AlterTable |
| 51 | 51 | * @package Platine\Database\Schema |
| 52 | 52 | */ |
| 53 | -class AlterTable |
|
| 54 | -{ |
|
| 53 | +class AlterTable { |
|
| 55 | 54 | /** |
| 56 | 55 | * The list of commands |
| 57 | 56 | * @var array<int, array<string, mixed>> |
@@ -62,8 +61,7 @@ discard block |
||
| 62 | 61 | * Class constructor |
| 63 | 62 | * @param string $table The name of table |
| 64 | 63 | */ |
| 65 | - public function __construct(protected string $table) |
|
| 66 | - { |
|
| 64 | + public function __construct(protected string $table) { |
|
| 67 | 65 | } |
| 68 | 66 | |
| 69 | 67 | /** |
@@ -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 | /** |