Code Duplication    Length = 5-5 lines in 2 locations

src/Xhgui/Storage/Mongo.php 2 locations

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