src/Scaffold/Console/CreateComponent.php
protected function prepareVars()
    {
        if (!$code = $this->getExtensionInput()) {
            $this->error('Invalid extension name, Example name: AuthorName.ExtensionName');

            return;
        }

        list($author, $extension) = $code;
        $component = $this->argument('component');

        $this->vars = [
            'extension'        => $extension,
            'lower_extension'  => strtolower($extension),
            'title_extension'  => title_case($extension),
            'studly_extension' => studly_case($extension),

            'author'        => $author,
            'lower_author'  => strtolower($author),
            'title_author'  => title_case($author),
            'studly_author' => studly_case($author),

            'name'        => $component,
            'lower_name'  => strtolower($component),
            'title_name'  => title_case($component),
            'studly_name' => studly_case($component),
        ];
    }
protected function prepareVars()
    {
        if (!$code = $this->getExtensionInput()) {
            $this->error('Invalid extension name, Example name: AuthorName.ExtensionName');

            return;
        }

        list($author, $extension) = $code;
        $component = $this->argument('component');

        $this->vars = [
            'extension'        => $extension,
            'lower_extension'  => strtolower($extension),
            'title_extension'  => title_case($extension),
            'studly_extension' => studly_case($extension),

            'author'        => $author,
            'lower_author'  => strtolower($author),
            'title_author'  => title_case($author),
            'studly_author' => studly_case($author),

            'name'        => $component,
            'lower_name'  => strtolower($component),
            'title_name'  => title_case($component),
            'studly_name' => studly_case($component),
        ];
    }
Prepare variables for stubs.

return @array