phug-php/util

View on GitHub
Util/Partial/OptionTrait.php

Summary

Maintainability
A
55 mins
Test Coverage

Showing 1 of 1 total issue

Function withVariableReference has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

private function withVariableReference(&$variable, $name, $callback)
{
$keys = $this->handleOptionName($name);
if (is_array($keys)) {
foreach (array_slice($keys, 0, -1) as $key) {
Severity: Minor
Found in Util/Partial/OptionTrait.php - About 55 mins to fix

There are no issues that match your filters.

Category
Status