@@ 159-170 (lines=12) @@ | ||
156 | foreach ($tree_to_filter as $row_index => $row_to_filter) { |
|
157 | array_push($path, $row_index); |
|
158 | ||
159 | if ('before' == $options['recurse']) { |
|
160 | if ($children = $this->getChildren($row_to_filter)) { |
|
161 | $filtered_children = $this->foreachRow( |
|
162 | $root_cases, |
|
163 | $children, |
|
164 | $path, |
|
165 | $options |
|
166 | ); |
|
167 | ||
168 | $this->setChildren($row_to_filter, $filtered_children); |
|
169 | } |
|
170 | } |
|
171 | ||
172 | $matching_case = $this->applyOnRow($root_cases, $row_to_filter, $path, $options); |
|
173 | ||
@@ 186-197 (lines=12) @@ | ||
183 | // row out of scope |
|
184 | } |
|
185 | ||
186 | if ('after' == $options['recurse']) { |
|
187 | if ($children = $this->getChildren($row_to_filter)) { |
|
188 | $filtered_children = $this->foreachRow( |
|
189 | $root_cases, |
|
190 | $children, |
|
191 | $path, |
|
192 | $options |
|
193 | ); |
|
194 | ||
195 | $this->setChildren($row_to_filter, $filtered_children); |
|
196 | } |
|
197 | } |
|
198 | ||
199 | array_pop($path); |
|
200 | } |