Conditions | 5 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 0 |
1 | <?php |
||
43 | public function isDisabled():bool |
||
44 | { |
||
45 | if (isset($this->disabled)) { |
||
46 | return $this->disabled; |
||
47 | } |
||
48 | |||
49 | $isQuiet = $this->output->isQuiet(); |
||
50 | $noProgress = $this->input->getOption('no-progress'); |
||
51 | $noAnsi = $this->input->getOption('no-ansi'); |
||
52 | |||
53 | if ($isQuiet || $noProgress || $noAnsi) { |
||
54 | $this->disabled = true; |
||
55 | |||
56 | return true; |
||
57 | } |
||
58 | |||
59 | $this->disabled = false; |
||
60 | |||
61 | return false; |
||
62 | } |
||
114 |