src/Generators/ModuleGenerator.php
protected function getReplacement($stub)
    {
        $replacements = $this->module->config('stubs.replacements');

        if (!isset($replacements[$stub])) {
            return [];
        }

        $keys = $replacements[$stub];

        $replaces = [];

        foreach ($keys as $key) {
            if (method_exists($this, $method = 'get' . ucfirst(Str::studly(strtolower($key))) . 'Replacement')) {
                $replaces[$key] = $this->$method();
            } else {
                $replaces[$key] = null;
            }
        }

        return $replaces;
    }
protected function getReplacement($stub)
    {
        $replacements = $this->module->config('stubs.replacements');

        if (!isset($replacements[$stub])) {
            return [];
        }

        $keys = $replacements[$stub];

        $replaces = [];

        foreach ($keys as $key) {
            if (method_exists($this, $method = 'get' . ucfirst(Str::studly(strtolower($key))) . 'Replacement')) {
                $replaces[$key] = $this->$method();
            } else {
                $replaces[$key] = null;
            }
        }

        return $replaces;
    }
protected function getReplacement ( $ stub ) { $ replacements = $ this -> module -> config ( 'stubs.replacements' ) ; if ( ! isset ( $ replacements [ $ stub ] ) ) { return [ ] ; } $ keys = $ replacements [ $ stub ] ; $ replaces = [ ] ; foreach ( $ keys as $ key ) { if ( method_exists ( $ this , $ method = 'get' . ucfirst ( Str :: studly ( strtolower ( $ key ) ) ) . 'Replacement' ) ) { $ replaces [ $ key ] = $ this -> $ method ( ) ; } else { $ replaces [ $ key ] = null ; } } return $ replaces ; }
Get array replacement for the specified stub.

@param $stub

@return array
Get array replacement for the specified stub .