Test Failed
Push — master ( 9ef3e7...50e2e5 )
by Justin
26:38 queued 22:56
created
packages/com.jukusoft.cms.dwoo/dwoo/lib/Dwoo/Plugins/Blocks/PluginLang.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -32,49 +32,49 @@
 block discarded – undo
32 32
 
33 33
 class PluginLang extends Plugin implements ICompilableBlock {
34 34
 
35
-	/**
36
-	 * @param Compiler $compiler
37
-	 * @param mixed    $value
38
-	 * @param mixed    $var
39
-	 *
40
-	 * @return string
41
-	 */
42
-	/*public static function compile(Compiler $compiler, $value, $domain = "") {
35
+    /**
36
+     * @param Compiler $compiler
37
+     * @param mixed    $value
38
+     * @param mixed    $var
39
+     *
40
+     * @return string
41
+     */
42
+    /*public static function compile(Compiler $compiler, $value, $domain = "") {
43 43
 		return 'Translator::translate(' . $value . ', ' . $domain . ')';
44 44
 	}*/
45 45
 
46
-	// parameters go here if you need any settings
47
-	public function init() {
48
-		//
49
-	}
46
+    // parameters go here if you need any settings
47
+    public function init() {
48
+        //
49
+    }
50 50
 
51
-	// this can be ommitted, it's called once when the block ends, don't implement if you don't need it
52
-	public function end() {
53
-		//
54
-	}
51
+    // this can be ommitted, it's called once when the block ends, don't implement if you don't need it
52
+    public function end() {
53
+        //
54
+    }
55 55
 
56
-	// this is called when the block is required to output it's data, it should read $this->buffer, process it and return it
57
-	/*public function process(){
56
+    // this is called when the block is required to output it's data, it should read $this->buffer, process it and return it
57
+    /*public function process(){
58 58
 		var_dump($this->buffer);
59 59
 
60 60
 		return strtoupper($this->buffer);
61 61
 	}*/
62 62
 
63
-	public static function preProcessing(Compiler $compiler, array $params, $prepend, $append, $type) {
64
-		var_dump($params);
63
+    public static function preProcessing(Compiler $compiler, array $params, $prepend, $append, $type) {
64
+        var_dump($params);
65 65
 
66
-		var_dump(Compiler::PHP_OPEN . $prepend . " echo Translator::translate(" . $params[0] . "); " . $append . Compiler::PHP_CLOSE);
67
-		exit;
68
-	}
66
+        var_dump(Compiler::PHP_OPEN . $prepend . " echo Translator::translate(" . $params[0] . "); " . $append . Compiler::PHP_CLOSE);
67
+        exit;
68
+    }
69 69
 
70
-	public static function postProcessing(Compiler $compiler, array $params, $prepend, $append, $content) {
71
-		/**
72
-		 * the block is responsible for outputting it's entire content (passed as $content),
73
-		 * so you can transform it and then return it, but in this case we don't because
74
-		 * we want the content to be uppercased at runtime and not at compile time
75
-		 */
76
-		return $content . Compiler::PHP_OPEN . $prepend . ' $tmp = ob_get_clean(); echo strtoupper($tmp); ' . $append . Compiler::PHP_CLOSE;
77
-	}
70
+    public static function postProcessing(Compiler $compiler, array $params, $prepend, $append, $content) {
71
+        /**
72
+         * the block is responsible for outputting it's entire content (passed as $content),
73
+         * so you can transform it and then return it, but in this case we don't because
74
+         * we want the content to be uppercased at runtime and not at compile time
75
+         */
76
+        return $content . Compiler::PHP_OPEN . $prepend . ' $tmp = ob_get_clean(); echo strtoupper($tmp); ' . $append . Compiler::PHP_CLOSE;
77
+    }
78 78
 
79 79
 }
80 80
 
Please login to merge, or discard this patch.