@@ -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 | } |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | $lid = null; |
419 | 419 | $useFields = \is_array($fields) ? $this->prepareFields($fields, true) : $fields; |
420 | 420 | |
421 | - if (empty($useFields) || ! \is_scalar($useFields) || $useFields === '*') { |
|
421 | + if (empty($useFields) || !\is_scalar($useFields) || $useFields === '*') { |
|
422 | 422 | throw (new Exceptions\InvalidFieldException('Invalid insert fields')) |
423 | 423 | ->setData($fields); |
424 | 424 | } |