protected function checkConfig($config)
    {
        $required_fields = ['namespace', 'table', 'path', 'mapping', 'import_keys'];

        foreach ($required_fields as $key) {
            if (!array_has($config, $key)) {
                $this->error(sprintf('Missing \'%s\' from the dataset configuration file.', $key));
                $this->line('');
                $this->line('');

                exit(1);
            }
        }
    }
protected function checkConfig($config)
    {
        $required_fields = ['namespace', 'table', 'path', 'mapping', 'import_keys'];

        foreach ($required_fields as $key) {
            if (!array_has($config, $key)) {
                $this->error(sprintf('Missing \'%s\' from the dataset configuration file.', $key));
                $this->line('');
                $this->line('');

                exit(1);
            }
        }
    }
protected function checkConfig ( $ config ) { $ required_fields = [ 'namespace' , 'table' , 'path' , 'mapping' , 'import_keys' ] ; foreach ( $ required_fields as $ key ) { if ( ! array_has ( $ config , $ key ) ) { $ this -> error ( sprintf ( 'Missing \'%s\' from the dataset configuration file.' , $ key ) ) ; $ this -> line ( '' ) ; $ this -> line ( '' ) ; exit ( 1 ) ; } } }
Check config file.

@return void

@SuppressWarnings(PHPMD.ExitExpression)
Check config file .