Code Duplication    Length = 8-8 lines in 2 locations

src/Rest/RestRequest.php 2 locations

@@ 336-343 (lines=8) @@
333
     *
334
     * @return  bool
335
     */
336
    public function isAutocomplete()
337
    {
338
        if (false === $this->hasFilter(self::FILTER_AUTOCOMPLETE)) {
339
            return false;
340
        }
341
        $autocomplete = $this->getFilter(self::FILTER_AUTOCOMPLETE);
342
        return isset($autocomplete[self::FILTER_AUTOCOMPLETE_KEY]) && isset($autocomplete[self::FILTER_AUTOCOMPLETE_VALUE]);
343
    }
344
345
    /**
346
     * Gets the autocomplete attribute key.
@@ 376-383 (lines=8) @@
373
     *
374
     * @return  bool
375
     */
376
    public function isQuery()
377
    {
378
        if (false === $this->hasFilter(self::FILTER_QUERY)) {
379
            return false;
380
        }
381
        $query = $this->getFilter(self::FILTER_QUERY);
382
        return isset($query[self::FILTER_QUERY_CRITERIA]);
383
    }
384
385
    /**
386
     * Gets the query criteria value.