protected function nameAndParameters($constraint)
    {
        if (!strpos($constraint, ':')) {
            return [$this->normalizeConstraintName($constraint), []];
        }

        list($name, $parameters) = explode(':', $constraint, 2);

        return [$this->normalizeConstraintName($name), explode(',', $parameters)];
    }
protected function nameAndParameters($constraint)
    {
        if (!strpos($constraint, ':')) {
            return [$this->normalizeConstraintName($constraint), []];
        }

        list($name, $parameters) = explode(':', $constraint, 2);

        return [$this->normalizeConstraintName($name), explode(',', $parameters)];
    }
protected function nameAndParameters ( $ constraint ) { if ( ! strpos ( $ constraint , ':' ) ) { return [ $ this -> normalizeConstraintName ( $ constraint ) , [ ] ] ; } list ( $ name , $ parameters ) = explode ( ':' , $ constraint , 2 ) ; return [ $ this -> normalizeConstraintName ( $ name ) , explode ( ',' , $ parameters ) ] ; }
Split a constraint into its name and an array of parameters

@param string $constraint

@return array
Split a constraint into its name and an array of parameters