Passed
Push — develop ( bc0387...6879d5 )
by nguereza
03:17
created
src/Connection.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
Braces   +5 added lines, -9 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.