Completed
Branch 1.2 (459185)
by David
04:06
created
lib/plugins/builtin/blocks/foreachelse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 	public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type)
24 24
 	{
25
-		$with =& $compiler->findBlock('foreach', true);
25
+		$with = & $compiler->findBlock('foreach', true);
26 26
 
27 27
 		$params['initialized'] = true;
28 28
 		$compiler->injectBlock($type, $params);
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 			return '';
37 37
 		}
38 38
 
39
-		$block =& $compiler->getCurrentBlock();
40
-		$block['params']['hasElse'] = Dwoo_Compiler::PHP_OPEN."else {\n".Dwoo_Compiler::PHP_CLOSE . $content . Dwoo_Compiler::PHP_OPEN."\n}".Dwoo_Compiler::PHP_CLOSE;
39
+		$block = & $compiler->getCurrentBlock();
40
+		$block['params']['hasElse'] = Dwoo_Compiler::PHP_OPEN."else {\n".Dwoo_Compiler::PHP_CLOSE.$content.Dwoo_Compiler::PHP_OPEN."\n}".Dwoo_Compiler::PHP_CLOSE;
41 41
 		return '';
42 42
 	}
43 43
 }
Please login to merge, or discard this patch.
lib/plugins/builtin/blocks/for.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -21,16 +21,16 @@  discard block
 block discarded – undo
21 21
  */
22 22
 class Dwoo_Plugin_for extends Dwoo_Block_Plugin implements Dwoo_ICompilable_Block, Dwoo_IElseable
23 23
 {
24
-	public static $cnt=0;
24
+	public static $cnt = 0;
25 25
 
26
-	public function init($name, $from, $to=null, $step=1, $skip=0)
26
+	public function init($name, $from, $to = null, $step = 1, $skip = 0)
27 27
 	{
28 28
 	}
29 29
 
30 30
 	public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type)
