Passed
Pull Request — master (#96)
by Sven
03:02
created
lib/Caxy/HtmlDiff/AbstractDiff.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     public function initPurifier($defaultPurifierSerializerCache = null)
130 130
     {
131 131
         if (null !== $this->purifierConfig) {
132
-            $HTMLPurifierConfig  = $this->purifierConfig;
132
+            $HTMLPurifierConfig = $this->purifierConfig;
133 133
         } else {
134 134
             $HTMLPurifierConfig = HTMLPurifier_Config::createDefault();
135 135
         }
Please login to merge, or discard this patch.
lib/Caxy/HtmlDiff/ListDiffLines.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,13 +4,10 @@
 block discarded – undo
4 4
 
5 5
 use Caxy\HtmlDiff\Strategy\ListItemMatchStrategy;
6 6
 use DOMDocument;
7
-use DOMDocumentFragment;
8 7
 use DOMElement;
9 8
 use DOMNode;
10
-use DOMNodeList;
11 9
 use DOMText;
12 10
 use DOMXPath;
13
-use KubAT\PhpSimple\HtmlDomParser;
14 11
 use LogicException;
15 12
 
16 13
 class ListDiffLines extends AbstractDiff
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
     protected function findListNode(DOMDocument $dom) : DOMNode
100 100
     {
101
-        $xPathQuery = '//' . implode('|//', self::LIST_TAG_NAMES);
101
+        $xPathQuery = '//'.implode('|//', self::LIST_TAG_NAMES);
102 102
         $xPath      = new DOMXPath($dom);
103 103
         $listNodes  = $xPath->query($xPathQuery);
104 104
 
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
     {
386 386
         $bufferDom = new DOMDocument();
387 387
 
388
-        foreach($node->childNodes as $childNode)
388
+        foreach ($node->childNodes as $childNode)
389 389
         {
390 390
             $bufferDom->appendChild($bufferDom->importNode($childNode, true));
391 391
         }
Please login to merge, or discard this patch.