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

JBZoo / Cli / 18073060279

28 Sep 2025 10:34AM UTC coverage: 80.982% (-0.3%) from 81.315%
18073060279

push

github

web-flow
build(deps): Upgrade Symfony to v7 and PHP to 8.2 (#30)

- Bump Symfony components (console, process, lock) to ^7.3.4.
- Increase minimum PHP requirement to 8.2.
- Replace external process manager with an internal
JBZoo\Cli\ProcessManager implementation to maintain compatibility with
Symfony 7.
- Update other core dependencies: jbzoo/utils, jbzoo/event,
monolog/monolog, jbzoo/toolbox-dev.
- Adjust CI workflows to support PHP 8.2+ and remove scheduled runs.
- Refactor various classes to be final and update type hints for
improved code quality and Psalm compatibility.
- Remove deprecated phpstan.neon configuration file.

65 of 78 new or added lines in 6 files covered. (83.33%)

15 existing lines in 3 files now uncovered.

1056 of 1304 relevant lines covered (80.98%)

229.63 hits per line

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

30.77
/src/CliRender.php
1
<?php
2

3
/**
4
 * JBZoo Toolbox - Cli.
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/Cli
13
 */
14

15
declare(strict_types=1);
16

17
namespace JBZoo\Cli;
18

19
use JBZoo\Utils\Str;
20

21
final class CliRender
22
{
23
    public static function list(array $metrics, ?string $addDot = null): string
24
    {
25
        $result = Str::listToDescription($metrics, true);
18✔
26

27
        if ($result === null) {
18✔
UNCOV
28
            return '';
×
29
        }
30

31
        if ($addDot !== null) {
18✔
UNCOV
32
            $addDot = \trim($addDot);
×
UNCOV
33
            $list   = \explode("\n", $result);
×
34

UNCOV
35
            \array_walk($list, static function (string &$item) use ($addDot): void {
×
UNCOV
36
                $item = \trim($item);
×
UNCOV
37
                if ($item !== '') {
×
UNCOV
38
                    $item = " {$addDot} {$item}";
×
39
                }
UNCOV
40
            });
×
41

UNCOV
42
            $result = \implode("\n", $list);
×
43
        }
44

45
        return $result;
18✔
46
    }
47
}
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