Code Duplication    Length = 3-3 lines in 2 locations

eZ/Publish/Core/Repository/TrashService.php 1 location

@@ 294-296 (lines=3) @@
291
            throw new InvalidArgumentValue('query->offset', $query->offset, 'Query');
292
        }
293
294
        if ($query->limit !== null && !is_numeric($query->limit)) {
295
            throw new InvalidArgumentValue('query->limit', $query->limit, 'Query');
296
        }
297
298
        $spiTrashItems = $this->persistenceHandler->trashHandler()->findTrashItems(
299
            $query->filter !== null ? $query->filter : null,

eZ/Publish/Core/Repository/URLService.php 1 location

@@ 64-66 (lines=3) @@
61
            throw new InvalidArgumentValue('offset', $query->offset);
62
        }
63
64
        if ($query->limit !== null && !is_numeric($query->limit)) {
65
            throw new InvalidArgumentValue('limit', $query->limit);
66
        }
67
68
        $results = $this->urlHandler->find($query);
69