Passed
Push — master ( b53e1e...d0ec95 )
by Jean-Christophe
02:09
created
Ajax/common/traits/JsUtilsInternalTrait.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,8 +19,9 @@  discard block
 block discarded – undo
19 19
 	 * @param mixed $view
20 20
 	 */
21 21
 	protected function _compileLibrary(BaseGui $library, &$view = NULL) {
22
-		if (isset($view))
23
-			$library->compileHtml($this, $view);
22
+		if (isset($view)) {
23
+					$library->compileHtml($this, $view);
24
+		}
24 25
 		if ($library->isAutoCompile()) {
25 26
 			$library->compile(true);
26 27
 		}
@@ -39,8 +40,9 @@  discard block
 block discarded – undo
39 40
 	}
40 41
 
41 42
 	protected function minify($input) {
42
-		if (trim($input) === "")
43
-			return $input;
43
+		if (trim($input) === "") {
44
+					return $input;
45
+		}
44 46
 		$input = preg_replace(array(
45 47
 			// Remove comment(s)
46 48
 			'#\s*("(?:[^"\\\]++|\\\.)*+"|\'(?:[^\'\\\\]++|\\\.)*+\')\s*|\s*\/\*(?!\!|@cc_on)(?>[\s\S]*?\*\/)\s*|\s*(?<![\:\=])\/\/.*(?=[\n\r]|$)|^\s*|\s*$#',
Please login to merge, or discard this patch.