Code Duplication    Length = 4-5 lines in 2 locations

src/Xhgui/Storage/Mongo.php 2 locations

@@ 371-374 (lines=4) @@
368
    protected function getConditions(\Xhgui_Storage_Filter $filter)
369
    {
370
        $conditions = [];
371
        if (null !== $filter->getStartDate()) {
372
            $conditions['meta.request_ts']['$gte'] = new \MongoDate(
373
                $this->getDateTimeFromString($filter->getStartDate())->format('U')
374
            );
375
        }
376
377
        if (null !== $filter->getEndDate()) {
@@ 377-381 (lines=5) @@
374
            );
375
        }
376
377
        if (null !== $filter->getEndDate()) {
378
            $conditions['meta.request_ts']['$lte'] = new \MongoDate(
379
                $this->getDateTimeFromString($filter->getEndDate())->format('U')
380
            );
381
        }
382
383
        if (null !== $filter->getUrl()) {
384
            $conditions['meta.simple_url'] = $filter->getUrl();