Completed
Push — master ( ecbf0c...c8753a )
by Ron
02:19
created
src/Builder/Traits/ConditionDefinition.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@  discard block
 block discarded – undo
12 12
 	 * @return $this
13 13
 	 */
14 14
 	protected function addCondition(Closure $addFn, $expression, ...$args) {
15
-		if($expression instanceof OptionalExpression) {
16
-			if($expression->isValid()) {
15
+		if ($expression instanceof OptionalExpression) {
16
+			if ($expression->isValid()) {
17 17
 				$addFn($expression->getExpression(), $expression->getValue());
18 18
 			}
19
-		} elseif(is_object($expression)) {
19
+		} elseif (is_object($expression)) {
20 20
 			$this->addAsArray($addFn, (array) $expression, $args);
21
-		} elseif(is_array($expression)) {
21
+		} elseif (is_array($expression)) {
22 22
 			$this->addAsArray($addFn, $expression, $args);
23 23
 		} else {
24 24
 			$addFn($expression, $args);
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	 * @param array $args
33 33
 	 */
34 34
 	private function addAsArray(Closure $addFn, array $expression, array $args) {
35
-		if(count($expression) > 0) {
35
+		if (count($expression) > 0) {
36 36
 			$addFn($expression, $args);
37 37
 		}
38 38
 	}
Please login to merge, or discard this patch.
src/Builder/Traits/HavingBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 	 * @return $this
18 18
 	 */
19 19
 	public function having($expression, ...$args) {
20
-		$fn = function (...$args) { $this->having[] = $args; };
20
+		$fn = function(...$args) { $this->having[] = $args; };
21 21
 		return $this->addCondition($fn, $expression, ...$args);
22 22
 	}
23 23
 
Please login to merge, or discard this patch.
src/Builder/Traits/WhereBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 	 * @return $this
18 18
 	 */
19 19
 	public function where($expression, ...$args) {
20
-		$fn = function (...$args) { $this->where[] = $args; };
20
+		$fn = function(...$args) { $this->where[] = $args; };
21 21
 		return $this->addCondition($fn, $expression, ...$args);
22 22
 	}
23 23
 
Please login to merge, or discard this patch.