src/PHPFormatter/Command/UseSortCommand.php
protected function getCommandConfigValue(InputInterface $input)
    {
        $config = [];
        if (!empty($input->getOption('group'))) {
            $config['group'] = $input->getOption('group');
        }

        if (true === ($input->getOption('group-skip-empty'))) {
            $config['group-skip-empty'] = true;
        }

        return array_merge(
            $config,
            array_filter([
                'group-type' => $input->getOption('group-type'),
                'sort-type' => $input->getOption('sort-type'),
                'sort-direction' => $input->getOption('sort-direction'),
            ], function ($element) {
                return !is_null($element);
            })
        );
    }
protected function getCommandConfigValue(InputInterface $input)
    {
        $config = [];
        if (!empty($input->getOption('group'))) {
            $config['group'] = $input->getOption('group');
        }

        if (true === ($input->getOption('group-skip-empty'))) {
            $config['group-skip-empty'] = true;
        }

        return array_merge(
            $config,
            array_filter([
                'group-type' => $input->getOption('group-type'),
                'sort-type' => $input->getOption('sort-type'),
                'sort-direction' => $input->getOption('sort-direction'),
            ], function ($element) {
                return !is_null($element);
            })
        );
    }
protected function getCommandConfigValue ( InputInterface $ input ) { $ config = [ ] ; if ( ! empty ( $ input -> getOption ( 'group' ) ) ) { $ config [ 'group' ] = $ input -> getOption ( 'group' ) ; } if ( true === ( $ input -> getOption ( 'group-skip-empty' ) ) ) { $ config [ 'group-skip-empty' ] = true ; } return array_merge ( $ config , array_filter ( [ 'group-type' => $ input -> getOption ( 'group-type' ) , 'sort-type' => $ input -> getOption ( 'sort-type' ) , 'sort-direction' => $ input -> getOption ( 'sort-direction' ) , ] , function ( $ element ) { return ! is_null ( $ element ) ; } ) ) ; }
Get command config values.

@param InputInterface $input

@return mixed
Get command config values .