@@ -18,6 +18,6 @@ |
||
| 18 | 18 | public static function initializeFromError($errno, $errstr, $errfile, $errline, $context = null) |
| 19 | 19 | { |
| 20 | 20 | $class = __CLASS__; |
| 21 | - throw new $class($errno, (int) $errstr, $errfile, $errline); |
|
| 21 | + throw new $class($errno, (int)$errstr, $errfile, $errline); |
|
| 22 | 22 | } |
| 23 | 23 | } |
@@ -68,10 +68,10 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | public function __construct($document = NULL, $string = '', $options = []) |
| 70 | 70 | { |
| 71 | - // Backwards compatibility fix for PHP8+ |
|
| 72 | - if (is_null($string)) { |
|
| 73 | - $string = ''; |
|
| 74 | - } |
|
| 71 | + // Backwards compatibility fix for PHP8+ |
|
| 72 | + if (is_null($string)) { |
|
| 73 | + $string = ''; |
|
| 74 | + } |
|
| 75 | 75 | |
| 76 | 76 | $string = trim($string); |
| 77 | 77 | $this->options = $options + Options::get() + $this->options; |
@@ -416,10 +416,10 @@ discard block |
||
| 416 | 416 | */ |
| 417 | 417 | private function parseXMLFile($filename, $flags = 0, $context = NULL) |
| 418 | 418 | { |
| 419 | - // Backwards compatibility fix for PHP8+ |
|
| 420 | - if (is_null($flags)) { |
|
| 421 | - $flags = 0; |
|
| 422 | - } |
|
| 419 | + // Backwards compatibility fix for PHP8+ |
|
| 420 | + if (is_null($flags)) { |
|
| 421 | + $flags = 0; |
|
| 422 | + } |
|
| 423 | 423 | |
| 424 | 424 | // If a context is specified, we basically have to do the reading in |
| 425 | 425 | // two steps: |
@@ -45,6 +45,6 @@ |
||
| 45 | 45 | public static function initializeFromError($errno, $errstr, $errfile, $errline, $context = null) |
| 46 | 46 | { |
| 47 | 47 | $class = __CLASS__; |
| 48 | - throw new $class($errno, (int) $errstr, $errfile, $errline); |
|
| 48 | + throw new $class($errno, (int)$errstr, $errfile, $errline); |
|
| 49 | 49 | } |
| 50 | 50 | } |
@@ -1231,10 +1231,10 @@ |
||
| 1231 | 1231 | */ |
| 1232 | 1232 | public function writeXML($path = NULL, $options = 0) |
| 1233 | 1233 | { |
| 1234 | - // Backwards compatibility fix for PHP8+ |
|
| 1235 | - if (is_null($options)) { |
|
| 1236 | - $options = 0; |
|
| 1237 | - } |
|
| 1234 | + // Backwards compatibility fix for PHP8+ |
|
| 1235 | + if (is_null($options)) { |
|
| 1236 | + $options = 0; |
|
| 1237 | + } |
|
| 1238 | 1238 | |
| 1239 | 1239 | if ($path === NULL) { |
| 1240 | 1240 | print $this->document->saveXML(NULL, $options); |