Showing 4 of 4 total issues
Function arrayToParagraphs
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
function arrayToParagraphs($value){ $count = count($value); if ($count) { $collapsedValue = '';
- Read upRead up
The method arrayToParagraphs uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else { // repeating field $collapsedValue .= implode(PHP_EOL, $value); }
- Read upRead up
- Exclude checks
The method stringifyValue uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else { $value = nl2br($value); }
- Read upRead up
- Exclude checks
The method arrayToParagraphs uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
} else { return " "; }
- Read upRead up
- Exclude checks