Passed
Branch master (7391d7)
by Arthur
03:02
created
src/CSS/DOMTraverser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
             $splos->rewind();
83 83
             $first = $splos->current();
84 84
             if ($first instanceof \DOMDocument) {
85
-                $this->dom = $first;//->documentElement;
85
+                $this->dom = $first; //->documentElement;
86 86
             } else {
87
-                $this->dom = $first->ownerDocument;//->documentElement;
87
+                $this->dom = $first->ownerDocument; //->documentElement;
88 88
             }
89 89
 
90 90
             $this->scopeNode = $scopeNode;
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
                 return $this->combineAnyDescendant($node, $selectors, $index);
269 269
             case SimpleSelector::ANOTHER_SELECTOR:
270 270
                 // fprintf(STDOUT, "Next selector: %s\n", $selectors[$index]);
271
-                return $this->matchesSimpleSelector($node, $selectors, $index);;
271
+                return $this->matchesSimpleSelector($node, $selectors, $index); ;
272 272
         }
273 273
 
274 274
         return false;
Please login to merge, or discard this patch.
src/CSS/QueryPathEventHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
                 }
301 301
             }
302 302
         }
303
-        $this->matches = $found;//UniqueElementList::get($found);
303
+        $this->matches = $found; //UniqueElementList::get($found);
304 304
         $this->findAnyElement = false;
305 305
     }
306 306
 
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
             }
319 319
         }
320 320
 
321
-        $this->matches = $found;//UniqueElementList::get($found);
321
+        $this->matches = $found; //UniqueElementList::get($found);
322 322
         $this->findAnyElement = false;
323 323
     }
324 324
 
@@ -1272,7 +1272,7 @@  discard block
 block discarded – undo
1272 1272
                         $line = trim($lines[0]);
1273 1273
                         if (!empty($line)) {
1274 1274
                             $o->textContent = $line;
1275
-                            $found->attach($o);//trim($lines[0]);
1275
+                            $found->attach($o); //trim($lines[0]);
1276 1276
                         }
1277 1277
                     }
1278 1278
                 }
Please login to merge, or discard this patch.
src/Extension/QPXML.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
                 $element->appendChild($cdata);
69 69
             }
70 70
 
71
-            return $this->qp;;
71
+            return $this->qp; ;
72 72
         }
73 73
 
74 74
         // Look for CDATA sections.
Please login to merge, or discard this patch.
src/qp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     require __DIR__ . '/QueryPath.php';
62 62
   }
63 63
   else {
64
-    spl_autoload_register(function ($klass) {
64
+    spl_autoload_register(function($klass) {
65 65
       $parts = explode('\\', $klass);
66 66
 
67 67
       // Issue #164
Please login to merge, or discard this patch.
patches/QueryPath-RyanMahoney.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -693,7 +693,7 @@
 block discarded – undo
693 693
                 $winner = array_merge($winner, $local_ele);
694 694
             }
695 695
         }
696
-        $this->setMatches($winner);//array($winner);
696
+        $this->setMatches($winner); //array($winner);
697 697
 
698 698
         return $this;
699 699
     }
Please login to merge, or discard this patch.
examples/at_a_glance.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 require '../src/qp.php';
3
-$xml =<<<EOF
3
+$xml = <<<EOF
4 4
 <?xml version="1.0"?>
5 5
 <table>
6 6
   <tr id="row1">
Please login to merge, or discard this patch.
examples/rss.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 require_once '../src/QueryPath/QueryPath.php';
22 22
 
23 23
 // This is the stub RSS document.
24
-$rss_stub ='<?xml version="1.0"?>
24
+$rss_stub = '<?xml version="1.0"?>
25 25
 <rss version="2.0" 
26 26
   xmlns:dc="http://purl.org/dc/elements/1.1/">
27 27
   <channel>
Please login to merge, or discard this patch.
examples/simple_example.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,6 @@
 block discarded – undo
32 32
       ->children('p')
33 33
       ->after('<p id="new">new paragraph</p>');
34 34
 
35
-         echo ($qp->find('p')->children('p')->html()) ? 'print' : 'dont print';;
35
+         echo ($qp->find('p')->children('p')->html()) ? 'print' : 'dont print'; ;
36 36
          
37 37
 //         ->writeHTML();
Please login to merge, or discard this patch.
examples/odt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,5 +50,5 @@
 block discarded – undo
50 50
 print PHP_EOL . "Ordered List" . PHP_EOL;
51 51
 $i = 0;
52 52
 foreach ($doc->top()->find('text|list[text|style-name="L2"]:first text|p[text|style-name="P2"]') as $bullet) {
53
-  print '  ' . (++$i) . '. '. $bullet->text() . PHP_EOL;
53
+  print '  ' . (++$i) . '. ' . $bullet->text() . PHP_EOL;
54 54
 }
55 55
\ No newline at end of file
Please login to merge, or discard this patch.