core/Group/App/Bean.php
Showing 8 of 8 total issues
Function execution
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
private function execution($addr, $method, $parameters) { $aopConfig = Config::get("app::aop"); if (isset($aopConfig[$this->name][$addr][$method])) { if (is_string($aopConfig[$this->name][$addr][$method])) {
- Read upRead up
The method execution uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
Open
} else { foreach ($aopConfig[$this->name][$addr][$method] as $one) { $this->callAspect($one, $parameters); } }
- Read upRead up
- Exclude checks
Opening class brace must be on a line by itself Open
Open
{
- Exclude checks
Expected 1 space after FUNCTION keyword; 0 found Open
Open
$aspect = app()->singleton($class, function() use ($class) {
- Exclude checks
Whitespace found at end of line Open
Open
{
- Exclude checks
Whitespace found at end of line Open
Open
{
- Exclude checks
Whitespace found at end of line Open
Open
{
- Exclude checks
Whitespace found at end of line Open
Open
{
- Exclude checks