Completed
Push — master ( 7e8e79...1f43e8 )
by Hung
02:20 queued 20s
created
src/Drivers/Pdo/Connection.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
 
28 28
         $stm = $this->connection->prepare($query);
29 29
 
30
-        try{
30
+        try {
31 31
             $stm->execute();
32 32
         }
33
-        catch(\PDOException $exception){
34
-            throw new DatabaseException($exception->getMessage() . ' [' . $query . ']');
33
+        catch (\PDOException $exception) {
34
+            throw new DatabaseException($exception->getMessage().' ['.$query.']');
35 35
         }
36 36
 
37 37
         return new ResultSet($stm);
@@ -46,17 +46,17 @@  discard block
 block discarded – undo
46 46
 
47 47
         $dsn = 'mysql:';
48 48
         if (isset($params['host']) && $params['host'] != '') {
49
-            $dsn .= 'host=' . $params['host'] . ';';
49
+            $dsn .= 'host='.$params['host'].';';
50 50
         }
51 51
         if (isset($params['port'])) {
52
-            $dsn .= 'port=' . $params['port'] . ';';
52
+            $dsn .= 'port='.$params['port'].';';
53 53
         }
54 54
         if (isset($params['charset'])) {
55
-            $dsn .= 'charset=' . $params['charset'] . ';';
55
+            $dsn .= 'charset='.$params['charset'].';';
56 56
         }
57 57
 
58 58
         if (isset($params['socket']) && $params['socket'] != '') {
59
-            $dsn .= 'unix_socket=' . $params['socket'] . ';';
59
+            $dsn .= 'unix_socket='.$params['socket'].';';
60 60
         }
61 61
 
62 62
         try {
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         try {
100 100
             $statement = $this->connection->query(implode(';', $queue));
101 101
         } catch (\PDOException $exception) {
102
-            throw new DatabaseException($exception->getMessage() .' [ '.implode(';', $queue).']');
102
+            throw new DatabaseException($exception->getMessage().' [ '.implode(';', $queue).']');
103 103
         }
104 104
 
105 105
         return new MultiResultSet($statement);
Please login to merge, or discard this patch.