Code Duplication    Length = 7-7 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Tools/Console/Command/QueryCommand.php 2 locations

@@ 81-87 (lines=7) @@
78
        $qb->hydrate((bool) $input->getOption('hydrate'));
79
80
        $skip = $input->getOption('skip');
81
        if ($skip !== null) {
82
            if (! is_numeric($skip)) {
83
                throw new LogicException("Option 'skip' must contain an integer value");
84
            }
85
86
            $qb->skip((int) $skip);
87
        }
88
89
        $limit = $input->getOption('limit');
90
        if ($limit !== null) {
@@ 90-96 (lines=7) @@
87
        }
88
89
        $limit = $input->getOption('limit');
90
        if ($limit !== null) {
91
            if (! is_numeric($limit)) {
92
                throw new LogicException("Option 'limit' must contain an integer value");
93
            }
94
95
            $qb->limit((int) $limit);
96
        }
97
98
        $cloner = new VarCloner();
99
        $dumper = new CliDumper(static function (string $payload) use ($output) : void {