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

NIT-Administrative-Systems / SysDev-laravel-soa / 21220256475

21 Jan 2026 06:00PM UTC coverage: 38.99% (-6.1%) from 45.13%
21220256475

push

github

web-flow
EventHub command protection and restyling (#185)

0 of 189 new or added lines in 8 files covered. (0.0%)

6 existing lines in 5 files now uncovered.

278 of 713 relevant lines covered (38.99%)

12.51 hits per line

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

0.0
/src/Console/Commands/Concerns/FormatsCommandOutput.php
1
<?php
2

3
namespace Northwestern\SysDev\SOA\Console\Commands\Concerns;
4

5
use Illuminate\Console\Command;
6
use Symfony\Component\Console\Terminal;
7

8
/**
9
 * @mixin Command
10
 */
11
trait FormatsCommandOutput
12
{
13
    protected function divider(): void
14
    {
NEW
15
        $width = (new Terminal())->getWidth();
×
NEW
16
        $width = max(60, min(140, $width));
×
17

NEW
18
        $this->line('<fg=gray>'.str_repeat('─', $width).'</>');
×
19
    }
20

21
    protected function styledDetail(string $label, mixed $value): void
22
    {
NEW
23
        if (is_bool($value)) {
×
NEW
24
            $styledValue = $value
×
NEW
25
                ? '<fg=green>true</>'
×
NEW
26
                : '<fg=red>false</>';
×
27

NEW
28
            $this->line(" <fg=gray>{$label}:</> {$styledValue}");
×
29

NEW
30
            return;
×
31
        }
32

NEW
33
        if ($value === null) {
×
NEW
34
            $this->line(" <fg=gray>{$label}:</> <fg=gray>—</>");
×
35

NEW
36
            return;
×
37
        }
38

NEW
39
        $this->line(" <fg=gray>{$label}:</> {$value}");
×
40
    }
41
}
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