Overtrue\PHPLint\Command\LintCommand::mergeOptions PHP Метод

mergeOptions() защищенный Метод

Merge options.
protected mergeOptions ( ) : array
Результат array
    protected function mergeOptions()
    {
        $options = $this->input->getOptions();
        $options['path'] = $this->input->getArgument('path');
        $config = [];
        if (!$this->input->getOption('no-configuration')) {
            $filename = $this->getConfigFile();
            if (empty($options['configuration']) && $filename) {
                $options['configuration'] = $filename;
            }
            if (!empty($options['configuration'])) {
                $this->output->writeln("<comment>Loaded config from \"{$options['configuration']}\"</comment>\n");
                $config = $this->loadConfiguration($options['configuration']);
            } else {
                $this->output->writeln("<comment>No config file loaded.</comment>\n");
            }
        } else {
            $this->output->writeln("<comment>No config file loaded.</comment>\n");
        }
        $options = array_merge($this->defaults, array_filter($config), array_filter($options));
        is_array($options['extensions']) || ($options['extensions'] = explode(',', $options['extensions']));
        return $options;
    }