edde-framework/edde-framework

View on GitHub
src/Edde/Common/Template/Macro/SwitchMacro.php

Summary

Maintainability
A
1 hr
Test Coverage

Method inline has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public function inline(IMacro $source, ICompiler $compiler, \Iterator $iterator, INode $node, string $name, $value = null) {
            switch ($name) {
                case'switch':
                    $source->on(self::EVENT_PRE_ENTER, function () use ($value) {
                        $this->macroOpenSwitch($this->delimite($value));
Severity: Minor
Found in src/Edde/Common/Template/Macro/SwitchMacro.php - About 1 hr to fix

Method inline has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

        public function inline(IMacro $source, ICompiler $compiler, \Iterator $iterator, INode $node, string $name, $value = null) {
Severity: Minor
Found in src/Edde/Common/Template/Macro/SwitchMacro.php - About 45 mins to fix

There are no issues that match your filters.

Category
Status