GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — 2.x ( 5ad793...cb2a56 )
by Patrick D
08:54 queued 06:21
created
src/DOMDoc.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     $this->setErrorChecking($error_checking);
42 42
     
43
-    if(is_object($xml)){
43
+    if (is_object($xml)) {
44 44
       $class = get_class($xml);
45 45
       if ($class == 'DOMElement') {
46 46
         $this->appendChild($this->importNode($xml, true));
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         @$this->loadXML($xml, LIBXML_COMPACT);
63 63
       }
64 64
       else if (!$this->loadXML($xml, LIBXML_COMPACT)) {
65
-        trigger_error('BetterDOMDocument\DOMDoc: Could not load: ' . htmlspecialchars($xml), E_USER_WARNING);
65
+        trigger_error('BetterDOMDocument\DOMDoc: Could not load: '.htmlspecialchars($xml), E_USER_WARNING);
66 66
       }
67 67
     }
68 68
 
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
         $prefix = $parts[0]; 
328 328
         if (isset($namespaces[$prefix])) {
329 329
           if (!strpos($root_match[0], "xmlns:$prefix")) {
330
-            $new_root .= " xmlns:$prefix='" . $namespaces[$prefix] . "'";             
330
+            $new_root .= " xmlns:$prefix='".$namespaces[$prefix]."'";             
331 331
           }
332 332
         }
333 333
       }
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
 
337 337
     $dom = new DOMDoc($xml, $this->auto_ns);
338 338
     if (!$dom->documentElement) {
339
-      trigger_error('BetterDomDocument\DOMDoc Error: Invalid XML: ' . $xml);
339
+      trigger_error('BetterDomDocument\DOMDoc Error: Invalid XML: '.$xml);
340 340
     }
341 341
     $element = $dom->documentElement;
342 342
     
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
     $this->createContext($newnode, 'xml');
449 449
     $this->createContext($context, 'xpath');
450 450
     
451
-    if (!$context){
451
+    if (!$context) {
452 452
       return FALSE;
453 453
     }
454 454
     
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
     
527 527
     if ($node) {
528 528
       if (is_array($node) || get_class($node) == 'BetterDOMDocument\DOMList') {
529
-        foreach($node as $item) {
529
+        foreach ($node as $item) {
530 530
           $this->remove($item);
531 531
         }
532 532
       }
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
       $xsl = '
599 599
         <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
600 600
           <xsl:template match="*">
601
-            <xsl:element name="' . $prefix . ':{local-name()}" namespace="' . $url . '">
601
+            <xsl:element name="' . $prefix.':{local-name()}" namespace="'.$url.'">
602 602
              <xsl:copy-of select="@*"/>
603 603
              <xsl:apply-templates/>
604 604
             </xsl:element>
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
     }
611 611
     else {
612 612
       // @@TODO: Report the correct calling file and number
613
-      throw new Exception("Changing the namespace of a " . get_class($node) . " is not supported");
613
+      throw new Exception("Changing the namespace of a ".get_class($node)." is not supported");
614 614
     }
615 615
   }
616 616
 
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
       foreach ($this->getNamespaces() as $prefix => $url) {
686 686
         $namespaces = '';
687 687
         if ($prefix != 'xsl' && $prefix != 'xlink') {
688
-          $namespaces .= 'xmlns:' . $prefix . '="' . $url. '" ';
688
+          $namespaces .= 'xmlns:'.$prefix.'="'.$url.'" ';
689 689
         }
690 690
         $xslOptions = str_replace("||namespaces||", $namespaces, $xslOptions);
691 691
       }
@@ -724,8 +724,8 @@  discard block
 block discarded – undo
724 724
 
725 725
     // Copy namespace prefixes
726 726
     foreach ($this->ns as $prefix => $namespace) {
727
-      if (!$context->hasAttribute('xmlns:' . $prefix)) {
728
-        $context->setAttribute('xmlns:' . $prefix, $namespace);
727
+      if (!$context->hasAttribute('xmlns:'.$prefix)) {
728
+        $context->setAttribute('xmlns:'.$prefix, $namespace);
729 729
       }
730 730
     }
731 731
     
@@ -735,7 +735,7 @@  discard block
 block discarded – undo
735 735
       // The types listed are html "void" elements. 
736 736
       // Find any of these elements that have no child nodes and are therefore candidates for self-closing, replace them with a self-closed version. 
737 737
       $pattern = '<(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)(\b[^<]*)><\/\1>';
738
-      return preg_replace('/' . $pattern . '/', '<$1$2/>', $output);
738
+      return preg_replace('/'.$pattern.'/', '<$1$2/>', $output);
739 739
     }
740 740
     else {
741 741
       return $this->saveXML($context, LIBXML_NOEMPTYTAG);
@@ -776,7 +776,7 @@  discard block
 block discarded – undo
776 776
 
777 777
     // If it's an "XML" document, then get namespaces via xpath
778 778
     $xpath = new \DOMXPath($this);
779
-    foreach($xpath->query('namespace::*') as $namespace) {
779
+    foreach ($xpath->query('namespace::*') as $namespace) {
780 780
       if (!empty($namespace->prefix)) {
781 781
         if ($namespace->prefix != 'xml' && $namespace->nodeValue != 'http://www.w3.org/XML/1998/namespace') {
782 782
           $this->registerNamespace($namespace->prefix, $namespace->nodeValue);
@@ -814,8 +814,8 @@  discard block
 block discarded – undo
814 814
             } 
815 815
           }
816 816
         }
817
-        else if (substr($attr->name,0,6) == 'xmlns:') {
818
-          $prefix = substr($attr->name,6);
817
+        else if (substr($attr->name, 0, 6) == 'xmlns:') {
818
+          $prefix = substr($attr->name, 6);
819 819
           $this->registerNamespace($prefix, $attr->value); 
820 820
         }
821 821
       }
Please login to merge, or discard this patch.