feat: add phpmd custom Apiato rules #2
Annotations
1 error and 10 warnings
PHPMD
Process completed with exit code 2.
|
PHPMD:
Abstracts/Actions/Action.php#L12
Avoid variables with short names like $ui. Configured minimum length is 3.
|
PHPMD:
Abstracts/Actions/Action.php#L16
Avoid using static access to class '\Illuminate\Support\Facades\DB' in method 'transactionalRun'.
|
PHPMD:
Abstracts/Commands/ConsoleCommand.php#L13
Avoid variables with short names like $ui. Configured minimum length is 3.
|
PHPMD:
Abstracts/Controllers/ApiController.php#L15
Avoid variables with short names like $ui. Configured minimum length is 3.
|
PHPMD:
Abstracts/Controllers/WebController.php#L11
Avoid variables with short names like $ui. Configured minimum length is 3.
|
PHPMD:
Abstracts/Exceptions/Exception.php#L21
Avoid using static access to class '\Illuminate\Support\Facades\Config' in method '__construct'.
|
PHPMD:
Abstracts/Exceptions/Exception.php#L42
The method debug has a boolean flag argument $force, which is a certain sign of a Single Responsibility Principle violation.
|
PHPMD:
Abstracts/Exceptions/Exception.php#L49
Avoid using static access to class '\Illuminate\Support\Facades\Log' in method 'debug'.
|
PHPMD:
Abstracts/Exceptions/Exception.php#L55
The method withErrors has a boolean flag argument $override, which is a certain sign of a Single Responsibility Principle violation.
|
PHPMD:
Abstracts/Exceptions/Exception.php#L59
The method withErrors uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
|