Code Duplication    Length = 7-7 lines in 2 locations

src/Rest/RestRequest.php 2 locations

@@ 350-356 (lines=7) @@
347
     *
348
     * @return  string|null
349
     */
350
    public function getAutocompleteKey()
351
    {
352
        if (false === $this->isAutocomplete()) {
353
            return null;
354
        }
355
        return $this->getFilter(self::FILTER_AUTOCOMPLETE)[self::FILTER_AUTOCOMPLETE_KEY];
356
    }
357
358
    /**
359
     * Gets the autocomplete search value.
@@ 363-369 (lines=7) @@
360
     *
361
     * @return  string|null
362
     */
363
    public function getAutocompleteValue()
364
    {
365
        if (false === $this->isAutocomplete()) {
366
            return null;
367
        }
368
        return $this->getFilter(self::FILTER_AUTOCOMPLETE)[self::FILTER_AUTOCOMPLETE_VALUE];
369
    }
370
371
    /**
372
     * Determines if this has the database query filter enabled.