Code Duplication    Length = 5-5 lines in 2 locations

src/Xhgui/Storage/Mongo.php 2 locations

@@ 311-315 (lines=5) @@
308
    protected function getConditions(\Xhgui_Storage_Filter $filter)
309
    {
310
        $conditions = [];
311
        if (null !== $filter->getStartDate()) {
312
            $conditions['meta.request_ts']['$gte'] = new \MongoDate(
313
                $this->getDateTimeFromString($filter->getStartDate(), 'start')->format('U')
314
            );
315
        }
316
317
        if (null !== $filter->getEndDate()) {
318
            $conditions['meta.request_ts']['$lte'] = new \MongoDate(
@@ 317-321 (lines=5) @@
314
            );
315
        }
316
317
        if (null !== $filter->getEndDate()) {
318
            $conditions['meta.request_ts']['$lte'] = new \MongoDate(
319
                $this->getDateTimeFromString($filter->getEndDate(), 'end')->format('U')
320
            );
321
        }
322
323
        if (null !== $filter->getUrl()) {
324
            $conditions['meta.simple_url'] = new \MongoRegex('/'.preg_quote($filter->getUrl(), '/').'/');