src/Constraints/Constraint.php
protected static function prepareOperatorAndValue($operator, $value, $usesDefault)
    {
        if ($usesDefault) {
            return ['=', $operator];
        }

        if (! in_array($operator, ['=', '==', '!=', '<', '>', '<=', '>='])) {
            throw new InvalidArgumentException("{$operator} is not a valid operator");
        }

        return [$operator, $value];
    }
protected static function prepareOperatorAndValue($operator, $value, $usesDefault)
    {
        if ($usesDefault) {
            return ['=', $operator];
        }

        if (! in_array($operator, ['=', '==', '!=', '<', '>', '<=', '>='])) {
            throw new InvalidArgumentException("{$operator} is not a valid operator");
        }

        return [$operator, $value];
    }
protected static function prepareOperatorAndValue ( $ operator , $ value , $ usesDefault ) { if ( $ usesDefault ) { return [ '=' , $ operator ] ; } if ( ! in_array ( $ operator , [ '=' , '==' , '!=' , '<' , '>' , '<=' , '>=' ] ) ) { throw new InvalidArgumentException ( "{$operator} is not a valid operator" ) ; } return [ $ operator , $ value ] ; }
Prepare the value and operator.

@param  string  $operator
@param  string  $value
@param  bool  $usesDefault
@return array

@throws \InvalidArgumentException
Prepare the value and operator .