Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | protected function getSymfonyStyle( |
||
27 | InputInterface $input, |
||
28 | OutputInterface $output, |
||
29 | ?bool $clearScreen = null, |
||
30 | ): SymfonyStyle { |
||
31 | $clearScreen ??= true; |
||
32 | |||
33 | $io = new SymfonyStyle($input, $output); |
||
34 | |||
35 | if ($clearScreen) { |
||
36 | $io->write("\033\143"); |
||
37 | } |
||
38 | |||
39 | return $io; |
||
40 | } |
||
42 |