Code Duplication    Length = 5-5 lines in 2 locations

src/Xhgui/Storage/Mongo.php 2 locations

@@ 344-348 (lines=5) @@
341
    protected function getConditions(\Xhgui_Storage_Filter $filter)
342
    {
343
        $conditions = [];
344
        if (null !== $filter->getStartDate()) {
345
            $conditions['meta.request_ts']['$gte'] = new \MongoDate(
346
                $this->getDateTimeFromString($filter->getStartDate(), 'start')->format('U')
347
            );
348
        }
349
350
        if (null !== $filter->getEndDate()) {
351
            $conditions['meta.request_ts']['$lte'] = new \MongoDate(
@@ 350-354 (lines=5) @@
347
            );
348
        }
349
350
        if (null !== $filter->getEndDate()) {
351
            $conditions['meta.request_ts']['$lte'] = new \MongoDate(
352
                $this->getDateTimeFromString($filter->getEndDate(), 'end')->format('U')
353
            );
354
        }
355
356
        if (null !== $filter->getUrl()) {
357
            $conditions['meta.simple_url'] = $filter->getUrl();