@@ -50,8 +50,7 @@ |
||
| 50 | 50 | * @class SubQuery |
| 51 | 51 | * @package Platine\Database\Query |
| 52 | 52 | */ |
| 53 | -class SubQuery |
|
| 54 | -{ |
|
| 53 | +class SubQuery { |
|
| 55 | 54 | /** |
| 56 | 55 | * The SelectStatement instance |
| 57 | 56 | * @var SelectStatement |
@@ -52,8 +52,7 @@ |
||
| 52 | 52 | * @class BaseStatement |
| 53 | 53 | * @package Platine\Database\Query |
| 54 | 54 | */ |
| 55 | -class BaseStatement extends WhereStatement |
|
| 56 | -{ |
|
| 55 | +class BaseStatement extends WhereStatement { |
|
| 57 | 56 | /** |
| 58 | 57 | * @param string|string[] $table |
| 59 | 58 | * @param Closure $closure |
@@ -52,8 +52,7 @@ |
||
| 52 | 52 | * @class Insert |
| 53 | 53 | * @package Platine\Database\Query |
| 54 | 54 | */ |
| 55 | -class Insert extends InsertStatement |
|
| 56 | -{ |
|
| 55 | +class Insert extends InsertStatement { |
|
| 57 | 56 | /** |
| 58 | 57 | * @var Connection |
| 59 | 58 | */ |
@@ -52,8 +52,7 @@ discard block |
||
| 52 | 52 | * @class SelectStatement |
| 53 | 53 | * @package Platine\Database\Query |
| 54 | 54 | */ |
| 55 | -class SelectStatement extends BaseStatement |
|
| 56 | -{ |
|
| 55 | +class SelectStatement extends BaseStatement { |
|
| 57 | 56 | /** |
| 58 | 57 | * @var HavingStatement |
| 59 | 58 | */ |
@@ -64,8 +63,7 @@ discard block |
||
| 64 | 63 | * @param string|array<int, string> $tables |
| 65 | 64 | * @param QueryStatement|null $queryStatement |
| 66 | 65 | */ |
| 67 | - public function __construct(string|array $tables, ?QueryStatement $queryStatement = null) |
|
| 68 | - { |
|
| 66 | + public function __construct(string|array $tables, ?QueryStatement $queryStatement = null) { |
|
| 69 | 67 | parent::__construct($queryStatement); |
| 70 | 68 | |
| 71 | 69 | if (!is_array($tables)) { |
@@ -53,8 +53,7 @@ |
||
| 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> |
@@ -54,8 +54,7 @@ discard block |
||
| 54 | 54 | * @class Query |
| 55 | 55 | * @package Platine\Database\Query |
| 56 | 56 | */ |
| 57 | -class Query extends BaseStatement |
|
| 58 | -{ |
|
| 57 | +class Query extends BaseStatement { |
|
| 59 | 58 | /** |
| 60 | 59 | * @var Connection |
| 61 | 60 | */ |
@@ -246,8 +245,7 @@ discard block |
||
| 246 | 245 | * |
| 247 | 246 | * @return mixed |
| 248 | 247 | */ |
| 249 | - public function max(string|Expression|Closure $column, bool $distinct = false) |
|
| 250 | - { |
|
| 248 | + public function max(string|Expression|Closure $column, bool $distinct = false) { |
|
| 251 | 249 | return $this->buildSelect()->max($column, $distinct); |
| 252 | 250 | } |
| 253 | 251 | |
@@ -52,8 +52,7 @@ |
||
| 52 | 52 | * @class Where |
| 53 | 53 | * @package Platine\Database\Query |
| 54 | 54 | */ |
| 55 | -class Where |
|
| 56 | -{ |
|
| 55 | +class Where { |
|
| 57 | 56 | /** |
| 58 | 57 | * @var string|Expression |
| 59 | 58 | */ |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * @class Select |
| 55 | 55 | * @package Platine\Database\Query |
| 56 | 56 | */ |
| 57 | -class Select extends SelectStatement |
|
| 58 | -{ |
|
| 57 | +class Select extends SelectStatement { |
|
| 59 | 58 | /** |
| 60 | 59 | * @var Connection |
| 61 | 60 | */ |
@@ -59,8 +59,7 @@ |
||
| 59 | 59 | * @class Configuration |
| 60 | 60 | * @package Platine\Database |
| 61 | 61 | */ |
| 62 | -class Configuration extends AbstractConfiguration |
|
| 63 | -{ |
|
| 62 | +class Configuration extends AbstractConfiguration { |
|
| 64 | 63 | /** |
| 65 | 64 | * The connection driver to use |
| 66 | 65 | * @var string |