Completed
Push — master ( c7d60b...084747 )
by Josh
02:55
created
lib/Caxy/HtmlDiff/ListDiff.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -505,6 +505,7 @@  discard block
 block discarded – undo
505 505
      * @param string $oldList
506 506
      * @param array $match
507 507
      * @param array $index
508
+     * @param string $type
508 509
      * @return string
509 510
      */
510 511
     protected function addListElementToContent($newList, $oldList, array $match, array $index, $type)
@@ -588,7 +589,7 @@  discard block
 block discarded – undo
588 589
     /**
589 590
      * Converts the list (li) content arrays to string.
590 591
      *
591
-     * @param array $listContentArray
592
+     * @param string $listContentArray
592 593
      * @return string
593 594
      */
594 595
     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]]',
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
                         $columns = $this->getArrayColumn($bestMatchPercentages, $key);
358 358
                         $thisBestMatches = array_filter(
359 359
                             $columns,
360
-                            function ($v) use ($percent) {
360
+                            function($v) use ($percent) {
361 361
                                 return $v > $percent;
362 362
                             }
363 363
                         );
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
             $match = $word == self::$listPlaceHolder;
606 606
 
607 607
             $content[] = $match
608
-                ? "<li>" . $this->convertListContentArrayToString($listContentArray['kids'][$nestedListCount]) . "</li>"
608
+                ? "<li>".$this->convertListContentArrayToString($listContentArray['kids'][$nestedListCount])."</li>"
609 609
                 : $word;
610 610
 
611 611
             if ($match) {
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
                 $content = $preContent;
653 653
             }
654 654
 
655
-            $returnText[] = is_array($preContent) ? $preContent[0] . $content . $preContent[2] : $content;
655
+            $returnText[] = is_array($preContent) ? $preContent[0].$content.$preContent[2] : $content;
656 656
         }
657 657
         // Return the result.
658 658
         return implode(' ', $returnText);
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
         if ($opening) {
788 788
             return $this->newParentTag ?: $this->oldParentTag;
789 789
         } else {
790
-            return "<" . (!$opening ? "/" : '') . $this->listType . ">";
790
+            return "<".(!$opening ? "/" : '').$this->listType.">";
791 791
         }
792 792
     }
793 793
 
Please login to merge, or discard this patch.