src/PHPFormatter/Command/UseSortCommand.php
protected function getFixer($config) : FixerInterface
    {
        $useSortFixer = new UseSortFixer();
        $useSortFixer
            ->setGroups($config['group'])
            ->setGroupType($config['group-type'])
            ->setGroupSkipEmpty($config['group-skip-empty'])
            ->setSortType($config['sort-type'])
            ->setSortDirection($config['sort-direction']);

        return $useSortFixer;
    }
protected function getFixer($config) : FixerInterface
    {
        $useSortFixer = new UseSortFixer();
        $useSortFixer
            ->setGroups($config['group'])
            ->setGroupType($config['group-type'])
            ->setGroupSkipEmpty($config['group-skip-empty'])
            ->setSortType($config['sort-type'])
            ->setSortDirection($config['sort-direction']);

        return $useSortFixer;
    }
protected function getFixer ( $ config ) : FixerInterface { $ useSortFixer = new UseSortFixer ( ) ; $ useSortFixer -> setGroups ( $ config [ 'group' ] ) -> setGroupType ( $ config [ 'group-type' ] ) -> setGroupSkipEmpty ( $ config [ 'group-skip-empty' ] ) -> setSortType ( $ config [ 'sort-type' ] ) -> setSortDirection ( $ config [ 'sort-direction' ] ) ; return $ useSortFixer ; }
Get a fixer instance given the configuration.

@param mixed $config

@return FixerInterface
Get a fixer instance given the configuration .