Completed
Push — master ( 2a128d...51e64f )
by Hung
04:15
created
src/Drivers/MultiResultSetBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
      */
111 111
     public function key()
112 112
     {
113
-        return (int)$this->cursor;
113
+        return (int) $this->cursor;
114 114
     }
115 115
 
116 116
     /**
Please login to merge, or discard this patch.
src/SphinxQL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -623,7 +623,7 @@
 block discarded – undo
623 623
                 } elseif (is_array($option['value'])) {
624 624
                     array_walk(
625 625
                         $option['value'],
626
-                        function (&$val, $key) {
626
+                        function(&$val, $key) {
627 627
                             $val = $key.'='.$val;
628 628
                         }
629 629
                     );
Please login to merge, or discard this patch.
src/Drivers/ResultSetBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
      */
111 111
     public function key()
112 112
     {
113
-        return (int)$this->cursor;
113
+        return (int) $this->cursor;
114 114
     }
115 115
 
116 116
     /**
Please login to merge, or discard this patch.
src/Drivers/Pdo/ResultSetAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $fields = array();
47 47
 
48 48
         for ($i = 0; $i < $this->statement->columnCount(); $i++) {
49
-            $fields[] = (object)$this->statement->getColumnMeta($i);
49
+            $fields[] = (object) $this->statement->getColumnMeta($i);
50 50
         }
51 51
 
52 52
         return $fields;
Please login to merge, or discard this patch.
src/Drivers/Pdo/Connection.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         try {
24 24
             $stm->execute();
25 25
         } catch (PDOException $exception) {
26
-            throw new DatabaseException($exception->getMessage() . ' [' . $query . ']');
26
+            throw new DatabaseException($exception->getMessage().' ['.$query.']');
27 27
         }
28 28
 
29 29
         return new ResultSet($stm);
@@ -38,17 +38,17 @@  discard block
 block discarded – undo
38 38
 
39 39
         $dsn = 'mysql:';
40 40
         if (isset($params['host']) && $params['host'] != '') {
41
-            $dsn .= 'host=' . $params['host'] . ';';
41
+            $dsn .= 'host='.$params['host'].';';
42 42
         }
43 43
         if (isset($params['port'])) {
44
-            $dsn .= 'port=' . $params['port'] . ';';
44
+            $dsn .= 'port='.$params['port'].';';
45 45
         }
46 46
         if (isset($params['charset'])) {
47
-            $dsn .= 'charset=' . $params['charset'] . ';';
47
+            $dsn .= 'charset='.$params['charset'].';';
48 48
         }
49 49
 
50 50
         if (isset($params['socket']) && $params['socket'] != '') {
51
-            $dsn .= 'unix_socket=' . $params['socket'] . ';';
51
+            $dsn .= 'unix_socket='.$params['socket'].';';
52 52
         }
53 53
 
54 54
         try {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         try {
93 93
             $statement = $this->connection->query(implode(';', $queue));
94 94
         } catch (PDOException $exception) {
95
-            throw new DatabaseException($exception->getMessage() .' [ '.implode(';', $queue).']');
95
+            throw new DatabaseException($exception->getMessage().' [ '.implode(';', $queue).']');
96 96
         }
97 97
 
98 98
         return new MultiResultSet($statement);
Please login to merge, or discard this patch.
src/Drivers/Mysqli/Connection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             }
46 46
         }
47 47
 
48
-        set_error_handler(function () {});
48
+        set_error_handler(function() {});
49 49
         try {
50 50
             if (!$conn->real_connect($data['host'], null, null, null, (int) $data['port'], $data['socket'])) {
51 51
                 throw new ConnectionException('Connection Error: ['.$conn->connect_errno.']'.$conn->connect_error);
Please login to merge, or discard this patch.