Test Failed
Pull Request — master (#96)
by Sven
03:34
created
lib/Caxy/HtmlDiff/AbstractDiff.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -527,7 +527,9 @@
 block discarded – undo
527 527
                     $mode = 'tag';
528 528
                 } elseif (preg_match("/\s/u", $character)) {
529 529
                     $current_word .= $character;
530
-                    if (!$keepNewLines) $current_word = preg_replace('/\s+/Su', ' ', $current_word);
530
+                    if (!$keepNewLines) {
531
+                        $current_word = preg_replace('/\s+/Su', ' ', $current_word);
532
+                    }
531 533
                 } else {
532 534
                     if ($current_word != '') {
533 535
                         $words[] = $current_word;
Please login to merge, or discard this patch.
lib/Caxy/HtmlDiff/ListDiffLines.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,12 +4,9 @@
 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
-use KubAT\PhpSimple\HtmlDomParser;
13 10
 use LogicException;
14 11
 
15 12
 class ListDiffLines extends AbstractDiff
Please login to merge, or discard this patch.