src/FixerConfiguration/FixerConfigurationResolver.php
private function addOption(FixerOptionInterface $option)
    {
        $name = $option->getName();

        if (\in_array($name, $this->registeredNames, true)) {
            throw new \LogicException(sprintf('The "%s" option is defined multiple times.', $name));
        }

        $this->options[] = $option;
        $this->registeredNames[] = $name;

        return $this;
    }
private function addOption(FixerOptionInterface $option)
    {
        $name = $option->getName();

        if (\in_array($name, $this->registeredNames, true)) {
            throw new \LogicException(sprintf('The "%s" option is defined multiple times.', $name));
        }

        $this->options[] = $option;
        $this->registeredNames[] = $name;

        return $this;
    }
private function addOption ( FixerOptionInterface $ option ) { $ name = $ option -> getName ( ) ; if ( \ in_array ( $ name , $ this -> registeredNames , true ) ) { throw new \ LogicException ( sprintf ( 'The "%s" option is defined multiple times.' , $ name ) ) ; } $ this -> options [ ] = $ option ; $ this -> registeredNames [ ] = $ name ; return $ this ; }
@param FixerOptionInterface $option

@throws \LogicException when the option is already defined

@return $this
@param FixerOptionInterface $option