protected function execute(InputInterface $input, OutputInterface $output)
    {
        $name = $input->getArgument('name');

        try {
            if ('@' === $name[0]) {
                $this->describeSet($output, $name);

                return null;
            }

            $this->describeRule($output, $name);
        } catch (DescribeNameNotFoundException $e) {
            $matcher = new WordMatcher(
                'set' === $e->getType() ? $this->getSetNames() : array_keys($this->getFixers())
            );

            $alternative = $matcher->match($name);

            $this->describeList($output, $e->getType());

            throw new \InvalidArgumentException(sprintf(
                '%s "%s" not found.%s',
                ucfirst($e->getType()),
                $name,
                null === $alternative ? '' : ' Did you mean "'.$alternative.'"?'
            ));
        }
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $name = $input->getArgument('name');

        try {
            if ('@' === $name[0]) {
                $this->describeSet($output, $name);

                return null;
            }

            $this->describeRule($output, $name);
        } catch (DescribeNameNotFoundException $e) {
            $matcher = new WordMatcher(
                'set' === $e->getType() ? $this->getSetNames() : array_keys($this->getFixers())
            );

            $alternative = $matcher->match($name);

            $this->describeList($output, $e->getType());

            throw new \InvalidArgumentException(sprintf(
                '%s "%s" not found.%s',
                ucfirst($e->getType()),
                $name,
                null === $alternative ? '' : ' Did you mean "'.$alternative.'"?'
            ));
        }
    }
protected function execute ( InputInterface $ input , OutputInterface $ output ) { $ name = $ input -> getArgument ( 'name' ) ; try { if ( '@' === $ name [ 0 ] ) { $ this -> describeSet ( $ output , $ name ) ; return null ; } $ this -> describeRule ( $ output , $ name ) ; } catch ( DescribeNameNotFoundException $ e ) { $ matcher = new WordMatcher ( 'set' === $ e -> getType ( ) ? $ this -> getSetNames ( ) : array_keys ( $ this -> getFixers ( ) ) ) ; $ alternative = $ matcher -> match ( $ name ) ; $ this -> describeList ( $ output , $ e -> getType ( ) ) ; throw new \ InvalidArgumentException ( sprintf ( '%s "%s" not found.%s' , ucfirst ( $ e -> getType ( ) ) , $ name , null === $ alternative ? '' : ' Did you mean "' . $ alternative . '"?' ) ) ; } }
{@inheritdoc}
{