@@ -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 = null, $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); |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * @return $this |
| 62 | 62 | */ |
| 63 | 63 | public function setExpr(string $expr, ...$args) { |
| 64 | - if(count($args) > 0) { |
|
| 64 | + if (count($args) > 0) { |
|
| 65 | 65 | $this->fields[] = func_get_args(); |
| 66 | 66 | } else { |
| 67 | 67 | $this->fields[] = $expr; |