@@ -623,7 +623,7 @@ |
||
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 | ); |
@@ -46,7 +46,7 @@ |
||
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; |
@@ -45,7 +45,7 @@ |
||
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); |
@@ -110,7 +110,7 @@ |
||
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 | /** |
@@ -110,7 +110,7 @@ |
||
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 | /** |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | try { |
26 | 26 | $stm->execute(); |
27 | 27 | } catch (PDOException $exception) { |
28 | - throw new DatabaseException($exception->getMessage() . ' [' . $query . ']'); |
|
28 | + throw new DatabaseException($exception->getMessage().' ['.$query.']'); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | return new ResultSet(new ResultSetAdapter($stm)); |
@@ -40,17 +40,17 @@ discard block |
||
40 | 40 | |
41 | 41 | $dsn = 'mysql:'; |
42 | 42 | if (isset($params['host']) && $params['host'] != '') { |
43 | - $dsn .= 'host=' . $params['host'] . ';'; |
|
43 | + $dsn .= 'host='.$params['host'].';'; |
|
44 | 44 | } |
45 | 45 | if (isset($params['port'])) { |
46 | - $dsn .= 'port=' . $params['port'] . ';'; |
|
46 | + $dsn .= 'port='.$params['port'].';'; |
|
47 | 47 | } |
48 | 48 | if (isset($params['charset'])) { |
49 | - $dsn .= 'charset=' . $params['charset'] . ';'; |
|
49 | + $dsn .= 'charset='.$params['charset'].';'; |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | if (isset($params['socket']) && $params['socket'] != '') { |
53 | - $dsn .= 'unix_socket=' . $params['socket'] . ';'; |
|
53 | + $dsn .= 'unix_socket='.$params['socket'].';'; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | try { |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | try { |
91 | 91 | $statement = $this->connection->query(implode(';', $queue)); |
92 | 92 | } catch (PDOException $exception) { |
93 | - throw new DatabaseException($exception->getMessage() .' [ '.implode(';', $queue).']'); |
|
93 | + throw new DatabaseException($exception->getMessage().' [ '.implode(';', $queue).']'); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | return new MultiResultSet(new MultiResultSetAdapter($statement)); |