@@ -54,8 +54,7 @@ discard block |
||
| 54 | 54 | * @class ResultSet |
| 55 | 55 | * @package Platine\Database |
| 56 | 56 | */ |
| 57 | -class ResultSet |
|
| 58 | -{ |
|
| 57 | +class ResultSet { |
|
| 59 | 58 | /** |
| 60 | 59 | * The PDOStatement instance |
| 61 | 60 | * @var PDOStatement |
@@ -66,8 +65,7 @@ discard block |
||
| 66 | 65 | * Class constructor |
| 67 | 66 | * @param PDOStatement $statement |
| 68 | 67 | */ |
| 69 | - public function __construct(PDOStatement $statement) |
|
| 70 | - { |
|
| 68 | + public function __construct(PDOStatement $statement) { |
|
| 71 | 69 | $this->statement = $statement; |
| 72 | 70 | } |
| 73 | 71 | |
@@ -75,8 +73,7 @@ discard block |
||
| 75 | 73 | * Destructor of the class |
| 76 | 74 | * |
| 77 | 75 | */ |
| 78 | - public function __destruct() |
|
| 79 | - { |
|
| 76 | + public function __destruct() { |
|
| 80 | 77 | $this->statement->closeCursor(); |
| 81 | 78 | } |
| 82 | 79 | |
@@ -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 | } |
@@ -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']) && |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | * @class Connection |
| 62 | 62 | * @package Platine\Database |
| 63 | 63 | */ |
| 64 | -class Connection |
|
| 65 | -{ |
|
| 64 | +class Connection { |
|
| 66 | 65 | /** |
| 67 | 66 | * The PDO instance |
| 68 | 67 | * @var PDO |
@@ -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 | */ |
@@ -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> |
@@ -104,8 +103,7 @@ discard block |
||
| 104 | 103 | * Class constructor |
| 105 | 104 | * @param string $table |
| 106 | 105 | */ |
| 107 | - public function __construct(string $table) |
|
| 108 | - { |
|
| 106 | + public function __construct(string $table) { |
|
| 109 | 107 | $this->table = $table; |
| 110 | 108 | } |
| 111 | 109 | |
@@ -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 name of the column |
| 57 | 56 | * @var string |
@@ -75,8 +74,7 @@ discard block |
||
| 75 | 74 | * @param string $name |
| 76 | 75 | * @param string|null $type |
| 77 | 76 | */ |
| 78 | - public function __construct(string $name, ?string $type = null) |
|
| 79 | - { |
|
| 77 | + public function __construct(string $name, ?string $type = null) { |
|
| 80 | 78 | $this->name = $name; |
| 81 | 79 | $this->type = $type; |
| 82 | 80 | } |
@@ -151,8 +149,7 @@ discard block |
||
| 151 | 149 | * @param mixed $default |
| 152 | 150 | * @return mixed |
| 153 | 151 | */ |
| 154 | - public function get(string $name, mixed $default = null) |
|
| 155 | - { |
|
| 152 | + public function get(string $name, mixed $default = null) { |
|
| 156 | 153 | return isset($this->properties[$name]) |
| 157 | 154 | ? $this->properties[$name] |
| 158 | 155 | : $default; |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class Delete |
| 54 | 54 | * @package Platine\Database\Query |
| 55 | 55 | */ |
| 56 | -class Delete extends DeleteStatement |
|
| 57 | -{ |
|
| 56 | +class Delete extends DeleteStatement { |
|
| 58 | 57 | /** |
| 59 | 58 | * @var Connection |
| 60 | 59 | */ |
@@ -52,8 +52,7 @@ |
||
| 52 | 52 | * @class Update |
| 53 | 53 | * @package Platine\Database\Query |
| 54 | 54 | */ |
| 55 | -class Update extends UpdateStatement |
|
| 56 | -{ |
|
| 55 | +class Update extends UpdateStatement { |
|
| 57 | 56 | /** |
| 58 | 57 | * @var Connection |
| 59 | 58 | */ |