@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | $row = array_merge($values, $assoc); |
309 | 309 | break; |
310 | 310 | case Zend_Db::FETCH_OBJ: |
311 | - $row = (object) array_combine($this->_keys, $values); |
|
311 | + $row = (object)array_combine($this->_keys, $values); |
|
312 | 312 | break; |
313 | 313 | case Zend_Db::FETCH_BOUND: |
314 | 314 | $assoc = array_combine($this->_keys, $values); |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | * @see Zend_Db_Statement_Mysqli_Exception |
341 | 341 | */ |
342 | 342 | require_once 'Zend/Db/Statement/Mysqli/Exception.php'; |
343 | - throw new Zend_Db_Statement_Mysqli_Exception(__FUNCTION__.'() is not implemented'); |
|
343 | + throw new Zend_Db_Statement_Mysqli_Exception(__FUNCTION__ . '() is not implemented'); |
|
344 | 344 | } |
345 | 345 | |
346 | 346 | /** |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | 'COLUMN_POSITION' => $i, |
258 | 258 | 'DATA_TYPE' => $row['Type'], |
259 | 259 | 'DEFAULT' => $row['Default'], |
260 | - 'NULLABLE' => (bool) ($row['Null'] == 'YES'), |
|
260 | + 'NULLABLE' => (bool)($row['Null'] == 'YES'), |
|
261 | 261 | 'LENGTH' => $row['Length'], |
262 | 262 | 'SCALE' => $row['Scale'], |
263 | 263 | 'PRECISION' => $row['Precision'], |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | } |
293 | 293 | |
294 | 294 | if (isset($this->_config['port'])) { |
295 | - $port = (integer) $this->_config['port']; |
|
295 | + $port = (integer)$this->_config['port']; |
|
296 | 296 | } else { |
297 | 297 | $port = null; |
298 | 298 | } |
@@ -305,13 +305,13 @@ discard block |
||
305 | 305 | |
306 | 306 | $this->_connection = mysqli_init(); |
307 | 307 | |
308 | - if(!empty($this->_config['driver_options'])) { |
|
309 | - foreach($this->_config['driver_options'] as $option=>$value) { |
|
310 | - if(is_string($option)) { |
|
308 | + if (!empty($this->_config['driver_options'])) { |
|
309 | + foreach ($this->_config['driver_options'] as $option=>$value) { |
|
310 | + if (is_string($option)) { |
|
311 | 311 | // Suppress warnings here |
312 | 312 | // Ignore it if it's not a valid constant |
313 | 313 | $option = @constant(strtoupper($option)); |
314 | - if($option === null) |
|
314 | + if ($option === null) |
|
315 | 315 | continue; |
316 | 316 | } |
317 | 317 | mysqli_options($this->_connection, $option, $value); |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | */ |
353 | 353 | public function isConnected() |
354 | 354 | { |
355 | - return ((bool) ($this->_connection instanceof mysqli)); |
|
355 | + return ((bool)($this->_connection instanceof mysqli)); |
|
356 | 356 | } |
357 | 357 | |
358 | 358 | /** |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | public function lastInsertId($tableName = null, $primaryKey = null) |
415 | 415 | { |
416 | 416 | $mysqli = $this->_connection; |
417 | - return (string) $mysqli->insert_id; |
|
417 | + return (string)$mysqli->insert_id; |
|
418 | 418 | } |
419 | 419 | |
420 | 420 | /** |
@@ -548,9 +548,9 @@ discard block |
||
548 | 548 | { |
549 | 549 | $this->_connect(); |
550 | 550 | $version = $this->_connection->server_version; |
551 | - $major = (int) ($version / 10000); |
|
552 | - $minor = (int) ($version % 10000 / 100); |
|
553 | - $revision = (int) ($version % 100); |
|
551 | + $major = (int)($version / 10000); |
|
552 | + $minor = (int)($version % 10000 / 100); |
|
553 | + $revision = (int)($version % 100); |
|
554 | 554 | return $major . '.' . $minor . '.' . $revision; |
555 | 555 | } |
556 | 556 | } |
@@ -311,8 +311,9 @@ |
||
311 | 311 | // Suppress warnings here |
312 | 312 | // Ignore it if it's not a valid constant |
313 | 313 | $option = @constant(strtoupper($option)); |
314 | - if($option === null) |
|
315 | - continue; |
|
314 | + if($option === null) { |
|
315 | + continue; |
|
316 | + } |
|
316 | 317 | } |
317 | 318 | mysqli_options($this->_connection, $option, $value); |
318 | 319 | } |