Completed
Push — master ( 7ed867...85d12a )
by Jean-Christophe
02:44
created
Ajax/common/html/PropertyWrapper.php 1 patch
Braces   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,8 +25,9 @@  discard block
 block discarded – undo
25 25
 
26 26
 	private static function containsElement($input) {
27 27
 		foreach ( $input as $v ) {
28
-			if (\is_object($v) || \is_array($v))
29
-				return true;
28
+			if (\is_object($v) || \is_array($v)) {
29
+							return true;
30
+			}
30 31
 		}
31 32
 		return false;
32 33
 	}
@@ -44,12 +45,13 @@  discard block
 block discarded – undo
44 45
 
45 46
 	public static function wrapObjects($input, $js=NULL, $separator=' ', $valueQuote='"') {
46 47
 		return implode($separator, array_map(function ($v) use($js, $separator, $valueQuote) {
47
-			if ($v instanceof BaseHtml)
48
-				return $v->compile($js);
49
-			elseif (\is_array($v)) {
48
+			if ($v instanceof BaseHtml) {
49
+							return $v->compile($js);
50
+			} elseif (\is_array($v)) {
50 51
 				return self::wrap($v, $js, $separator, $valueQuote);
51
-			} elseif(!\is_callable($v))
52
-				return $v;
52
+			} elseif(!\is_callable($v)) {
53
+							return $v;
54
+			}
53 55
 		}, $input));
54 56
 	}
55 57
 }
Please login to merge, or discard this patch.