@@ 648-652 (lines=5) @@ | ||
645 | } |
|
646 | if ($indexOfFirstTag !== null) { |
|
647 | $items = array(); |
|
648 | foreach ($words as $pos => $s) { |
|
649 | if ($pos >= 0 && $pos < $indexOfFirstTag) { |
|
650 | $items[] = $s; |
|
651 | } |
|
652 | } |
|
653 | if ($indexOfFirstTag > 0) { |
|
654 | array_splice($words, 0, $indexOfFirstTag); |
|
655 | } |
|
@@ 660-664 (lines=5) @@ | ||
657 | return $items; |
|
658 | } else { |
|
659 | $items = array(); |
|
660 | foreach ($words as $pos => $s) { |
|
661 | if ($pos >= 0 && $pos <= count($words)) { |
|
662 | $items[] = $s; |
|
663 | } |
|
664 | } |
|
665 | array_splice($words, 0, count($words)); |
|
666 | ||
667 | return $items; |