hallernsk/php-project-lvl2

View on GitHub
src/Formatters/Json.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Differ\Formatters\Json;

function format(array $diffTree): string
{
    return json_encode($diffTree, JSON_THROW_ON_ERROR);
}