phug-php/parser

View on GitHub
Parser/TokenHandler/AttributeTokenHandler.php

Summary

Maintainability
A
35 mins
Test Coverage

Showing 1 of 1 total issue

Function handleAttributeToken has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

public function handleAttributeToken(AttributeToken $token, State $state)
{
$this->createElementNodeIfMissing($token, $state);
 
/** @var AttributeNode $node */
Severity: Minor
Found in Parser/TokenHandler/AttributeTokenHandler.php - About 35 mins to fix
Category
Status