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

move-elevator / composer-translation-validator / 16120356120

07 Jul 2025 02:52PM UTC coverage: 94.526% (+1.3%) from 93.207%
16120356120

push

github

web-flow
Merge pull request #18 from move-elevator/validation-run

refactor: implement object-oriented validation architecture with unified rendering system

228 of 230 new or added lines in 11 files covered. (99.13%)

5 existing lines in 1 file now uncovered.

777 of 822 relevant lines covered (94.53%)

5.23 hits per line

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

0.0
/src/Result/RendererFactory.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace MoveElevator\ComposerTranslationValidator\Result;
6

7
use MoveElevator\ComposerTranslationValidator\Validator\ResultType;
8
use MoveElevator\ComposerTranslationValidator\Validator\ValidatorInterface;
9
use Psr\Log\LoggerInterface;
10
use Symfony\Component\Console\Input\InputInterface;
11
use Symfony\Component\Console\Output\OutputInterface;
12

13
class RendererFactory
14
{
15
    /**
16
     * @param array<class-string<ValidatorInterface>, array<string, array<string, array<mixed>>>> $issues
17
     *
18
     * @return CliRenderer|JsonRenderer|null
19
     */
UNCOV
20
    public static function create(
×
21
        FormatType $format,
22
        LoggerInterface $logger,
23
        OutputInterface $output,
24
        InputInterface $input,
25
        ResultType $resultType,
26
        array $issues,
27
        bool $dryRun = false,
28
        bool $strict = false,
29
    ) {
UNCOV
30
        return match ($format) {
×
UNCOV
31
            FormatType::CLI => new CliRenderer($logger, $output, $input, $resultType, $issues, $dryRun, $strict),
×
UNCOV
32
            FormatType::JSON => new JsonRenderer($logger, $output, $input, $resultType, $issues, $dryRun, $strict),
×
UNCOV
33
        };
×
34
    }
35
}
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

© 2026 Coveralls, Inc