Passed
Push — master ( 536c13...e2bf6b )
by Ron
01:46
created
src/Builder/QueryStatement.php 1 patch
Spacing   +6 added lines, -6 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);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 		$this->exceptionHandler(function() use ($params) {
67 67
 			$this->queryLoggers->logRegion($this->query, function() use ($params) {
68 68
 				$response = $this->statement->execute($params);
69
-				if(!$response) {
69
+				if (!$response) {
70 70
 					throw new SqlException('Execution returned with "false".');
71 71
 				}
72 72
 			});
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
 	 */
83 83
 	public function fetchAll($fetchStyle = PDO::FETCH_ASSOC, $fetchArgument = null, array $ctorArgs = []): array {
84 84
 		$result = $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);
89 89
 		});
90
-		if(is_bool($result)) {
90
+		if (is_bool($result)) {
91 91
 			return [];
92 92
 		}
93 93
 		return $result;
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	public function getColumnMeta(int $columnNo): ?array {
141 141
 		return $this->exceptionHandler(function() use ($columnNo) {
142 142
 			$columnMeta = $this->statement->getColumnMeta($columnNo);
143
-			if($columnMeta === false) {
143
+			if ($columnMeta === false) {
144 144
 				return null;
145 145
 			}
146 146
 			return $columnMeta;
Please login to merge, or discard this patch.