Showing 8 of 8 total issues
Method convertToPlain
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function convertToPlain(array $diff)
{
$converter = function ($diff, array $parentNames = []) use (&$converter) {
$plainStrings = array_map(function ($property) use (&$converter, $parentNames) {
Method convertToPretty
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function convertToPretty(array $diff)
{
$converter = function ($diff, $depth = 0) use (&$converter) {
$prettyStrings = array_map(function ($property) use (&$converter, $depth) {
Method createNode
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function createNode($name, $type, $valueBefore, $valueAfter = null, array $children = [])
Avoid too many return
statements within this method. Open
Open
return array_filter($plainStrings, fn($string) => $string !== null);
Avoid too many return
statements within this method. Open
Open
return implode("\n", $converter($diff));
Avoid too many return
statements within this method. Open
Open
return "{\n" . $converter($diff) . "\n}";
Avoid too many return
statements within this method. Open
Open
return implode("\n", $strings);
Avoid too many return
statements within this method. Open
Open
return implode("\n", $prettyStrings);