Showing 5 of 288 total issues

Avoid deeply nested control flow statements.
Open

                                if ($i <= $index) {
                                    unset($indexes[$k]);
                                }
Severity: Major
Found in src/HookTrait.php - About 45 mins to fix

Method onHookDynamic has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function onHookDynamic(string $spot, \Closure $getFxThisFx, \Closure $fx, array $args = [], int $priority = 5): int
Severity: Minor
Found in src/HookTrait.php - About 35 mins to fix

Method onHookDynamicShort has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function onHookDynamicShort(string $spot, \Closure $getFxThisFx, \Closure $fx, array $args = [], int $priority = 5): int
Severity: Minor
Found in src/HookTrait.php - About 35 mins to fix

Avoid too many return statements within this method.
Open

        return $out;
Severity: Major
Found in src/ExceptionRenderer/RendererAbstract.php - About 30 mins to fix

Avoid too many return statements within this method.
Open

        return isset($this->hooks[$spot][$priority]);
Severity: Major
Found in src/HookTrait.php - About 30 mins to fix
Severity
Category
Status
Source
Language