protected function ifAlreadyRegistered(Parameter $param)
    {
        if ($this->registered($param->attributeName())) {
            throw new InvalidParameterException(\sprintf(
                'The parameter "%s" is already registered',
                $param instanceof Option ? $param->long() : $param->name()
            ));
        }
    }
protected function ifAlreadyRegistered(Parameter $param)
    {
        if ($this->registered($param->attributeName())) {
            throw new InvalidParameterException(\sprintf(
                'The parameter "%s" is already registered',
                $param instanceof Option ? $param->long() : $param->name()
            ));
        }
    }
protected function ifAlreadyRegistered ( Parameter $ param ) { if ( $ this -> registered ( $ param -> attributeName ( ) ) ) { throw new InvalidParameterException ( \ sprintf ( 'The parameter "%s" is already registered' , $ param instanceof Option ? $ param -> long ( ) : $ param -> name ( ) ) ) ; } }
What if the given name is already registered.

@param Parameter $param

@throws \InvalidArgumentException If given param name is already registered.
What if the given name is already registered .