Total Complexity | 4 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
5 | trait TerminalHelper |
||
6 | { |
||
7 | /** |
||
8 | * Render a green tick in the terminal |
||
9 | */ |
||
10 | private function tick(): void |
||
11 | { |
||
12 | $this->climate->bold()->green('✓'); |
||
13 | } |
||
14 | |||
15 | |||
16 | /** |
||
17 | * Render a red cross in the terminial |
||
18 | */ |
||
19 | private function cross(): void |
||
20 | { |
||
21 | $this->climate->bold()->red('✘'); |
||
22 | } |
||
23 | |||
24 | |||
25 | private function taskReport(string $message, int $retVal = 0): void |
||
32 | } |
||
33 | } |
||
34 | } |
||
35 |