protected function filterWouldMatch($filterValue, $value, $key)
    {
        if ($value === null) {
            return $filterValue === null;
        }

        if (is_array($filterValue)) {
            return is_array($value) ? $filterValue == $value : in_array($value, $filterValue);
        }

        if (is_numeric($value)) {
            return $filterValue == $value;
        }

        return mb_strpos($value, $filterValue) !== false;

    }
protected function filterWouldMatch($filterValue, $value, $key)
    {
        if ($value === null) {
            return $filterValue === null;
        }

        if (is_array($filterValue)) {
            return is_array($value) ? $filterValue == $value : in_array($value, $filterValue);
        }

        if (is_numeric($value)) {
            return $filterValue == $value;
        }

        return mb_strpos($value, $filterValue) !== false;

    }
protected function filterWouldMatch ( $ filterValue , $ value , $ key ) { if ( $ value === null ) { return $ filterValue === null ; } if ( is_array ( $ filterValue ) ) { return is_array ( $ value ) ? $ filterValue == $ value : in_array ( $ value , $ filterValue ) ; } if ( is_numeric ( $ value ) ) { return $ filterValue == $ value ; } return mb_strpos ( $ value , $ filterValue ) !== false ; }
Overwrite this method to adjust the filter to value comparison.

@param mixed $filterValue
@param mixed $value
@param string $key

@return bool
Overwrite this method to adjust the filter to value comparison .