@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | $begin = ''; |
| 210 | 210 | } |
| 211 | 211 | if (!is_array($value)) { |
| 212 | - $this->getXMLWriter()->writeElement($begin . $element, (string)$value); |
|
| 212 | + $this->getXMLWriter()->writeElement($begin . $element, (string) $value); |
|
| 213 | 213 | } else { |
| 214 | 214 | if (isset($value['_namespace'])) { |
| 215 | 215 | $this->getXMLWriter()->startElementNS($value['_namespace'], $value['_element'], null); |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | $this->addElement($el, $val); |
| 244 | 244 | } |
| 245 | 245 | } else { |
| 246 | - $this->getXMLWriter()->text((string)$value['_value']); |
|
| 246 | + $this->getXMLWriter()->text((string) $value['_value']); |
|
| 247 | 247 | } |
| 248 | 248 | } |
| 249 | 249 | } else { |
@@ -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 | /** |