31 31
 	{
32 32
 		// get block params and save the current template pointer to use it in the postProcessing method
33
-		$currentBlock =& $compiler->getCurrentBlock();
33
+		$currentBlock = & $compiler->getCurrentBlock();
34 34
 		$currentBlock['params']['tplPointer'] = $compiler->getPointer();
35 35
 
36 36
 		return '';
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 		$cnt = self::$cnt++;
67 67
 
68 68
 		// builds pre processing output for
69
-		$out = Dwoo_Compiler::PHP_OPEN . "\n".'$_for'.$cnt.'_from = '.$from.';'.
69
+		$out = Dwoo_Compiler::PHP_OPEN."\n".'$_for'.$cnt.'_from = '.$from.';'.
70 70
 										"\n".'$_for'.$cnt.'_to = '.$to.';'.
71 71
 										"\n".'$_for'.$cnt.'_step = abs('.$step.');'.
72 72
 										"\n".'if (is_numeric($_for'.$cnt.'_from) && !is_numeric($_for'.$cnt.'_to)) { $this->triggerError(\'For requires the <em>to</em> parameter when using a numerical <em>from</em>\'); }'.
@@ -74,13 +74,13 @@  discard block
 block discarded – undo
74 74
 		// adds for properties
75 75
 		if ($usesAny) {
76 76
 			$out .= "\n".'$this->globals["for"]['.$name.'] = array'."\n(";
77
-			if ($usesIndex) $out .="\n\t".'"index"		=> 0,';
78
-			if ($usesIteration) $out .="\n\t".'"iteration"		=> 1,';
79
-			if ($usesFirst) $out .="\n\t".'"first"		=> null,';
80
-			if ($usesLast) $out .="\n\t".'"last"		=> null,';
81
-			if ($usesShow) $out .="\n\t".'"show"		=> $tmp_shows,';
82
-			if ($usesTotal) $out .="\n\t".'"total"		=> $this->isArray($_for'.$cnt.'_from) ? floor($this->count($_for'.$cnt.'_from) / $_for'.$cnt.'_step) : (is_numeric($_for'.$cnt.'_from) ? abs(($_for'.$cnt.'_to + 1 - $_for'.$cnt.'_from)/$_for'.$cnt.'_step) : 0),';
83
-			$out.="\n);\n".'$_for'.$cnt.'_glob =& $this->globals["for"]['.$name.'];';
77
+			if ($usesIndex) $out .= "\n\t".'"index"		=> 0,';
78
+			if ($usesIteration) $out .= "\n\t".'"iteration"		=> 1,';
79
+			if ($usesFirst) $out .= "\n\t".'"first"		=> null,';
80
+			if ($usesLast) $out .= "\n\t".'"last"		=> null,';
81
+			if ($usesShow) $out .= "\n\t".'"show"		=> $tmp_shows,';
82
+			if ($usesTotal) $out .= "\n\t".'"total"		=> $this->isArray($_for'.$cnt.'_from) ? floor($this->count($_for'.$cnt.'_from) / $_for'.$cnt.'_step) : (is_numeric($_for'.$cnt.'_from) ? abs(($_for'.$cnt.'_to + 1 - $_for'.$cnt.'_from)/$_for'.$cnt.'_step) : 0),';
83
+			$out .= "\n);\n".'$_for'.$cnt.'_glob =& $this->globals["for"]['.$name.'];';
84 84
 		}
85 85
 		// checks if for must be looped
86 86
 		$out .= "\n".'if ($tmp_shows)'."\n{";
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 		$out .= "\n\t".'for ($this->scope['.$name.'] = $_for'.$cnt.'_from; $this->scope['.$name.'] '.$condition.' $_for'.$cnt.'_to; $this->scope['.$name.'] '.$incrementer.'= $_for'.$cnt.'_step)'."\n\t{";
118 118
 		// updates properties
119 119
 		if ($usesIndex) {
120
-			$out .="\n\t\t".'$_for'.$cnt.'_glob["index"] = $this->scope['.$name.'];';
120
+			$out .= "\n\t\t".'$_for'.$cnt.'_glob["index"] = $this->scope['.$name.'];';
121 121
 		}
122 122
 		if ($usesFirst) {
123 123
 			$out .= "\n\t\t".'$_for'.$cnt.'_glob["first"] = (string) ($_for'.$cnt.'_glob["iteration"] === 1);';
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
 
131 131
 		// build post processing output and cache it
132
-		$postOut = Dwoo_Compiler::PHP_OPEN . '/* -- for end output */';
132
+		$postOut = Dwoo_Compiler::PHP_OPEN.'/* -- for end output */';
133 133
 		// update properties
134 134
 		if ($usesIteration) {
135 135
 			$postOut .= "\n\t\t".'$_for'.$cnt.'_glob["iteration"]+=1;';
@@ -141,6 +141,6 @@  discard block
 block discarded – undo
141 141
 			$postOut .= $params['hasElse'];
142 142
 		}
143 143
 
144
-		return $out . $content . $postOut;
144
+		return $out.$content.$postOut;
145 145
 	}
146 146
 }
Please login to merge, or discard this patch.
Braces   +18 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,12 +74,24 @@
 block discarded – undo
74 74
 		// adds for properties
