@@ -23,7 +23,7 @@ |
||
23 | 23 | public function __construct($embeds_resource = false) |
24 | 24 | { |
25 | 25 | $this->parser = new HTMLPurifier_URIParser(); |
26 | - $this->embedsResource = (bool)$embeds_resource; |
|
26 | + $this->embedsResource = (bool) $embeds_resource; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $subtags[1] = strtolower($subtags[1]); |
64 | 64 | } |
65 | 65 | |
66 | - $new_string .= '-' . $subtags[1]; |
|
66 | + $new_string .= '-'.$subtags[1]; |
|
67 | 67 | if ($num_subtags == 2) { |
68 | 68 | return $new_string; |
69 | 69 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | if (!ctype_lower($subtags[$i])) { |
78 | 78 | $subtags[$i] = strtolower($subtags[$i]); |
79 | 79 | } |
80 | - $new_string .= '-' . $subtags[$i]; |
|
80 | + $new_string .= '-'.$subtags[$i]; |
|
81 | 81 | } |
82 | 82 | return $new_string; |
83 | 83 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | } |
58 | 58 | $result = $this->single->validate($parts[$i], $config, $context); |
59 | 59 | if ($result !== false) { |
60 | - $final .= $result . ' '; |
|
60 | + $final .= $result.' '; |
|
61 | 61 | $num++; |
62 | 62 | } |
63 | 63 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } elseif ($type !== 'percentage') { |
56 | 56 | return false; |
57 | 57 | } |
58 | - $num = (float)substr($part, 0, $length - 1); |
|
58 | + $num = (float) substr($part, 0, $length - 1); |
|
59 | 59 | if ($num < 0) { |
60 | 60 | $num = 0; |
61 | 61 | } |
@@ -70,14 +70,14 @@ discard block |
||
70 | 70 | } elseif ($type !== 'integer') { |
71 | 71 | return false; |
72 | 72 | } |
73 | - $num = (int)$part; |
|
73 | + $num = (int) $part; |
|
74 | 74 | if ($num < 0) { |
75 | 75 | $num = 0; |
76 | 76 | } |
77 | 77 | if ($num > 255) { |
78 | 78 | $num = 255; |
79 | 79 | } |
80 | - $new_parts[] = (string)$num; |
|
80 | + $new_parts[] = (string) $num; |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 | $new_triad = implode(',', $new_parts); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $hex = substr($color, 1); |
89 | 89 | } else { |
90 | 90 | $hex = $color; |
91 | - $color = '#' . $color; |
|
91 | + $color = '#'.$color; |
|
92 | 92 | } |
93 | 93 | $length = strlen($hex); |
94 | 94 | if ($length !== 3 && $length !== 6) { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | if ($status !== false) { |
62 | 62 | continue; |
63 | 63 | } |
64 | - $r = $this->info['list-style-' . $key]->validate($bit, $config, $context); |
|
64 | + $r = $this->info['list-style-'.$key]->validate($bit, $config, $context); |
|
65 | 65 | if ($r === false) { |
66 | 66 | continue; |
67 | 67 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | if ($result === false) { |
21 | 21 | return $result; |
22 | 22 | } |
23 | - $float = (float)$result; |
|
23 | + $float = (float) $result; |
|
24 | 24 | if ($float < 0.0) { |
25 | 25 | $result = '0'; |
26 | 26 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | } |
44 | 44 | $r = $validator->validate($bit, $config, $context); |
45 | 45 | if ($r !== false) { |
46 | - $ret .= $r . ' '; |
|
46 | + $ret .= $r.' '; |
|
47 | 47 | $done[$propname] = true; |
48 | 48 | break; |
49 | 49 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | if ($status !== false) { |
66 | 66 | continue; |
67 | 67 | } |
68 | - $r = $this->info['background-' . $key]->validate($bit, $config, $context); |
|
68 | + $r = $this->info['background-'.$key]->validate($bit, $config, $context); |
|
69 | 69 | } else { |
70 | 70 | $r = $bit; |
71 | 71 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | if ($caught[$key] === false) { |
77 | 77 | $caught[$key] = ''; |
78 | 78 | } |
79 | - $caught[$key] .= $r . ' '; |
|
79 | + $caught[$key] .= $r.' '; |
|
80 | 80 | } else { |
81 | 81 | $caught[$key] = $r; |
82 | 82 | } |
@@ -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 |