@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | * |
54 | 54 | * @package Platine\Database\Query |
55 | 55 | */ |
56 | -class QueryStatement |
|
57 | -{ |
|
56 | +class QueryStatement { |
|
58 | 57 | /** |
59 | 58 | * The where SQL parts |
60 | 59 | * @var array<int, mixed> |
@@ -348,8 +347,7 @@ discard block |
||
348 | 347 | * @param bool $not |
349 | 348 | * @return mixed |
350 | 349 | */ |
351 | - public function addHavingIn($aggregate, $value, string $separator, bool $not) |
|
352 | - { |
|
350 | + public function addHavingIn($aggregate, $value, string $separator, bool $not) { |
|
353 | 351 | $aggregate = $this->closureToExpression($aggregate); |
354 | 352 | |
355 | 353 | if ($value instanceof Closure) { |
@@ -617,8 +615,7 @@ discard block |
||
617 | 615 | * |
618 | 616 | * @return mixed|Expression |
619 | 617 | */ |
620 | - protected function closureToExpression($value) |
|
621 | - { |
|
618 | + protected function closureToExpression($value) { |
|
622 | 619 | if ($value instanceof Closure) { |
623 | 620 | return Expression::fromClosure($value); |
624 | 621 | } |
@@ -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 (!empty($config)) { |
77 | 75 | if ( |
78 | 76 | !empty($config['connections']) |
@@ -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 | */ |
@@ -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 | */ |
@@ -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 |
@@ -63,8 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @package Platine\Database\Driver |
65 | 65 | */ |
66 | -class Driver |
|
67 | -{ |
|
66 | +class Driver { |
|
68 | 67 | /** |
69 | 68 | * The driver default date format |
70 | 69 | * @var string |
@@ -130,8 +129,7 @@ discard block |
||
130 | 129 | * Class constructor |
131 | 130 | * @param Connection $connection |
132 | 131 | */ |
133 | - public function __construct(Connection $connection) |
|
134 | - { |
|
132 | + public function __construct(Connection $connection) { |
|
135 | 133 | $this->connection = $connection; |
136 | 134 | } |
137 | 135 | |
@@ -470,8 +468,7 @@ discard block |
||
470 | 468 | * @return mixed |
471 | 469 | * |
472 | 470 | */ |
473 | - protected function value($value) |
|
474 | - { |
|
471 | + protected function value($value) { |
|
475 | 472 | if (is_numeric($value)) { |
476 | 473 | return $value; |
477 | 474 | } |
@@ -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 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 |
@@ -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 Connection instance |
62 | 61 | * @var Connection |
@@ -73,8 +72,7 @@ discard block |
||
73 | 72 | * Class constructor |
74 | 73 | * @param Connection $connection |
75 | 74 | */ |
76 | - public function __construct(Connection $connection) |
|
77 | - { |
|
75 | + public function __construct(Connection $connection) { |
|
78 | 76 | $this->connection = $connection; |
79 | 77 | $this->schema = $this->connection->getSchema(); |
80 | 78 | } |
@@ -113,8 +111,7 @@ discard block |
||
113 | 111 | * @param callable $callback |
114 | 112 | * @return mixed |
115 | 113 | */ |
116 | - public function transaction(callable $callback) |
|
117 | - { |
|
114 | + public function transaction(callable $callback) { |
|
118 | 115 | return $this->connection->transaction($callback, $this); |
119 | 116 | } |
120 | 117 |