martin-helmich/typo3-typoscript-parser

View on GitHub
src/Parser/TokenStream.php

Summary

Maintainability
A
35 mins
Test Coverage
A
100%

Showing 2 of 2 total issues

The class TokenStream has 11 public methods. Consider refactoring TokenStream to keep number of public methods under 10.
Open

class TokenStream implements Iterator, ArrayAccess
{
/**
* @var TokenInterface[]
*/
Severity: Minor
Found in src/Parser/TokenStream.php by phpmd

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

public function normalized(): TokenStream
{
$filteredTokens = [];
 
$maxLine = 0;
Severity: Minor
Found in src/Parser/TokenStream.php - About 35 mins to fix
Category
Status