@@ -47,10 +47,10 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public function setFetchMode(int $mode = PDO::FETCH_ASSOC, $arg0 = null, ?array $arg1 = null) { |
| 49 | 49 | $args = [$mode]; |
| 50 | - if($arg0 !== null) { |
|
| 50 | + if ($arg0 !== null) { |
|
| 51 | 51 | $args[] = $arg0; |
| 52 | 52 | } |
| 53 | - if($arg1 !== null) { |
|
| 53 | + if ($arg1 !== null) { |
|
| 54 | 54 | $args[] = $arg1; |
| 55 | 55 | } |
| 56 | 56 | $this->statement->setFetchMode(...$args); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $timer = microtime(true); |
| 68 | 68 | $response = $this->statement->execute($params); |
| 69 | 69 | $this->queryLoggers->log($this->query, microtime(true)-$timer); |
| 70 | - if(!$response) { |
|
| 70 | + if (!$response) { |
|
| 71 | 71 | throw new SqlException('Execution returned with "false".'); |
| 72 | 72 | } |
| 73 | 73 | }); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | public function fetchAll($fetchStyle = PDO::FETCH_ASSOC, $fetchArgument = null, array $ctorArgs = []): array { |
| 84 | 84 | return $this->exceptionHandler(function() use ($fetchStyle, $fetchArgument, $ctorArgs) { |
| 85 | - if($fetchArgument !== null) { |
|
| 85 | + if ($fetchArgument !== null) { |
|
| 86 | 86 | return $this->statement->fetchAll($fetchStyle, $fetchArgument, ...$ctorArgs); |
| 87 | 87 | } |
| 88 | 88 | return $this->statement->fetchAll($fetchStyle); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | public function getColumnMeta(int $columnNo): ?array { |
| 137 | 137 | return $this->exceptionHandler(function() use ($columnNo) { |
| 138 | 138 | $columnMeta = $this->statement->getColumnMeta($columnNo); |
| 139 | - if($columnMeta === false) { |
|
| 139 | + if ($columnMeta === false) { |
|
| 140 | 140 | return null; |
| 141 | 141 | } |
| 142 | 142 | return $columnMeta; |