Code Duplication    Length = 5-5 lines in 2 locations

Admin/Traits/Mapper.php 2 locations

@@ 691-695 (lines=5) @@
688
                        $fields = [];
689
690
                        // takes the ordered fields
691
                        foreach ($blast[$class][ListMapper::class]['add']['_options']['fieldsOrder'] as $field) {
692
                            if (in_array($field, $tmp)) {
693
                                $fields[] = $field;
694
                            }
695
                        }
696
697
                        // then the forgotten fields as they come
698
                        foreach ($tmp as $field) {
@@ 698-702 (lines=5) @@
695
                        }
696
697
                        // then the forgotten fields as they come
698
                        foreach ($tmp as $field) {
699
                            if (!in_array($field, $blast[$class][ListMapper::class]['add']['_options']['fieldsOrder'])) {
700
                                $fields[] = $field;
701
                            }
702
                        }
703
                    }
704
                    $this->exportFields[$format] = $fields;
705
                }