Passed
Push — master ( 81361e...ca0b43 )
by Ron
02:20
created
src/Builder/QueryStatement.php 1 patch
Spacing   +4 added lines, -4 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 = 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);
Please login to merge, or discard this patch.
src/Builder/Update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.