Code Duplication    Length = 5-5 lines in 2 locations

src/Admin/Traits/Mapper.php 2 locations

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