@@ -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 | /** |
57 | 56 | * The name of the column |
@@ -76,8 +75,7 @@ discard block |
||
76 | 75 | * @param string $name |
77 | 76 | * @param string|null $type |
78 | 77 | */ |
79 | - public function __construct(string $name, ?string $type = null) |
|
80 | - { |
|
78 | + public function __construct(string $name, ?string $type = null) { |
|
81 | 79 | $this->name = $name; |
82 | 80 | $this->type = $type; |
83 | 81 | } |
@@ -152,8 +150,7 @@ discard block |
||
152 | 150 | * @param mixed|null $default |
153 | 151 | * @return mixed |
154 | 152 | */ |
155 | - public function get(string $name, $default = null) |
|
156 | - { |
|
153 | + public function get(string $name, $default = null) { |
|
157 | 154 | return isset($this->properties[$name]) |
158 | 155 | ? $this->properties[$name] |
159 | 156 | : $default; |
@@ -78,7 +78,7 @@ |
||
78 | 78 | !empty($config['connections']) |
79 | 79 | && is_array($config['connections']) |
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) { |
@@ -52,8 +52,7 @@ discard block |
||
52 | 52 | * Class Pool |
53 | 53 | * @package Platine\Database |
54 | 54 | */ |
55 | -class Pool |
|
56 | -{ |
|
55 | +class Pool { |
|
57 | 56 | |
58 | 57 | /** |
59 | 58 | * The default connection name |
@@ -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']) |
@@ -38,6 +38,5 @@ |
||
38 | 38 | * Class ConnectionNotFoundException |
39 | 39 | * @package Platine\Database\Exception |
40 | 40 | */ |
41 | -class ConnectionNotFoundException extends Exception |
|
42 | -{ |
|
41 | +class ConnectionNotFoundException extends Exception { |
|
43 | 42 | } |
@@ -38,6 +38,5 @@ |
||
38 | 38 | * Class ConnectionAlreadyExistsException |
39 | 39 | * @package Platine\Database\Exception |
40 | 40 | */ |
41 | -class ConnectionAlreadyExistsException extends Exception |
|
42 | -{ |
|
41 | +class ConnectionAlreadyExistsException extends Exception { |
|
43 | 42 | } |