Passed
Push — master ( 4cf5b0...99f0ae )
by Ron
02:04
created
src/Builder/QueryStatement.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.