Passed
Pull Request — master (#12)
by Jake
04:29
created
src/IOException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/DOM.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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:
Please login to merge, or discard this patch.
src/ParseException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/DOMQuery.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1231,10 +1231,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.