Code Duplication    Length = 12-12 lines in 2 locations

src/Filterer/Filterer.php 2 locations

@@ 171-182 (lines=12) @@
168
        foreach ($tree_to_filter as $row_index => $row_to_filter) {
169
            array_push($path, $row_index);
170
171
            if ('before' == $options['recurse']) {
172
                if ($children = $this->getChildren($row_to_filter)) {
173
                    $filtered_children = $this->foreachRow(
174
                        $root_cases,
175
                        $children,
176
                        $path,
177
                        $options
178
                    );
179
180
                    $this->setChildren($row_to_filter, $filtered_children);
181
                }
182
            }
183
184
            $matching_case = $this->applyOnRow($root_cases, $row_to_filter, $path, $options);
185
@@ 198-209 (lines=12) @@
195
                // row out of scope
196
            }
197
198
            if ('after' == $options['recurse']) {
199
                if ($children = $this->getChildren($row_to_filter)) {
200
                    $filtered_children = $this->foreachRow(
201
                        $root_cases,
202
                        $children,
203
                        $path,
204
                        $options
205
                    );
206
207
                    $this->setChildren($row_to_filter, $filtered_children);
208
                }
209
            }
210
211
            array_pop($path);
212
        }