core/Group/Console/Command/GenerateServiceCommand.php
Showing 8 of 8 total issues
Method init
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function init() { $input = $this->getArgv(); if (!isset($input[0])) {
The method init uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
Open
} else { $group = ucfirst($input[0]); $name = $input[0]; }
- Read upRead up
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
file_put_contents ($dir."/".$group."/".$serviceName."Service.php", $data);
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
file_put_contents ($daoDir."/".$serviceName."/".$serviceName."Dao.php", $data);
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
file_put_contents ($dir."/".$group."/Rely/".$serviceName."BaseService.php", $data);
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
file_put_contents ($dir."/".$group."/Impl/".$serviceName."ServiceImpl.php", $data);
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
file_put_contents ($daoDir."/".$serviceName."/Impl/".$serviceName."DaoImpl.php", $data);
- Exclude checks
Whitespace found at end of line Open
Open
{
- Exclude checks