• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JBZoo / Composer-Diff / 9339764623

08 Feb 2024 09:20PM UTC coverage: 94.345%. Remained the same
9339764623

push

github

web-flow
Bump composer/composer from 2.6.6 to 2.7.0 (#34)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

317 of 336 relevant lines covered (94.35%)

74.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/Renders/JsonOutput.php
1
<?php
2

3
/**
4
 * JBZoo Toolbox - Composer-Diff.
5
 *
6
 * This file is part of the JBZoo Toolbox project.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT
11
 * @copyright  Copyright (C) JBZoo.com, All rights reserved.
12
 * @see        https://github.com/JBZoo/Composer-Diff
13
 */
14

15
declare(strict_types=1);
16

17
namespace JBZoo\ComposerDiff\Renders;
18

19
use Symfony\Component\Console\Output\OutputInterface;
20

21
use function JBZoo\Data\json;
22

23
final class JsonOutput extends AbstractRender
24
{
25
    protected function renderOneEnv(OutputInterface $output, array $changeLog, string $env): void
26
    {
27
        $dataForJson = [$env => []];
12✔
28

29
        foreach ($changeLog as $diff) {
12✔
30
            $row                             = $diff->toArray();
12✔
31
            $dataForJson[$env][$row['name']] = $row;
12✔
32
        }
33

34
        $output->writeln((string)json($dataForJson));
12✔
35
    }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc