src/Formatters/Pretty.php
Method format
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function format(array $diff): string
{
$format = function ($diff, $depth = 0) use (&$format) {
return array_map(function ($node) use ($depth, $format) {
switch ($node['type']) {
Method formatMessage
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function formatMessage(string $key, string $operation, $value, int $depth, string $formatStr = ' %s%s%s: %s'): string
Avoid too many return
statements within this method. Open
Open
return (string)$value;