src/QueryFilters.php
protected function filterCanBeApplied($filter, $value)
    {
        $filterExists = method_exists($this, $filter);
        $hasValue = $value !== '' && $value !== null;
        $valueIsLegit = $hasValue || in_array($filter, $this->implicitFilters);

        return $filterExists && $valueIsLegit;
    }
protected function filterCanBeApplied($filter, $value)
    {
        $filterExists = method_exists($this, $filter);
        $hasValue = $value !== '' && $value !== null;
        $valueIsLegit = $hasValue || in_array($filter, $this->implicitFilters);

        return $filterExists && $valueIsLegit;
    }
protected function filterCanBeApplied ( $ filter , $ value ) { $ filterExists = method_exists ( $ this , $ filter ) ; $ hasValue = $ value !== '' && $ value !== null ; $ valueIsLegit = $ hasValue || in_array ( $ filter , $ this -> implicitFilters ) ; return $ filterExists && $ valueIsLegit ; }
Determine whether the given filter can be applied with the provided value.

@param string $filter
@param mixed $value
@return boolean
Determine whether the given filter can be applied with the provided value .