src/Franzose/ClosureTable/Console/MakeCommand.php
protected function prepareOptions()
    {
        $options = $this->getOptions();
        $input = [];

        foreach ($options as $option) {
            $input[] = $this->option($option[0]);
        }

        $lastnsdelim = strrpos($input[1], '\\');

        $this->options[$options[0][0]] = $input[0] ?: rtrim($this->getAppNamespace(), '\\');
        $this->options[$options[1][0]] = substr($input[1], $lastnsdelim);
        $this->options[$options[2][0]] = $input[2] ?: ExtStr::tableize($input[1]);
        $this->options[$options[3][0]] = $input[3] ?: $this->options[$options[1][0]] . 'Closure';
        $this->options[$options[4][0]] = $input[4] ?: ExtStr::tableize($input[1] . 'Closure');
        $this->options[$options[5][0]] = $input[5] ? $input[5] : './app';
        $this->options[$options[6][0]] = $input[6] ? $input[6] : './database/migrations';
        $this->options[$options[7][0]] = $input[7] ?: false;
    }
protected function prepareOptions()
    {
        $options = $this->getOptions();
        $input = [];

        foreach ($options as $option) {
            $input[] = $this->option($option[0]);
        }

        $lastnsdelim = strrpos($input[1], '\\');

        $this->options[$options[0][0]] = $input[0] ?: rtrim($this->getAppNamespace(), '\\');
        $this->options[$options[1][0]] = substr($input[1], $lastnsdelim);
        $this->options[$options[2][0]] = $input[2] ?: ExtStr::tableize($input[1]);
        $this->options[$options[3][0]] = $input[3] ?: $this->options[$options[1][0]] . 'Closure';
        $this->options[$options[4][0]] = $input[4] ?: ExtStr::tableize($input[1] . 'Closure');
        $this->options[$options[5][0]] = $input[5] ? $input[5] : './app';
        $this->options[$options[6][0]] = $input[6] ? $input[6] : './database/migrations';
        $this->options[$options[7][0]] = $input[7] ?: false;
    }
protected function prepareOptions ( ) { $ options = $ this -> getOptions ( ) ; $ input = [ ] ; foreach ( $ options as $ option ) { $ input [ ] = $ this -> option ( $ option [ 0 ] ) ; } $ lastnsdelim = strrpos ( $ input [ 1 ] , '\\' ) ; $ this -> options [ $ options [ 0 ] [ 0 ] ] = $ input [ 0 ] ? : rtrim ( $ this -> getAppNamespace ( ) , '\\' ) ; $ this -> options [ $ options [ 1 ] [ 0 ] ] = substr ( $ input [ 1 ] , $ lastnsdelim ) ; $ this -> options [ $ options [ 2 ] [ 0 ] ] = $ input [ 2 ] ? : ExtStr :: tableize ( $ input [ 1 ] ) ; $ this -> options [ $ options [ 3 ] [ 0 ] ] = $ input [ 3 ] ? : $ this -> options [ $ options [ 1 ] [ 0 ] ] . 'Closure' ; $ this -> options [ $ options [ 4 ] [ 0 ] ] = $ input [ 4 ] ? : ExtStr :: tableize ( $ input [ 1 ] . 'Closure' ) ; $ this -> options [ $ options [ 5 ] [ 0 ] ] = $ input [ 5 ] ? $ input [ 5 ] : './app' ; $ this -> options [ $ options [ 6 ] [ 0 ] ] = $ input [ 6 ] ? $ input [ 6 ] : './database/migrations' ; $ this -> options [ $ options [ 7 ] [ 0 ] ] = $ input [ 7 ] ? : false ; }
Prepares user input options to be passed to migrator and modeler instances.

@return void
Prepares user input options to be passed to migrator and modeler instances .