75 75
 		if ($usesAny) {
76 76
 			$out .= "\n".'$this->globals["for"]['.$name.'] = array'."\n(";
77
-			if ($usesIndex) $out .="\n\t".'"index"		=> 0,';
78
-			if ($usesIteration) $out .="\n\t".'"iteration"		=> 1,';
79
-			if ($usesFirst) $out .="\n\t".'"first"		=> null,';
80
-			if ($usesLast) $out .="\n\t".'"last"		=> null,';
81
-			if ($usesShow) $out .="\n\t".'"show"		=> $tmp_shows,';
82
-			if ($usesTotal) $out .="\n\t".'"total"		=> $this->isArray($_for'.$cnt.'_from) ? floor($this->count($_for'.$cnt.'_from) / $_for'.$cnt.'_step) : (is_numeric($_for'.$cnt.'_from) ? abs(($_for'.$cnt.'_to + 1 - $_for'.$cnt.'_from)/$_for'.$cnt.'_step) : 0),';
77
+			if ($usesIndex) {
78
+				$out .="\n\t".'"index"		=> 0,';
79
+			}
80
+			if ($usesIteration) {
81
+				$out .="\n\t".'"iteration"		=> 1,';
82
+			}
83
+			if ($usesFirst) {
84
+				$out .="\n\t".'"first"		=> null,';
85
+			}
86
+			if ($usesLast) {
87
+				$out .="\n\t".'"last"		=> null,';
88
+			}
89
+			if ($usesShow) {
90
+				$out .="\n\t".'"show"		=> $tmp_shows,';
91
+			}
92
+			if ($usesTotal) {
93
+				$out .="\n\t".'"total"		=> $this->isArray($_for'.$cnt.'_from) ? floor($this->count($_for'.$cnt.'_from) / $_for'.$cnt.'_step) : (is_numeric($_for'.$cnt.'_from) ? abs(($_for'.$cnt.'_to + 1 - $_for'.$cnt.'_from)/$_for'.$cnt.'_step) : 0),';
94
+			}
83 95
 			$out.="\n);\n".'$_for'.$cnt.'_glob =& $this->globals["for"]['.$name.'];';
84 96
 		}
85 97
 		// checks if for must be looped
Please login to merge, or discard this patch.
lib/plugins/builtin/blocks/with.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
  */
41 41
 class Dwoo_Plugin_with extends Dwoo_Block_Plugin implements Dwoo_ICompilable_Block, Dwoo_IElseable
42 42
 {
43
-	protected static $cnt=0;
43
+	protected static $cnt = 0;
44 44
 
45 45
 	public function init($var)
46 46
 	{
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
 		$compiler->setScope($rparams['var']);
60 60
 
61 61
 
62
-		$pre = Dwoo_Compiler::PHP_OPEN. 'if ('.$cparams['var'].')'."\n{\n".
62
+		$pre = Dwoo_Compiler::PHP_OPEN.'if ('.$cparams['var'].')'."\n{\n".
63 63
 			'$_with'.(self::$cnt).' = $this->setScope("'.$rparams['var'].'");'.
64 64
 			"\n/* -- start with output */\n".Dwoo_Compiler::PHP_CLOSE;
65 65
 
66
-		$post = Dwoo_Compiler::PHP_OPEN. "\n/* -- end with output */\n".
66
+		$post = Dwoo_Compiler::PHP_OPEN."\n/* -- end with output */\n".
67 67
 			'$this->setScope($_with'.(self::$cnt++).', true);'.
68 68
 			"\n}\n".Dwoo_Compiler::PHP_CLOSE;
69 69
 
@@ -71,6 +71,6 @@  discard block
 block discarded – undo
71 71
 			$post .= $params['hasElse'];
72 72
 		}
73 73
 
74
-		return $pre . $content . $post;
74
+		return $pre.$content.$post;
75 75
 	}
76 76
 }
Please login to merge, or discard this patch.
lib/plugins/builtin/blocks/else.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 		$preContent = '';
39 39
 		while (true) {
40 40
 			$preContent .= $compiler->removeTopBlock();
41
-			$block =& $compiler->getCurrentBlock();
41
+			$block = & $compiler->getCurrentBlock();
42 42
 			if (!$block) {
43 43
 				throw new Dwoo_Compilation_Exception($compiler, 'An else block was found but it was not preceded by an if or other else-able construct');
44 44
 			}
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
 			return '';
60 60
 		}
61 61
 
