Test Failed
Branch master (171178)
by David
08:54
created
lib/plugins/builtin/functions/mailto.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
  * @date       2009-07-18
25 25
  * @package    Dwoo
26 26
  */
27
-function Dwoo_Plugin_mailto(Dwoo_Core $dwoo, $address, $text=null, $subject=null, $encode=null, $cc=null, $bcc=null, $newsgroups=null, $followupto=null, $extra=null)
27
+function Dwoo_Plugin_mailto(Dwoo_Core $dwoo, $address, $text = null, $subject = null, $encode = null, $cc = null, $bcc = null, $newsgroups = null, $followupto = null, $extra = null)
28 28
 {
29 29
 	if (empty($address)) {
30 30
 		return '';
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	$address = rtrim($address, '?&');
56 56
 
57 57
 	// output
58
-	switch($encode)
58
+	switch ($encode)
59 59
 	{
60 60
 
61 61
 	case 'none':
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 		$len = strlen($str);
69 69
 
70 70
 		$out = '';
71
-		for ($i=0; $i<$len; $i++) {
71
+		for ($i = 0; $i < $len; $i++) {
72 72
 			$out .= '%'.bin2hex($str[$i]);
73 73
 		}
74 74
 		return '<script type="text/javascript">eval(unescape(\''.$out.'\'));</script>';
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
 		$len = strlen($str);
83 83
 
84 84
 		$out = '<script type="text/javascript">'."\n<!--\ndocument.write(String.fromCharCode(";
85
-		for ($i=0; $i<$len; $i++) {
85
+		for ($i = 0; $i < $len; $i++) {
86 86
 			$out .= ord($str[$i]).',';
87 87
 		}
88
-		return rtrim($out, ',') . "));\n-->\n</script>\n";
88
+		return rtrim($out, ',')."));\n-->\n</script>\n";
89 89
 
90 90
 		break;
91 91
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
 		$out = '<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;';
98 98
 		$len = strlen($address);
99
-		for ($i=0; $i<$len; $i++) {
99
+		for ($i = 0; $i < $len; $i++) {
100 100
 			if (preg_match('#\w#', $address[$i])) {
101 101
 				$out .= '%'.bin2hex($address[$i]);
102 102
 			} else {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 		}
106 106
 		$out .= '" '.$extra.'>';
107 107
 		$len = strlen($text);
108
-		for ($i=0; $i<$len; $i++) {
108
+		for ($i = 0; $i < $len; $i++) {
109 109
 			$out .= '&#x'.bin2hex($text[$i]);
110 110
 		}
111 111
 		return $out.'</a>';
Please login to merge, or discard this patch.
lib/plugins/builtin/functions/indent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * @date       2008-10-23
19 19
  * @package    Dwoo
20 20
  */
21
-function Dwoo_Plugin_indent_compile(Dwoo_Compiler $compiler, $value, $by=4, $char=' ')
21
+function Dwoo_Plugin_indent_compile(Dwoo_Compiler $compiler, $value, $by = 4, $char = ' ')
22 22
 {
23 23
 	return "preg_replace('#^#m', '".str_repeat(substr($char, 1, -1), trim($by, '"\''))."', $value)";
24 24
 }
Please login to merge, or discard this patch.