Code Duplication    Length = 8-8 lines in 2 locations

src/Rest/RestRequest.php 2 locations

@@ 268-275 (lines=8) @@
265
     *
266
     * @return  bool
267
     */
268
    public function isAutocomplete()
269
    {
270
        if (false === $this->hasFilter(self::FILTER_AUTOCOMPLETE)) {
271
            return false;
272
        }
273
        $autocomplete = $this->getFilter(self::FILTER_AUTOCOMPLETE);
274
        return isset($autocomplete[self::FILTER_AUTOCOMPLETE_KEY]) && isset($autocomplete[self::FILTER_AUTOCOMPLETE_VALUE]);
275
    }
276
277
    /**
278
     * Gets the autocomplete attribute key.
@@ 308-315 (lines=8) @@
305
     *
306
     * @return  bool
307
     */
308
    public function isQuery()
309
    {
310
        if (false === $this->hasFilter(self::FILTER_QUERY)) {
311
            return false;
312
        }
313
        $autocomplete = $this->getFilter(self::FILTER_QUERY);
314
        return isset($autocomplete[self::FILTER_QUERY_CRITERIA]);
315
    }
316
317
    /**
318
     * Gets the query criteria value.