@@ -197,7 +197,7 @@ |
||
197 | 197 | /** |
198 | 198 | * Get the result object returned by PHP's MySQLi |
199 | 199 | * |
200 | - * @return \Pdostatement |
|
200 | + * @return \mysqli_result |
|
201 | 201 | * |
202 | 202 | * @codeCoverageIgnore |
203 | 203 | */ |
@@ -142,7 +142,7 @@ |
||
142 | 142 | } elseif (is_float($value)) { |
143 | 143 | // Convert to non-locale aware float to prevent possible commas |
144 | 144 | return sprintf('%F', $value); |
145 | - } elseif (is_array($value)) { |
|
145 | + } elseif (is_array($value)) { |
|
146 | 146 | // Supports MVA attributes |
147 | 147 | return '('.implode(',', $this->quoteArr($value)).')'; |
148 | 148 | } |
@@ -49,8 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | try{ |
51 | 51 | $stm->execute(); |
52 | - } |
|
53 | - catch(\PDOException $exception){ |
|
52 | + } catch(\PDOException $exception){ |
|
54 | 53 | throw new DatabaseException($exception->getMessage() . ' [' . $query . ']'); |
55 | 54 | } |
56 | 55 | |
@@ -140,8 +139,7 @@ discard block |
||
140 | 139 | } |
141 | 140 | |
142 | 141 | return new MultiResultSet($statement); |
143 | - } |
|
144 | - else |
|
142 | + } else |
|
145 | 143 | { |
146 | 144 | foreach($queue as $sql) |
147 | 145 | { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @param string $query The query string |
40 | 40 | * |
41 | 41 | * @throws DatabaseException |
42 | - * @return array|int The result array or number of rows affected |
|
42 | + * @return ResultSet The result array or number of rows affected |
|
43 | 43 | */ |
44 | 44 | public function query($query) |
45 | 45 | { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | /** |
118 | 118 | * @param array $queue |
119 | - * @return array |
|
119 | + * @return MultiResultSet |
|
120 | 120 | * @throws DatabaseException |
121 | 121 | * @throws SphinxQLException |
122 | 122 | */ |
@@ -222,7 +222,7 @@ |
||
222 | 222 | /** |
223 | 223 | * Get the PHP MySQLi object |
224 | 224 | * |
225 | - * @return \mysqli |
|
225 | + * @return \Foolz\SphinxQL\Drivers\ConnectionInterface |
|
226 | 226 | * @throws ConnectionException |
227 | 227 | */ |
228 | 228 | public function getMysqliConnection() |