Showing 6 of 9 total issues
Method genDiff
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function genDiff($beforeFilepath, $afterFilepath)
{
$beforeRaw = file_get_contents($beforeFilepath);
$afterRaw = file_get_contents($afterFilepath);
Avoid too many return
statements within this method. Open
Open
return sprintf(' %s: %s', $key, prettifyValue($before[$key]));
Avoid too many return
statements within this method. Open
Open
return sprintf(' - %s: %s', $key, prettifyValue($before[$key]));
Avoid too many return
statements within this method. Open
Open
return sprintf(
' + %s: %s' . PHP_EOL . ' - %s: %s',
$key,
prettifyValue($after[$key]),
$key,
Avoid too many return
statements within this method. Open
Open
return implode(PHP_EOL, array_merge(['{'], $resultParts, ['}']));
Avoid too many return
statements within this method. Open
Open
return sprintf(' + %s: %s', $key, prettifyValue($after[$key]));