@@ -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 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | { |
36 | 36 | $this->attr = $attr; |
37 | 37 | $this->enumToCSS = $enum_to_css; |
38 | - $this->caseSensitive = (bool)$case_sensitive; |
|
38 | + $this->caseSensitive = (bool) $case_sensitive; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -25,7 +25,7 @@ |
||
25 | 25 | { |
26 | 26 | $this->attr = $attr; |
27 | 27 | if (!isset($this->css[$attr])) { |
28 | - trigger_error(htmlspecialchars($attr) . ' is not valid space attribute'); |
|
28 | + trigger_error(htmlspecialchars($attr).' is not valid space attribute'); |
|
29 | 29 | } |
30 | 30 | } |
31 | 31 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | */ |
69 | 69 | public static function makeFromSerial() |
70 | 70 | { |
71 | - $contents = file_get_contents(HTMLPURIFIER_PREFIX . '/HTMLPurifier/ConfigSchema/schema.ser'); |
|
71 | + $contents = file_get_contents(HTMLPURIFIER_PREFIX.'/HTMLPurifier/ConfigSchema/schema.ser'); |
|
72 | 72 | $r = unserialize($contents); |
73 | 73 | if (!$r) { |
74 | 74 | $hash = sha1($contents); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | protected function scriptCallback($matches) |
32 | 32 | { |
33 | - return $matches[1] . htmlspecialchars($matches[2], ENT_COMPAT, 'UTF-8') . $matches[3]; |
|
33 | + return $matches[1].htmlspecialchars($matches[2], ENT_COMPAT, 'UTF-8').$matches[3]; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | $e = false; |
87 | 87 | if ($config->get('Core.CollectErrors')) { |
88 | - $e =& $context->get('ErrorCollector'); |
|
88 | + $e = & $context->get('ErrorCollector'); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | // for testing synchronization |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | |
99 | 99 | if ($maintain_line_numbers) { |
100 | 100 | // $rcursor, however, is always at the start of a token. |
101 | - $rcursor = $cursor - (int)$inside_tag; |
|
101 | + $rcursor = $cursor - (int) $inside_tag; |
|
102 | 102 | |
103 | 103 | // Column number is cheap, so we calculate it every round. |
104 | 104 | // We're interested at the *end* of the newline string, so |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | } |
324 | 324 | $token = new |
325 | 325 | HTMLPurifier_Token_Text( |
326 | - '<' . |
|
326 | + '<'. |
|
327 | 327 | $this->parseData( |
328 | 328 | substr($html, $cursor) |
329 | 329 | ) |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | */ |
376 | 376 | public function parseAttributeString($string, $config, $context) |
377 | 377 | { |
378 | - $string = (string)$string; // quick typecast |
|
378 | + $string = (string) $string; // quick typecast |
|
379 | 379 | |
380 | 380 | if ($string == '') { |
381 | 381 | return array(); |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | |
384 | 384 | $e = false; |
385 | 385 | if ($config->get('Core.CollectErrors')) { |
386 | - $e =& $context->get('ErrorCollector'); |
|
386 | + $e = & $context->get('ErrorCollector'); |
|
387 | 387 | } |
388 | 388 | |
389 | 389 | // let's see if we can abort as quickly as possible |
@@ -454,7 +454,7 @@ discard block |
||
454 | 454 | $key_begin = $cursor; //we're currently at the start of the key |
455 | 455 | |
456 | 456 | // scroll past all characters that are the key (not whitespace or =) |
457 | - $cursor += strcspn($string, $this->_whitespace . '=', $cursor); |
|
457 | + $cursor += strcspn($string, $this->_whitespace.'=', $cursor); |
|
458 | 458 | |
459 | 459 | $key_end = $cursor; // now at the end of the key |
460 | 460 |