Completed
Push — master ( 5dfa57...c7d60b )
by Adam
02:33
created
lib/Caxy/HtmlDiff/ListDiff.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -573,7 +573,7 @@
 block discarded – undo
573 573
     /**
574 574
      * Converts the list (li) content arrays to string.
575 575
      *
576
-     * @param array $listContentArray
576
+     * @param string $listContentArray
577 577
      * @return string
578 578
      */
579 579
     protected function convertListContentArrayToString($listContentArray)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     protected $listIsolatedDiffTags = array();
21 21
 
22 22
     /** @var array */
23
-    protected $isolatedDiffTags = array (
23
+    protected $isolatedDiffTags = array(
24 24
         'ol' => '[[REPLACE_ORDERED_LIST]]',
25 25
         'ul' => '[[REPLACE_UNORDERED_LIST]]',
26 26
         'dl' => '[[REPLACE_DEFINITION_LIST]]',
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
                         $columns = $this->getArrayColumn($bestMatchPercentages, $key);
344 344
                         $thisBestMatches = array_filter(
345 345
                             $columns,
346
-                            function ($v) use ($percent) {
346
+                            function($v) use ($percent) {
347 347
                                 return $v > $percent;
348 348
                             }
349 349
                         );
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
             $match = $word == self::$listPlaceHolder;
591 591
 
592 592
             $content[] = $match
593
-                ? "<li>" . $this->convertListContentArrayToString($listContentArray['kids'][$nestedListCount]) . "</li>"
593
+                ? "<li>".$this->convertListContentArrayToString($listContentArray['kids'][$nestedListCount])."</li>"
594 594
                 : $word;
595 595
 
596 596
             if ($match) {
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
                 $content = $preContent;
638 638
             }
639 639
 
640
-            $returnText[] = is_array($preContent) ? $preContent[0] . $content . $preContent[2] : $content;
640
+            $returnText[] = is_array($preContent) ? $preContent[0].$content.$preContent[2] : $content;
641 641
         }
642 642
         // Return the result.
643 643
         return implode(' ', $returnText);
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
      */
769 769
     protected function addListTypeWrapper($opening = true)
770 770
     {
771
-        return "<" . (!$opening ? "/" : '') . $this->listType . ">";
771
+        return "<".(!$opening ? "/" : '').$this->listType.">";
772 772
     }
773 773
 
774 774
     /**
Please login to merge, or discard this patch.