Completed
Push — master ( ba561c...fad0fc )
by Ron
03:20
created
src/Builder/Internal/ConditionBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,16 +12,16 @@
 block discarded – undo
12 12
 	 * @return string
13 13
 	 */
14 14
 	public static function build(Database $db, $query, array $conditions, $token) {
15
-		if(!count($conditions)) {
15
+		if (!count($conditions)) {
16 16
 			return $query;
17 17
 		}
18 18
 		$query .= "{$token}\n";
19 19
 		$arr = [];
20
-		foreach($conditions as $condition) {
20
+		foreach ($conditions as $condition) {
21 21
 			list($expression, $arguments) = $condition;
22
-			if(is_array($expression)) {
23
-				foreach($expression as $key => $value) {
24
-					if($value === null) {
22
+			if (is_array($expression)) {
23
+				foreach ($expression as $key => $value) {
24
+					if ($value === null) {
25 25
 						$arr = self::buildCondition($arr, "ISNULL(`{$key}`)", [$value], $db);
26 26
 					} else {
27 27
 						$arr = self::buildCondition($arr, "`{$key}`=?", [$value], $db);
Please login to merge, or discard this patch.