@@ -55,8 +55,7 @@ discard block |
||
55 | 55 | * Class Database |
56 | 56 | * @package Platine\Database |
57 | 57 | */ |
58 | -class Database |
|
59 | -{ |
|
58 | +class Database { |
|
60 | 59 | |
61 | 60 | /** |
62 | 61 | * The Connection instance |
@@ -74,8 +73,7 @@ discard block |
||
74 | 73 | * Class constructor |
75 | 74 | * @param Connection $connection |
76 | 75 | */ |
77 | - public function __construct(Connection $connection) |
|
78 | - { |
|
76 | + public function __construct(Connection $connection) { |
|
79 | 77 | $this->connection = $connection; |
80 | 78 | } |
81 | 79 | |
@@ -116,8 +114,7 @@ discard block |
||
116 | 114 | * @param callable $callback |
117 | 115 | * @return mixed |
118 | 116 | */ |
119 | - public function transaction(callable $callback) |
|
120 | - { |
|
117 | + public function transaction(callable $callback) { |
|
121 | 118 | return $this->connection->transaction($callback, $this); |
122 | 119 | } |
123 | 120 |
@@ -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 | /** |
57 | 56 | * The list of CreateColumn |
@@ -105,8 +104,7 @@ discard block |
||
105 | 104 | * Class constructor |
106 | 105 | * @param string $table |
107 | 106 | */ |
108 | - public function __construct(string $table) |
|
109 | - { |
|
107 | + public function __construct(string $table) { |
|
110 | 108 | $this->table = $table; |
111 | 109 | } |
112 | 110 | |
@@ -132,8 +130,7 @@ discard block |
||
132 | 130 | * |
133 | 131 | * @return mixed |
134 | 132 | */ |
135 | - public function getPrimaryKey() |
|
136 | - { |
|
133 | + public function getPrimaryKey() { |
|
137 | 134 | return $this->primaryKey; |
138 | 135 | } |
139 | 136 |
@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | * Class AlterTable |
51 | 51 | * @package Platine\Database\Schema |
52 | 52 | */ |
53 | -class AlterTable |
|
54 | -{ |
|
53 | +class AlterTable { |
|
55 | 54 | |
56 | 55 | /** |
57 | 56 | * The name of table |
@@ -69,8 +68,7 @@ discard block |
||
69 | 68 | * Class constructor |
70 | 69 | * @param string $table |
71 | 70 | */ |
72 | - public function __construct(string $table) |
|
73 | - { |
|
71 | + public function __construct(string $table) { |
|
74 | 72 | $this->table = $table; |
75 | 73 | } |
76 | 74 |
@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | * Class CreateColumn |
51 | 51 | * @package Platine\Database\Schema |
52 | 52 | */ |
53 | -class CreateColumn extends BaseColumn |
|
54 | -{ |
|
53 | +class CreateColumn extends BaseColumn { |
|
55 | 54 | |
56 | 55 | /** |
57 | 56 | * The associated table instance |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * @param string $name |
66 | 65 | * @param string|null $type |
67 | 66 | */ |
68 | - public function __construct(CreateTable $table, string $name, ?string $type = null) |
|
69 | - { |
|
67 | + public function __construct(CreateTable $table, string $name, ?string $type = null) { |
|
70 | 68 | $this->table = $table; |
71 | 69 | parent::__construct($name, $type); |
72 | 70 | } |
@@ -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 | /** |
57 | 56 | * The alter table |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * @param string $name |
66 | 65 | * @param string|null $type |
67 | 66 | */ |
68 | - public function __construct(AlterTable $table, string $name, ?string $type = null) |
|
69 | - { |
|
67 | + public function __construct(AlterTable $table, string $name, ?string $type = null) { |
|
70 | 68 | $this->table = $table; |
71 | 69 | parent::__construct($name, $type); |
72 | 70 | } |
@@ -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 | /** |
62 | 61 | * @inheritDoc |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @package Platine\Database\Driver |
62 | 62 | */ |
63 | -class Driver |
|
64 | -{ |
|
63 | +class Driver { |
|
65 | 64 | |
66 | 65 | /** |
67 | 66 | * The driver default date format |
@@ -126,8 +125,7 @@ discard block |
||
126 | 125 | * Class constructor |
127 | 126 | * @param Connection $connection |
128 | 127 | */ |
129 | - public function __construct(Connection $connection) |
|
130 | - { |
|
128 | + public function __construct(Connection $connection) { |
|
131 | 129 | $this->connection = $connection; |
132 | 130 | } |
133 | 131 | |
@@ -454,8 +452,7 @@ discard block |
||
454 | 452 | * @return mixed |
455 | 453 | * |
456 | 454 | */ |
457 | - protected function value($value) |
|
458 | - { |
|
455 | + protected function value($value) { |
|
459 | 456 | if (is_numeric($value)) { |
460 | 457 | return $value; |
461 | 458 | } |
@@ -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 | /** |
61 | 60 | * @inheritdoc |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * Class SQLServer |
54 | 54 | * @package Platine\Database\Driver |
55 | 55 | */ |
56 | -class SQLServer extends Driver |
|
57 | -{ |
|
56 | +class SQLServer extends Driver { |
|
58 | 57 | |
59 | 58 | /** |
60 | 59 | * @inheritdoc |