@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | * @class AlterColumn |
51 | 51 | * @package Platine\Database\Schema |
52 | 52 | */ |
53 | -class AlterColumn extends BaseColumn |
|
54 | -{ |
|
53 | +class AlterColumn extends BaseColumn { |
|
55 | 54 | /** |
56 | 55 | * The alter table |
57 | 56 | * @var AlterTable |
@@ -64,8 +63,7 @@ discard block |
||
64 | 63 | * @param string $name |
65 | 64 | * @param string|null $type |
66 | 65 | */ |
67 | - public function __construct(AlterTable $table, string $name, ?string $type = null) |
|
68 | - { |
|
66 | + public function __construct(AlterTable $table, string $name, ?string $type = null) { |
|
69 | 67 | $this->table = $table; |
70 | 68 | parent::__construct($name, $type); |
71 | 69 | } |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class PostgreSQL |
55 | 55 | * @package Platine\Database\Driver |
56 | 56 | */ |
57 | -class PostgreSQL extends Driver |
|
58 | -{ |
|
57 | +class PostgreSQL extends Driver { |
|
59 | 58 | /** |
60 | 59 | * @inheritDoc |
61 | 60 | */ |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @class MySQL |
53 | 53 | * @package Platine\Database\Driver |
54 | 54 | */ |
55 | -class MySQL extends Driver |
|
56 | -{ |
|
55 | +class MySQL extends Driver { |
|
57 | 56 | /** |
58 | 57 | * @inheritdoc |
59 | 58 | * @var string |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class Oracle |
56 | 56 | * @package Platine\Database\Driver |
57 | 57 | */ |
58 | -class Oracle extends Driver |
|
59 | -{ |
|
58 | +class Oracle extends Driver { |
|
60 | 59 | /** |
61 | 60 | * @inheritDoc |
62 | 61 | */ |
@@ -211,7 +211,7 @@ |
||
211 | 211 | /** |
212 | 212 | * @inheritDoc |
213 | 213 | */ |
214 | - protected function quoteIdentifier(string|Expression $value): string |
|
214 | + protected function quoteIdentifier(string | Expression $value): string |
|
215 | 215 | { |
216 | 216 | if ($value instanceof Expression) { |
217 | 217 | return $this->getExpressions($value->getExpressions()); |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class SQLite |
55 | 55 | * @package Platine\Database\Driver |
56 | 56 | */ |
57 | -class SQLite extends Driver |
|
58 | -{ |
|
57 | +class SQLite extends Driver { |
|
59 | 58 | /** |
60 | 59 | * @inheritdoc |
61 | 60 | * @var string |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class SQLServer |
56 | 56 | * @package Platine\Database\Driver |
57 | 57 | */ |
58 | -class SQLServer extends Driver |
|
59 | -{ |
|
58 | +class SQLServer extends Driver { |
|
60 | 59 | /** |
61 | 60 | * @inheritdoc |
62 | 61 | * @var string |
@@ -123,7 +123,7 @@ |
||
123 | 123 | * @param string|array<string> $tables Table name or an array of tables |
124 | 124 | * @return QueryCommand |
125 | 125 | */ |
126 | - public function from(string|array $tables): QueryCommand |
|
126 | + public function from(string | array $tables): QueryCommand |
|
127 | 127 | { |
128 | 128 | return new QueryCommand($this->connection, $tables); |
129 | 129 | } |
@@ -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 |
@@ -78,7 +78,7 @@ |
||
78 | 78 | is_array($config['connections']) && |
79 | 79 | count($config['connections']) > 0 |
80 | 80 | ) { |
81 | - /** @var array<string, array<string, mixed>> $connections */ |
|
81 | + /** @var array<string, array<string, mixed>> $connections */ |
|
82 | 82 | $connections = $config['connections']; |
83 | 83 | |
84 | 84 | foreach ($connections as $name => $connection) { |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | * @class Pool |
54 | 54 | * @package Platine\Database |
55 | 55 | */ |
56 | -class Pool |
|
57 | -{ |
|
56 | +class Pool { |
|
58 | 57 | /** |
59 | 58 | * The default connection name |
60 | 59 | * @var string |
@@ -71,8 +70,7 @@ discard block |
||
71 | 70 | * Class constructor |
72 | 71 | * @param array<string, mixed> $config |
73 | 72 | */ |
74 | - public function __construct(array $config = []) |
|
75 | - { |
|
73 | + public function __construct(array $config = []) { |
|
76 | 74 | if (count($config) > 0) { |
77 | 75 | if ( |
78 | 76 | is_array($config['connections']) && |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @class ConnectionStatement |
53 | 53 | * @package Platine\Database |
54 | 54 | */ |
55 | -class ConnectionStatement extends PDOStatement |
|
56 | -{ |
|
55 | +class ConnectionStatement extends PDOStatement { |
|
57 | 56 | /** |
58 | 57 | * {@inheritdoc} |
59 | 58 | */ |