@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | $encodedUrl = preg_replace_callback( |
24 | 24 | '%[^:/@?&=#]+%usD', |
25 | - function ($matches) { |
|
25 | + function($matches) { |
|
26 | 26 | return urlencode($matches[0]); |
27 | 27 | }, |
28 | 28 | $url |
@@ -60,6 +60,6 @@ discard block |
||
60 | 60 | { |
61 | 61 | $domain = idn_to_ascii($domain, IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46); |
62 | 62 | |
63 | - return (bool)filter_var($domain, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME); |
|
63 | + return (bool) filter_var($domain, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME); |
|
64 | 64 | } |
65 | 65 | } |
@@ -156,7 +156,7 @@ |
||
156 | 156 | $this->lastMod = $lastMod; |
157 | 157 | } |
158 | 158 | |
159 | - if ($this->lastMod && (int)$this->lastMod->format("Y") < 0) { |
|
159 | + if ($this->lastMod && (int) $this->lastMod->format("Y") < 0) { |
|
160 | 160 | $this->lastMod = null; |
161 | 161 | } |
162 | 162 |
@@ -839,7 +839,7 @@ |
||
839 | 839 | { |
840 | 840 | $accepted = ['allow', 'deny']; |
841 | 841 | |
842 | - return (bool)in_array($value, $accepted); |
|
842 | + return (bool) in_array($value, $accepted); |
|
843 | 843 | } |
844 | 844 | |
845 | 845 | /** |
@@ -141,7 +141,7 @@ |
||
141 | 141 | */ |
142 | 142 | public function isLast(string $group): bool |
143 | 143 | { |
144 | - return (bool)!isset($this->items[$group][$this->getGroupElement($group) + 1]); |
|
144 | + return (bool) !isset($this->items[$group][$this->getGroupElement($group) + 1]); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |