Test Failed
Push — master ( e36b3b...0b8f87 )
by Federico
02:21
created
dist/jate/functions/block.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@  discard block
 block discarded – undo
5 5
     return ob_start();
6 6
   }
7 7
 
8
-  function jBlockClose( $_type = "html", $_parameters = [] ) {
8
+  function jBlockClose($_type = "html", $_parameters = []) {
9 9
     return jBlockEnd($_type, $_parameters);
10 10
   }
11 11
 
12
-  function jBlockFile( $_path, $_parameters = [] ) {
12
+  function jBlockFile($_path, $_parameters = []) {
13 13
     try {
14 14
       $temp = Parser::parseFile($_path, $_parameters);
15 15
     } catch (Exception $e) {
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     return $temp;
19 19
   }
20 20
 
21
-  function view( $_path, $_parameters = [] ) {
21
+  function view($_path, $_parameters = []) {
22 22
     try {
23 23
       $temp = jBlockFile("bundles/views/$_path", $_parameters);
24 24
     } catch (Exception $e) {
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     return $temp;
28 28
   }
29 29
 
30
-  function sql( $_path, $_parameters = [] ) {
30
+  function sql($_path, $_parameters = []) {
31 31
     try {
32 32
       $temp = jBlockFileMan("bundles/sql/$_path", "sql", $_parameters);
33 33
     } catch (Exception $e) {
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     return $temp;
37 37
   }
38 38
 
39
-  function jBlockFileMan( $_path, $_type, $_parameters = [] ) {
39
+  function jBlockFileMan($_path, $_type, $_parameters = []) {
40 40
     try {
41 41
       $temp = Parser::parseFileMan($_path, $_parameters, $_type);
42 42
     } catch (Exception $e) {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     return $temp;
46 46
   }
47 47
 
48
-  function jBlockEnd( $_type = "html", $_parameters = [] ) {
48
+  function jBlockEnd($_type = "html", $_parameters = []) {
49 49
     $text = ob_get_clean();
50 50
     try {
51 51
       $temp = Parser::parseText($text, $_parameters, $_type);
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
   }
57 57
 
58 58
   function minifyOutput($_buffer) {
59
-    $search = array ( '/\>[^\S ]+/s', '/[^\S ]+\</s', '/(\s)+/s' );
60
-    $replace = array ( '>', '<', '\\1' );
61
-    if (preg_match("/\<html/i",$_buffer) == 1 && preg_match("/\<\/html\>/i",$_buffer) == 1)
59
+    $search = array('/\>[^\S ]+/s', '/[^\S ]+\</s', '/(\s)+/s');
60
+    $replace = array('>', '<', '\\1');
61
+    if (preg_match("/\<html/i", $_buffer) == 1 && preg_match("/\<\/html\>/i", $_buffer) == 1)
62 62
       $_buffer = preg_replace($search, $replace, utf8_decode($_buffer));
63 63
     return utf8_encode($_buffer);
64 64
   }
Please login to merge, or discard this patch.