Code Duplication    Length = 7-7 lines in 2 locations

src/Rest/RestRequest.php 2 locations

@@ 327-333 (lines=7) @@
324
     *
325
     * @return  string|null
326
     */
327
    public function getAutocompleteKey()
328
    {
329
        if (false === $this->isAutocomplete()) {
330
            return null;
331
        }
332
        return $this->getFilter(self::FILTER_AUTOCOMPLETE)[self::FILTER_AUTOCOMPLETE_KEY];
333
    }
334
335
    /**
336
     * Gets the autocomplete search value.
@@ 340-346 (lines=7) @@
337
     *
338
     * @return  string|null
339
     */
340
    public function getAutocompleteValue()
341
    {
342
        if (false === $this->isAutocomplete()) {
343
            return null;
344
        }
345
        return $this->getFilter(self::FILTER_AUTOCOMPLETE)[self::FILTER_AUTOCOMPLETE_VALUE];
346
    }
347
348
    /**
349
     * Determines if this has the database query filter enabled.