62
-		$block =& $compiler->getCurrentBlock();
63
-		$block['params']['hasElse'] = Dwoo_Compiler::PHP_OPEN."else {\n".Dwoo_Compiler::PHP_CLOSE . $content . Dwoo_Compiler::PHP_OPEN."\n}".Dwoo_Compiler::PHP_CLOSE;
62
+		$block = & $compiler->getCurrentBlock();
63
+		$block['params']['hasElse'] = Dwoo_Compiler::PHP_OPEN."else {\n".Dwoo_Compiler::PHP_CLOSE.$content.Dwoo_Compiler::PHP_OPEN."\n}".Dwoo_Compiler::PHP_CLOSE;
64 64
 		return '';
65 65
 	}
66 66
 }
Please login to merge, or discard this patch.
lib/plugins/builtin/blocks/template.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 		$params['*'] = $parsedParams;
45 45
 		$params['uuid'] = uniqid();
46 46
 		$compiler->addTemplatePlugin($params['name'], $parsedParams, $params['uuid']);
47
-		$currentBlock =& $compiler->getCurrentBlock();
47
+		$currentBlock = & $compiler->getCurrentBlock();
48 48
 		$currentBlock['params'] = $params;
49 49
 		return '';
50 50
 	}
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
 		$cleanup = '/* -- template end output */ $dwoo->setScope($_scope, true);';
59 59
 		foreach ($params['*'] as $param=>$defValue) {
60 60
 			if ($defValue === null) {
61
-				$paramstr.=', $'.$param;
61
+				$paramstr .= ', $'.$param;
62 62
 			} else {
63
-				$paramstr.=', $'.$param.' = '.$defValue;
63
+				$paramstr .= ', $'.$param.' = '.$defValue;
64 64
 			}
65 65
 			$init .= '$dwoo->scope[\''.$param.'\'] = $'.$param.";\n";
66 66
 		}
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,9 @@
 block discarded – undo
