@@ 634-638 (lines=5) @@ | ||
631 | } |
|
632 | if ($indexOfFirstTag !== null) { |
|
633 | $items = array(); |
|
634 | foreach ($words as $pos => $s) { |
|
635 | if ($pos >= 0 && $pos < $indexOfFirstTag) { |
|
636 | $items[] = $s; |
|
637 | } |
|
638 | } |
|
639 | if ($indexOfFirstTag > 0) { |
|
640 | array_splice($words, 0, $indexOfFirstTag); |
|
641 | } |
|
@@ 646-650 (lines=5) @@ | ||
643 | return $items; |
|
644 | } else { |
|
645 | $items = array(); |
|
646 | foreach ($words as $pos => $s) { |
|
647 | if ($pos >= 0 && $pos <= count($words)) { |
|
648 | $items[] = $s; |
|
649 | } |
|
650 | } |
|
651 | array_splice($words, 0, count($words)); |
|
652 | ||
653 | return $items; |