123456789101112131415161718 |
- <?php
- namespace Fgm\ComposerCheck;
- /**
- * Class YamlReporter formats a requirements set as YAML.
- */
- class JsonReporter extends ReporterBase {
- /**
- * {@inheritdoc}
- */
- public function report(MergeBox $mergeBox) : string {
- $json = json_encode($mergeBox->getRows(), JSON_PRETTY_PRINT);
- return $json;
- }
- }
|