@@ -105,7 +105,7 @@ |
||
105 | 105 | { |
106 | 106 | if ($attribute === \PDO::ATTR_EMULATE_PREPARES && $value !== false) { |
107 | 107 | throw new Exception( |
108 | - 'Cozy Database does not allow the use of emulated prepared statements, ' . |
|
108 | + 'Cozy Database does not allow the use of emulated prepared statements, '. |
|
109 | 109 | 'which would be a security downgrade.', |
110 | 110 | 'CZ099' |
111 | 111 | ); |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | } catch (\PDOException $e) { |
294 | 294 | throw new Exception( |
295 | 295 | $e->getMessage(), |
296 | - (string)$e->getCode(), |
|
296 | + (string) $e->getCode(), |
|
297 | 297 | $this->pdoStatement->errorInfo(), |
298 | 298 | $this->pdoStatement->queryString |
299 | 299 | ); |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | |
354 | 354 | // Fetch the row as object |
355 | 355 | |
356 | - $this->pdoStatement->setFetchMode(\PDO::FETCH_CLASS, $className, (array)$classArguments); |
|
356 | + $this->pdoStatement->setFetchMode(\PDO::FETCH_CLASS, $className, (array) $classArguments); |
|
357 | 357 | |
358 | 358 | return $this->internalFetch(); |
359 | 359 | } |
@@ -501,7 +501,7 @@ discard block |
||
501 | 501 | } catch (\PDOException $e) { |
502 | 502 | throw new Exception( |
503 | 503 | $e->getMessage(), |
504 | - (string)$e->getCode(), |
|
504 | + (string) $e->getCode(), |
|
505 | 505 | $this->pdoStatement->errorInfo(), |
506 | 506 | $this->pdoStatement->queryString |
507 | 507 | ); |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | |
581 | 581 | if ($column_err) { |
582 | 582 | throw new Exception( |
583 | - 'Some columns to group-by (' . implode(', ', $column_err) . |
|
583 | + 'Some columns to group-by ('.implode(', ', $column_err). |
|
584 | 584 | ') are not present in the result set.', |
585 | 585 | 'CZ002', |
586 | 586 | [], |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | } catch (\PDOException $e) { |
635 | 635 | throw new Exception( |
636 | 636 | $e->getMessage(), |
637 | - (string)$e->getCode(), |
|
637 | + (string) $e->getCode(), |
|
638 | 638 | $this->pdoStatement->errorInfo(), |
639 | 639 | $this->pdoStatement->queryString |
640 | 640 | ); |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | |
684 | 684 | $result = []; |
685 | 685 | $groupByCount = 0; |
686 | - $row = $this->pdoStatement->fetchObject($class_name, (array)$class_arguments); |
|
686 | + $row = $this->pdoStatement->fetchObject($class_name, (array) $class_arguments); |
|
687 | 687 | |
688 | 688 | // More validations |
689 | 689 | |
@@ -725,7 +725,7 @@ discard block |
||
725 | 725 | |
726 | 726 | if ($column_err) { |
727 | 727 | throw new Exception( |
728 | - 'Some columns to group-by (' . implode(', ', $column_err) . |
|
728 | + 'Some columns to group-by ('.implode(', ', $column_err). |
|
729 | 729 | ') are not present in the result set.', |
730 | 730 | 'CZ002', |
731 | 731 | [], |
@@ -775,7 +775,7 @@ discard block |
||
775 | 775 | } |
776 | 776 | } |
777 | 777 | |
778 | - $row = $this->pdoStatement->fetchObject($class_name, (array)$class_arguments); |
|
778 | + $row = $this->pdoStatement->fetchObject($class_name, (array) $class_arguments); |
|
779 | 779 | } |
780 | 780 | |
781 | 781 | // Clear state and return result |
@@ -786,7 +786,7 @@ discard block |
||
786 | 786 | } catch (\PDOException $e) { |
787 | 787 | throw new Exception( |
788 | 788 | $e->getMessage(), |
789 | - (string)$e->getCode(), |
|
789 | + (string) $e->getCode(), |
|
790 | 790 | $this->pdoStatement->errorInfo(), |
791 | 791 | $this->pdoStatement->queryString |
792 | 792 | ); |