src/formatters/plain.php
Method renderTreeToPlain
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function renderTreeToPlain($ast, $pathRoot = null)
{
$mapped = array_map(
function ($node) use ($pathRoot) {
if (isset($pathRoot)) {
Avoid too many return
statements within this method. Confirmed
Confirmed
return;
Avoid too many return
statements within this method. Confirmed
Confirmed
return implode("\n", $filteredEmptyNodes);