| @@ 812-815 (lines=4) @@ | ||
| 809 | } // range count of children |
|
| 810 | elseif ($childOptions['less_than'] !== null && |
|
| 811 | $childOptions['greater_than'] !== null) { |
|
| 812 | if (count($children) >= $childOptions['less_than'] || |
|
| 813 | count($children) <= $childOptions['greater_than']) { |
|
| 814 | break; |
|
| 815 | } |
|
| 816 | } // less than a given count |
|
| 817 | elseif ($childOptions['less_than'] !== null) { |
|
| 818 | if (count($children) >= $childOptions['less_than']) { |
|
| @@ 817-821 (lines=5) @@ | ||
| 814 | break; |
|
| 815 | } |
|
| 816 | } // less than a given count |
|
| 817 | elseif ($childOptions['less_than'] !== null) { |
|
| 818 | if (count($children) >= $childOptions['less_than']) { |
|
| 819 | break; |
|
| 820 | } |
|
| 821 | } // more than a given count |
|
| 822 | elseif ($childOptions['greater_than'] !== null) { |
|
| 823 | if (count($children) <= $childOptions['greater_than']) { |
|
| 824 | break; |
|
| @@ 822-826 (lines=5) @@ | ||
| 819 | break; |
|
| 820 | } |
|
| 821 | } // more than a given count |
|
| 822 | elseif ($childOptions['greater_than'] !== null) { |
|
| 823 | if (count($children) <= $childOptions['greater_than']) { |
|
| 824 | break; |
|
| 825 | } |
|
| 826 | } |
|
| 827 | ||
| 828 | // match each child against a specific tag |
|
| 829 | if ($childOptions['only']) { |
|