@@ -505,6 +505,7 @@ discard block |
||
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 |
||
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) |
@@ -20,7 +20,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |