@@ -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 |
@@ -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 | /** |
59 | 58 | * @inheritdoc |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * Class PostgreSQL |
54 | 54 | * @package Platine\Database\Driver |
55 | 55 | */ |
56 | -class PostgreSQL extends Driver |
|
57 | -{ |
|
56 | +class PostgreSQL extends Driver { |
|
58 | 57 | |
59 | 58 | /** |
60 | 59 | * @inheritDoc |
@@ -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 | /** |
61 | 60 | * The PDOStatement instance |
@@ -67,16 +66,14 @@ discard block |
||
67 | 66 | * Class constructor |
68 | 67 | * @param PDOStatement $statement |
69 | 68 | */ |
70 | - public function __construct(PDOStatement $statement) |
|
71 | - { |
|
69 | + public function __construct(PDOStatement $statement) { |
|
72 | 70 | $this->statement = $statement; |
73 | 71 | } |
74 | 72 | |
75 | 73 | /** |
76 | 74 | * Destructor of the class |
77 | 75 | */ |
78 | - public function __desctruct() |
|
79 | - { |
|
76 | + public function __desctruct() { |
|
80 | 77 | $this->statement->closeCursor(); |
81 | 78 | } |
82 | 79 | |
@@ -124,8 +121,7 @@ discard block |
||
124 | 121 | * @param callable $callable |
125 | 122 | * @return mixed |
126 | 123 | */ |
127 | - public function get(callable $callable = null) |
|
128 | - { |
|
124 | + public function get(callable $callable = null) { |
|
129 | 125 | $result = $this->statement->fetch(); |
130 | 126 | $this->statement->closeCursor(); |
131 | 127 | if ($callable !== null) { |
@@ -140,8 +136,7 @@ discard block |
||
140 | 136 | * |
141 | 137 | * @return mixed |
142 | 138 | */ |
143 | - public function next() |
|
144 | - { |
|
139 | + public function next() { |
|
145 | 140 | return $this->statement->fetch(); |
146 | 141 | } |
147 | 142 | |
@@ -149,8 +144,7 @@ discard block |
||
149 | 144 | * Close the cursor |
150 | 145 | * @return mixed |
151 | 146 | */ |
152 | - public function flush() |
|
153 | - { |
|
147 | + public function flush() { |
|
154 | 148 | return $this->statement->closeCursor(); |
155 | 149 | } |
156 | 150 | |
@@ -160,8 +154,7 @@ discard block |
||
160 | 154 | * |
161 | 155 | * @return mixed |
162 | 156 | */ |
163 | - public function column(int $col = 0) |
|
164 | - { |
|
157 | + public function column(int $col = 0) { |
|
165 | 158 | return $this->statement->fetchColumn($col); |
166 | 159 | } |
167 | 160 |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | * Class Schema |
54 | 54 | * @package Platine\Database |
55 | 55 | */ |
56 | -class Schema |
|
57 | -{ |
|
56 | +class Schema { |
|
58 | 57 | |
59 | 58 | /** |
60 | 59 | * The Connection instance |
@@ -84,8 +83,7 @@ discard block |
||
84 | 83 | * Class constructor |
85 | 84 | * @param Connection $connection |
86 | 85 | */ |
87 | - public function __construct(Connection $connection) |
|
88 | - { |
|
86 | + public function __construct(Connection $connection) { |
|
89 | 87 | $this->connection = $connection; |
90 | 88 | } |
91 | 89 |