Code Duplication    Length = 3-3 lines in 2 locations

src/Provider/DoctrineProvider.php 2 locations

@@ 292-294 (lines=3) @@
289
            FROM uecode_qpush_message
290
            where queue = "' . $this->name . '"';
291
292
        if (isset($data['from']) && $data['from'] !== null) {
293
            $sql = $sql . ' and created >= "' . $data['from'] . '"';
294
        }
295
296
        if (isset($data['to']) && $data['to'] !== null) {
297
            $sql = $sql . ' and created <= "' . $data['to'] . '"';
@@ 296-298 (lines=3) @@
293
            $sql = $sql . ' and created >= "' . $data['from'] . '"';
294
        }
295
296
        if (isset($data['to']) && $data['to'] !== null) {
297
            $sql = $sql . ' and created <= "' . $data['to'] . '"';
298
        }
299
300
        $sql = $sql . ' group by floor(unix_timestamp(created)/' . $period . ')';
301
        $sql = $sql . ' order by floor(unix_timestamp(created)/' . $period . ') ASC';