@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | $attr['port'] = $port; |
188 | 188 | } |
189 | 189 | |
190 | - if ($driverName === 'mysql'){ |
|
190 | + if ($driverName === 'mysql') { |
|
191 | 191 | //Make MySQL using standard quoted identifier |
192 | 192 | $commands[] = 'SET SQL_MODE=ANSI_QUOTES'; |
193 | 193 | |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | |
592 | 592 | return preg_replace_callback( |
593 | 593 | '/\?/', |
594 | - function () use ($driver, &$params) { |
|
594 | + function() use ($driver, &$params) { |
|
595 | 595 | $param = array_shift($params); |
596 | 596 | $param = is_object($param) ? get_class($param) : $param; |
597 | 597 | if (is_int($param) || is_float($param)) { |
@@ -64,8 +64,7 @@ discard block |
||
64 | 64 | * Class Connection |
65 | 65 | * @package Platine\Database |
66 | 66 | */ |
67 | -class Connection |
|
68 | -{ |
|
67 | +class Connection { |
|
69 | 68 | |
70 | 69 | /** |
71 | 70 | * The PDO instance |
@@ -131,8 +130,7 @@ discard block |
||
131 | 130 | * @param Logger $logger |
132 | 131 | * @throws ConnectionException |
133 | 132 | */ |
134 | - public function __construct(array $config = [], ?Logger $logger = null) |
|
135 | - { |
|
133 | + public function __construct(array $config = [], ?Logger $logger = null) { |
|
136 | 134 | $this->logger = $logger ? $logger : new Logger(new NullLogger()); |
137 | 135 | |
138 | 136 | $defaultConfig = [ |
@@ -187,7 +185,7 @@ discard block |
||
187 | 185 | $attr['port'] = $port; |
188 | 186 | } |
189 | 187 | |
190 | - if ($driverName === 'mysql'){ |
|
188 | + if ($driverName === 'mysql') { |
|
191 | 189 | //Make MySQL using standard quoted identifier |
192 | 190 | $commands[] = 'SET SQL_MODE=ANSI_QUOTES'; |
193 | 191 | |
@@ -501,8 +499,7 @@ discard block |
||
501 | 499 | * @return mixed |
502 | 500 | * @throws QueryException |
503 | 501 | */ |
504 | - public function exec(string $sql, array $params = []) |
|
505 | - { |
|
502 | + public function exec(string $sql, array $params = []) { |
|
506 | 503 | return $this->execute($this->prepare($sql, $params)); |
507 | 504 | } |
508 | 505 | |
@@ -532,8 +529,7 @@ discard block |
||
532 | 529 | * @return mixed |
533 | 530 | * @throws QueryException |
534 | 531 | */ |
535 | - public function column(string $sql, array $params = []) |
|
536 | - { |
|
532 | + public function column(string $sql, array $params = []) { |
|
537 | 533 | $prepared = $this->prepare($sql, $params); |
538 | 534 | $this->execute($prepared); |
539 | 535 |