Passed
Push — master ( b36977...b90fde )
by Arthur
02:35
created
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.
examples/musicbrainz.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@
 block discarded – undo
26 26
     print '<p>The best match we found was for ' . $artist->children('name')->text() . PHP_EOL;
27 27
     print '</p><p>Artist ID: ' . $id . PHP_EOL;
28 28
     print '</p><p>Albums for this artist' . PHP_EOL;
29
-    print '</p><p><a href="'.$album_url . urlencode($id).'">'.$album_url.'</a></p>';
29
+    print '</p><p><a href="' . $album_url . urlencode($id) . '">' . $album_url . '</a></p>';
30 30
     $albums = qp($album_url . urlencode($id))->writeXML();
31 31
     
32 32
     foreach ($albums as $album) {
33 33
       print $album->find('title')->text() . PHP_EOL;
34 34
       // Fixme: Label is broken. See Drupal QueryPath module.
35
-      print '(' . $album->next('label')->text() . ')' .PHP_EOL;
35
+      print '(' . $album->next('label')->text() . ')' . PHP_EOL;
36 36
     }
37 37
   }
38 38
 }
Please login to merge, or discard this patch.