Completed
Push — master ( 80645f...ecbf0c )
by Ron
03:07
created
src/Builder/Traits/HavingBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,15 +16,15 @@
 block discarded – undo
16 16
 	 * @return $this
17 17
 	 */
18 18
 	public function having($expression, ...$args) {
19
-		if($expression instanceof OptionalExpression) {
20
-			if($expression->isValid()) {
19
+		if ($expression instanceof OptionalExpression) {
20
+			if ($expression->isValid()) {
21 21
 				$this->having[] = [$expression->getExpression(), $expression->getValue()];
22 22
 			}
23
-		} elseif(is_array($expression) || is_object($expression)) {
24
-			if(is_object($expression)) {
23
+		} elseif (is_array($expression) || is_object($expression)) {
24
+			if (is_object($expression)) {
25 25
 				$expression = (array) $expression;
26 26
 			}
27
-			if(count($expression) > 0) {
27
+			if (count($expression) > 0) {
28 28
 				$this->having[] = [$expression, array_slice(func_get_args(), 1)];
29 29
 			}
30 30
 		} else {
Please login to merge, or discard this patch.
src/Builder/Traits/WhereBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@
 block discarded – undo
17 17
 	 * @return $this
18 18
 	 */
19 19
 	public function where($expression, ...$args) {
20
-		if($expression instanceof OptionalExpression) {
21
-			if($expression->isValid()) {
20
+		if ($expression instanceof OptionalExpression) {
21
+			if ($expression->isValid()) {
22 22
 				$this->where[] = [$expression->getExpression(), $expression->getValue()];
23 23
 			}
24
-		} elseif(is_array($expression) || is_object($expression)) {
25
-			if(is_object($expression)) {
24
+		} elseif (is_array($expression) || is_object($expression)) {
25
+			if (is_object($expression)) {
26 26
 				$expression = (array) $expression;
27 27
 			}
28
-			if(count($expression) > 0) {
28
+			if (count($expression) > 0) {
29 29
 				$this->where[] = [$expression, $args];
30 30
 			}
31 31
 		} else {
Please login to merge, or discard this patch.