Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 60-62 (lines=3) @@
57
            throw new UnauthorizedException('url', 'view');
58
        }
59
60
        if ($query->offset !== null && !is_numeric($query->offset)) {
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);

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

@@ 310-312 (lines=3) @@
307
            }
308
        }
309
310
        if ($query->offset !== null && !is_numeric($query->offset)) {
311
            throw new InvalidArgumentValue('query->offset', $query->offset, 'Query');
312
        }
313
314
        if ($query->limit !== null && !is_numeric($query->limit)) {
315
            throw new InvalidArgumentValue('query->limit', $query->limit, 'Query');