src/Console/ModuleMakeCommand.php
Showing 0 of 3 total issues
Method getComponentGenerationOptions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
protected function getComponentGenerationOptions(string $component, array &$options) { switch ($component) { case 'controller': $options['name'] = "{$this->module}Controller";
Function getComponentGenerationOptions
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Wontfix
Wontfix
protected function getComponentGenerationOptions(string $component, array &$options) { switch ($component) { case 'controller': $options['name'] = "{$this->module}Controller";
- Read upRead up
Function generateModule
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Wontfix
Wontfix
protected function generateModule() { $this->files->makeDirectory($this->path, 0755, true); $components = config('modules.generate', []);
- Read upRead up