@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public function getLastErrorNo() |
31 | 31 | { |
32 | - return (string)$this->getDriver()->getLastErrorNo(); |
|
32 | + return (string) $this->getDriver()->getLastErrorNo(); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | public function getTableMetaData($table) |
264 | 264 | { |
265 | 265 | $metadata = []; |
266 | - if (! empty($table)) { |
|
266 | + if (!empty($table)) { |
|
267 | 267 | $sql = 'SHOW FIELDS FROM ' . $table; |
268 | 268 | $result = $this->query($sql); |
269 | 269 | $metadata = $this->getDriver()->getTableMetaData($result); |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | */ |
286 | 286 | public function setDriver($driver) |
287 | 287 | { |
288 | - if (! \in_array(Interfaces\DriverInterface::class, class_implements($driver), true)) { |
|
288 | + if (!\in_array(Interfaces\DriverInterface::class, class_implements($driver), true)) { |
|
289 | 289 | throw new Exceptions\DriverException( |
290 | 290 | $driver . ' should implements the ' . Interfaces\DriverInterface::class |
291 | 291 | ); |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | $table = $this->prepareFrom($table); |
379 | 379 | $useFields = \is_array($fields) ? $this->prepareValues($fields) : $fields; |
380 | 380 | |
381 | - if (empty($useFields) || ! \is_scalar($useFields) || $useFields === '*') { |
|
381 | + if (empty($useFields) || !\is_scalar($useFields) || $useFields === '*') { |
|
382 | 382 | throw (new Exceptions\InvalidFieldException('Invalid insert fields')) |
383 | 383 | ->setData($fields); |
384 | 384 | } |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | $table = $this->prepareFrom($table); |
418 | 418 | $useFields = \is_array($fields) ? $this->prepareFields($fields, true) : $fields; |
419 | 419 | |
420 | - if (empty($useFields) || ! \is_scalar($useFields) || $useFields === '*') { |
|
420 | + if (empty($useFields) || !\is_scalar($useFields) || $useFields === '*') { |
|
421 | 421 | throw (new Exceptions\InvalidFieldException('Invalid insert fields')) |
422 | 422 | ->setData($fields); |
423 | 423 | } |
@@ -523,7 +523,7 @@ discard block |
||
523 | 523 | |
524 | 524 | if ($this->config['driver'] === 'pgsql') { |
525 | 525 | $db = $this->getTableName($table); |
526 | - }else{ |
|
526 | + } else { |
|
527 | 527 | $db = implode('.', [ |
528 | 528 | '`' . $this->getConfig('database') . '`', |
529 | 529 | $this->getTableName($table) |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | /** |
537 | 537 | * {@inheritDoc} |
538 | 538 | */ |
539 | - public function begin ($flag = 0, $name = null) |
|
539 | + public function begin($flag = 0, $name = null) |
|
540 | 540 | { |
541 | 541 | return $this->getDriver()->begin($flag, $name); |
542 | 542 | } |
@@ -544,7 +544,7 @@ discard block |
||
544 | 544 | /** |
545 | 545 | * {@inheritDoc} |
546 | 546 | */ |
547 | - public function commit ($flag = 0, $name = null) |
|
547 | + public function commit($flag = 0, $name = null) |
|
548 | 548 | { |
549 | 549 | return $this->getDriver()->commit($flag, $name); |
550 | 550 | } |
@@ -552,7 +552,7 @@ discard block |
||
552 | 552 | /** |
553 | 553 | * {@inheritDoc} |
554 | 554 | */ |
555 | - public function rollback ($flag = 0, $name = null) |
|
555 | + public function rollback($flag = 0, $name = null) |
|
556 | 556 | { |
557 | 557 | return $this->getDriver()->rollback($flag, $name); |
558 | 558 | } |
@@ -523,7 +523,7 @@ |
||
523 | 523 | |
524 | 524 | if ($this->config['driver'] === 'pgsql') { |
525 | 525 | $db = $this->getTableName($table); |
526 | - }else{ |
|
526 | + } else{ |
|
527 | 527 | $db = implode('.', [ |
528 | 528 | '`' . $this->getConfig('database') . '`', |
529 | 529 | $this->getTableName($table) |