@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | // match a generic name |
75 | 75 | if (isset($generic_names[$font])) { |
76 | 76 | if ($allowed_fonts === null || isset($allowed_fonts[$font])) { |
77 | - $final .= $font . ', '; |
|
77 | + $final .= $font.', '; |
|
78 | 78 | } |
79 | 79 | continue; |
80 | 80 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | if (ctype_alnum($font) && $font !== '') { |
103 | 103 | // very simple font, allow it in unharmed |
104 | - $final .= $font . ', '; |
|
104 | + $final .= $font.', '; |
|
105 | 105 | continue; |
106 | 106 | } |
107 | 107 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $context |
82 | 82 | ); |
83 | 83 | if ($r !== false) { |
84 | - $final .= $r . ' '; |
|
84 | + $final .= $r.' '; |
|
85 | 85 | $caught[$validator_name] = true; |
86 | 86 | break; |
87 | 87 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $context |
146 | 146 | ); |
147 | 147 | if ($r !== false) { |
148 | - $final .= '/' . $r; |
|
148 | + $final .= '/'.$r; |
|
149 | 149 | } |
150 | 150 | } |
151 | 151 | $final .= ' '; |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $context |
163 | 163 | ); |
164 | 164 | if ($r !== false) { |
165 | - $final .= $r . ' '; |
|
165 | + $final .= $r.' '; |
|
166 | 166 | // processing completed successfully |
167 | 167 | return rtrim($final); |
168 | 168 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | if ($value === false) { |
59 | 59 | continue; |
60 | 60 | } |
61 | - $int = (int)$value; |
|
61 | + $int = (int) $value; |
|
62 | 62 | if ($int > 100) { |
63 | 63 | $value = '100'; |
64 | 64 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | if (ctype_digit($number)) { |
54 | 54 | $number = ltrim($number, '0'); |
55 | - return $number ? $sign . $number : '0'; |
|
55 | + return $number ? $sign.$number : '0'; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | // Period is the only non-numeric character allowed |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | $right = rtrim($right, '0'); |
74 | 74 | |
75 | 75 | if ($right === '') { |
76 | - return $left ? $sign . $left : '0'; |
|
76 | + return $left ? $sign.$left : '0'; |
|
77 | 77 | } elseif (!ctype_digit($right)) { |
78 | 78 | return false; |
79 | 79 | } |
80 | - return $sign . $left . '.' . $right; |
|
80 | + return $sign.$left.'.'.$right; |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $final = ''; |
33 | 33 | foreach ($parts as $part) { |
34 | 34 | if (isset($allowed_values[$part])) { |
35 | - $final .= $part . ' '; |
|
35 | + $final .= $part.' '; |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | $final = rtrim($final); |
@@ -61,7 +61,7 @@ |
||
61 | 61 | 'a', |
62 | 62 | array('href' => str_replace('%s', $bits[$i], $this->docURL)) |
63 | 63 | ); |
64 | - $token[] = new HTMLPurifier_Token_Text('%' . $bits[$i]); |
|
64 | + $token[] = new HTMLPurifier_Token_Text('%'.$bits[$i]); |
|
65 | 65 | $token[] = new HTMLPurifier_Token_End('a'); |
66 | 66 | } |
67 | 67 | } |
@@ -97,7 +97,7 @@ |
||
97 | 97 | break; |
98 | 98 | } |
99 | 99 | // This is safe because we removed the token that triggered this. |
100 | - $this->rewindOffset($b+$deleted); |
|
100 | + $this->rewindOffset($b + $deleted); |
|
101 | 101 | return; |
102 | 102 | } |
103 | 103 | } |
@@ -118,7 +118,7 @@ |
||
118 | 118 | $line = trim($line); |
119 | 119 | } else { |
120 | 120 | // Use default declaration |
121 | - $state = $this->default; |
|
121 | + $state = $this->default; |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 | if ($single) { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | if (ctype_digit($length)) { |
38 | 38 | $length .= 'px'; |
39 | 39 | } |
40 | - $this->prependCSS($attr, $this->cssName . ":$length;"); |
|
40 | + $this->prependCSS($attr, $this->cssName.":$length;"); |
|
41 | 41 | return $attr; |
42 | 42 | } |
43 | 43 | } |