protected function adjustCaseInsensitive(&$value, &$parameters) {
        $parameterAmount = count($parameters);
        if ($parameterAmount == 1 || $parameterAmount > 1 && $parameters[1]) {
            $parameters[0] = strtolower($parameters[0]);
            $value         = strtolower($value);
        }
    }
protected function adjustCaseInsensitive(&$value, &$parameters) {
        $parameterAmount = count($parameters);
        if ($parameterAmount == 1 || $parameterAmount > 1 && $parameters[1]) {
            $parameters[0] = strtolower($parameters[0]);
            $value         = strtolower($value);
        }
    }
protected function adjustCaseInsensitive ( & $ value , & $ parameters ) { $ parameterAmount = count ( $ parameters ) ; if ( $ parameterAmount == 1 || $ parameterAmount > 1 && $ parameters [ 1 ] ) { $ parameters [ 0 ] = strtolower ( $ parameters [ 0 ] ) ; $ value = strtolower ( $ value ) ; } }
Adjusts value and parameters to be case insensitive if the second
parameter says so or is not given.

@param mixed $value
the value to validate

@param array $parameters
the other parameters the validator need
Adjusts value and parameters to be case insensitive if the second parameter says so or is not given .