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

IlyasDeckers / ody-core / 13532154862

25 Feb 2025 10:24PM UTC coverage: 30.374% (+1.7%) from 28.706%
13532154862

push

github

web-flow
Update php.yml

544 of 1791 relevant lines covered (30.37%)

9.13 hits per line

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

0.0
/src/Console/Style.php
1
<?php
2

3
namespace Ody\Core\Console;
4

5
use Symfony\Component\Console\Style\SymfonyStyle;
6

7
class Style extends SymfonyStyle
8
{
9

10

11
    /**
12
     * @psalm-param 'http server running…'|'reloading workers...'|'stopping server...' $message
13
     */
14
    public function success(string|array $message , bool $withNewLine = false): void
×
15
    {
16
        $this->writeln([
×
17
            '',
×
18
            "  <fg=#C3E88D;options=bold> SUCCESS </> $message",
×
19
        ]);
×
20

21
        if ($withNewLine){
×
22
            $this->newLine();
×
23
        }
24
    }
25

26
    public function info(string|array $message , bool $withNewLine = false): void
×
27
    {
28
        $this->writeln([
×
29
            "  <options=bold> INFO </> $message",
×
30
        ]);
×
31

32
        if ($withNewLine){
×
33
            $this->newLine();
×
34
        }
35
    }
36

37
    public function warning($message , bool $withNewLine = false): void
×
38
    {
39
        $this->writeln([
×
40
            '',
×
41
            "  <fg=#FFCB8B;options=bold> WARNING </> $message",
×
42
        ]);
×
43

44
        if ($withNewLine){
×
45
            $this->newLine();
×
46
        }
47
    }
48

49
    public function error(string|array $message , bool $withNewLine = false): void
×
50
    {
51
        $this->writeln([
×
52
            '',
×
53
            "  <fg=#FF5572;options=bold> ERROR </> $message",
×
54
        ]);
×
55

56
        if ($withNewLine){
×
57
            $this->newLine();
×
58
        }
59
    }
60

61
//    public function failed($message , bool $withNewLine = false): void
62
//    {
63
//        $this->writeln([
64
//            '',
65
//            "  <fg=#FF5572;options=bold> FAILED </> $message",
66
//        ]);
67
//
68
//        if ($withNewLine){
69
//            $this->newLine();
70
//        }
71
//    }
72
//
73
//    public function done($message , bool $withNewLine = false): void
74
//    {
75
//        $this->writeln([
76
//            '',
77
//            "  <fg=#C3E88D;options=bold> DONE </> $message",
78
//        ]);
79
//
80
//        if ($withNewLine){
81
//            $this->newLine();
82
//        }
83
//    }
84
}
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