27 27
 	{
28 28
 		$params = $compiler->getCompiledParams($params);
29 29
 		$parsedParams = array();
30
-		if (!isset($params['*']))
31
-			$params['*'] = array();
30
+		if (!isset($params['*'])) {
31
+					$params['*'] = array();
32
+		}
32 33
 		foreach ($params['*'] as $param=>$defValue) {
33 34
 			if (is_numeric($param)) {
34 35
 				$param = $defValue;
Please login to merge, or discard this patch.
lib/plugins/builtin/blocks/auto_escape.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 	public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type)
28 28
 	{
29 29
 		$params = $compiler->getCompiledParams($params);
30
-		switch(strtolower(trim((string) $params['enabled'], '"\''))) {
30
+		switch (strtolower(trim((string) $params['enabled'], '"\''))) {
31 31
 
32 32
 		case 'on':
33 33
 		case 'true':
Please login to merge, or discard this patch.
lib/plugins/builtin/blocks/loop.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -40,16 +40,16 @@  discard block
 block discarded – undo
40 40
  */
41 41
 class Dwoo_Plugin_loop extends Dwoo_Block_Plugin implements Dwoo_ICompilable_Block, Dwoo_IElseable
42 42
 {
43
-	public static $cnt=0;
43
+	public static $cnt = 0;
44 44
 
45
-	public function init($from, $name='default')
45
+	public function init($from, $name = 'default')
46 46
 	{
47 47
 	}
48 48
 
49 49
 	public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type)
50 50
 	{
51 51
 		// get block params and save the current template pointer to use it in the postProcessing method
52
-		$currentBlock =& $compiler->getCurrentBlock();
52
+		$currentBlock = & $compiler->getCurrentBlock();
53 53
 		$currentBlock['params']['tplPointer'] = $compiler->getPointer();
54 54
 
55 55
 		return '';
@@ -83,17 +83,17 @@  discard block
 block discarded – undo
83 83
 		$cnt = self::$cnt++;
84 84
 
85 85
 		// builds pre processing output
86
-		$pre = Dwoo_Compiler::PHP_OPEN . "\n".'$_loop'.$cnt.'_data = '.$src.';';
86
+		$pre = Dwoo_Compiler::PHP_OPEN."\n".'$_loop'.$cnt.'_data = '.$src.';';
87 87
 		// adds foreach properties
88 88
 		if ($usesAny) {
89 89
 			$pre .= "\n".'$this->globals["loop"]['.$name.'] = array'."\n(";
90
-			if ($usesIndex) $pre .="\n\t".'"index"		=> 0,';
91
-			if ($usesIteration) $pre .="\n\t".'"iteration"		=> 1,';
92
-			if ($usesFirst) $pre .="\n\t".'"first"		=> null,';
93
-			if ($usesLast) $pre .="\n\t".'"last"		=> null,';
94
-			if ($usesShow) $pre .="\n\t".'"show"		=> $this->isTraversable($_loop'.$cnt.'_data, true),';
95
-			if ($usesTotal) $pre .="\n\t".'"total"		=> $this->count($_loop'.$cnt.'_data),';
96
-			$pre.="\n);\n".'$_loop'.$cnt.'_glob =& $this->globals["loop"]['.$name.'];';
90
+			if ($usesIndex) $pre .= "\n\t".'"index"		=> 0,';
91
+			if ($usesIteration) $pre .= "\n\t".'"iteration"		=> 1,';
92
+			if ($usesFirst) $pre .= "\n\t".'"first"		=> null,';
93
+			if ($usesLast) $pre .= "\n\t".'"last"		=> null,';
94
+			if ($usesShow) $pre .= "\n\t".'"show"		=> $this->isTraversable($_loop'.$cnt.'_data, true),';
95
+			if ($usesTotal) $pre .= "\n\t".'"total"		=> $this->count($_loop'.$cnt.'_data),';
96
+			$pre .= "\n);\n".'$_loop'.$cnt.'_glob =& $this->globals["loop"]['.$name.'];';
97 97
 		}
98 98
 		// checks if the loop must be looped
99 99
 		$pre .= "\n".'if ($this->isTraversable($_loop'.$cnt.'_data'.(isset($params['hasElse']) ? ', true' : '').') == true)'."\n{";
@@ -106,23 +106,23 @@  discard block
 block discarded – undo
106 106
 		if ($usesLast) {
107 107
 			$pre .= "\n\t\t".'$_loop'.$cnt.'_glob["last"] = (string) ($_loop'.$cnt.'_glob["iteration"] === $_loop'.$cnt.'_glob["total"]);';
108 108
 		}
109
-		$pre .= "\n\t\t".'$_loop'.$cnt.'_scope = $this->setScope(array("-loop-"));' . "\n/* -- loop start output */\n".Dwoo_Compiler::PHP_CLOSE;
109
+		$pre .= "\n\t\t".'$_loop'.$cnt.'_scope = $this->setScope(array("-loop-"));'."\n/* -- loop start output */\n".Dwoo_Compiler::PHP_CLOSE;
110 110
 
111 111
 		// build post processing output and cache it
112
-		$post = Dwoo_Compiler::PHP_OPEN . "\n".'/* -- loop end output */'."\n\t\t".'$this->setScope($_loop'.$cnt.'_scope, true);';
112
+		$post = Dwoo_Compiler::PHP_OPEN."\n".'/* -- loop end output */'."\n\t\t".'$this->setScope($_loop'.$cnt.'_scope, true);';
113 113
 		// update properties
114 114
 		if ($usesIndex) {
115
-			$post.="\n\t\t".'$_loop'.$cnt.'_glob["index"]+=1;';
115
+			$post .= "\n\t\t".'$_loop'.$cnt.'_glob["index"]+=1;';
116 116
 		}
117 117
 		if ($usesIteration) {
118
-			$post.="\n\t\t".'$_loop'.$cnt.'_glob["iteration"]+=1;';
118
+			$post .= "\n\t\t".'$_loop'.$cnt.'_glob["iteration"]+=1;';
119 119
 		}
120 120
 		// end loop
121
-		$post .= "\n\t}\n}\n" . Dwoo_Compiler::PHP_CLOSE;
121
+		$post .= "\n\t}\n}\n".Dwoo_Compiler::PHP_CLOSE;
122 122
 		if (isset($params['hasElse'])) {
123 123
 			$post .= $params['hasElse'];
124 124
 		}
125 125
 
126
-		return $pre . $content . $post;
126
+		return $pre.$content.$post;
127 127
 	}
128 128
 }
Please login to merge, or discard this patch.
Braces   +18 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,12 +87,24 @@
 block discarded – undo
87 87
 		// adds foreach properties
88 88
 		if ($usesAny) {
89 89
 			$pre .= "\n".'$this->globals["loop"]['.$name.'] = array'."\n(";
90
-			if ($usesIndex) $pre .="\n\t".'"index"		=> 0,';
91
-			if ($usesIteration) $pre .="\n\t".'"iteration"		=> 1,';
92
-			if ($usesFirst) $pre .="\n\t".'"first"		=> null,';
93
-			if ($usesLast) $pre .="\n\t".'"last"		=> null,';
94
-			if ($usesShow) $pre .="\n\t".'"show"		=> $this->isTraversable($_loop'.$cnt.'_data, true),';
95
-			if ($usesTotal) $pre .="\n\t".'"total"		=> $this->count($_loop'.$cnt.'_data),';
90
+			if ($usesIndex) {
91
+				$pre .="\n\t".'"index"		=> 0,';
92
+			}
93
+			if ($usesIteration) {
94
+				$pre .="\n\t".'"iteration"		=> 1,';
95
+			}
96
+			if ($usesFirst) {
97
+				$pre .="\n\t".'"first"		=> null,';
98
+			}
99
+			if ($usesLast) {
100
+				$pre .="\n\t".'"last"		=> null,';
101
+			}
102
+			if ($usesShow) {
103
+				$pre .="\n\t".'"show"		=> $this->isTraversable($_loop'.$cnt.'_data, true),';
104
+			}
105
+			if ($usesTotal) {
106
+				$pre .="\n\t".'"total"		=> $this->count($_loop'.$cnt.'_data),';
107
+			}
96 108
 			$pre.="\n);\n".'$_loop'.$cnt.'_glob =& $this->globals["loop"]['.$name.'];';
97 109
 		}
98 110
 		// checks if the loop must be looped
Please login to merge, or discard this patch.
lib/plugins/builtin/blocks/withelse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 	public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type)
24 24
 	{
25
-		$with =& $compiler->findBlock('with', true);
25
+		$with = & $compiler->findBlock('with', true);
26 26
 
27 27
 		$params['initialized'] = true;
28 28
 		$compiler->injectBlock($type, $params);
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 			return '';
37 37
 		}
38 38
 
39
-		$block =& $compiler->getCurrentBlock();
40
-		$block['params']['hasElse'] = Dwoo_Compiler::PHP_OPEN."else {\n".Dwoo_Compiler::PHP_CLOSE . $content . Dwoo_Compiler::PHP_OPEN."\n}".Dwoo_Compiler::PHP_CLOSE;
39
+		$block = & $compiler->getCurrentBlock();
40
+		$block['params']['hasElse'] = Dwoo_Compiler::PHP_OPEN."else {\n".Dwoo_Compiler::PHP_CLOSE.$content.Dwoo_Compiler::PHP_OPEN."\n}".Dwoo_Compiler::PHP_CLOSE;
41 41
 		return '';
42 42
 	}
43 43
 }
Please login to merge, or discard this patch.
lib/plugins/builtin/helper.array.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
  * @date       2008-10-23
24 24
  * @package    Dwoo
25 25
  */
26
-function Dwoo_Plugin_array_compile(Dwoo_Compiler $compiler, array $rest=array())
26
+function Dwoo_Plugin_array_compile(Dwoo_Compiler $compiler, array $rest = array())
27 27
 {
28 28
 	$out = array();
29 29
 	foreach ($rest as $key => $value) {
Please login to merge, or discard this patch.