Code Duplication    Length = 3-3 lines in 2 locations

src/Services/Explain/ExplainCommandBuilder.php 2 locations

@@ 69-71 (lines=3) @@
66
            'query' => $query->getFilters(),
67
        ];
68
69
        foreach (['limit', 'hint', 'skip'] as $supportedOption) {
70
            $args += (isset($query->getOptions()[$supportedOption]) ? [$supportedOption => $query->getOptions()[$supportedOption]] : []);
71
        }
72
73
        return $args;
74
    }
@@ 88-90 (lines=3) @@
85
            'filter' => $query->getFilters(),
86
        ];
87
88
        foreach (['sort', 'projection', 'hint', 'skip', 'limit'] as $supportedOption) {
89
            $args += (isset($query->getOptions()[$supportedOption]) ? [$supportedOption => $query->getOptions()[$supportedOption]] : []);
90
        }
91
92
        return $args;
93
    }