Conditions | 6 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function isOverThreshold(InputInterface $input, OutputInterface $output, ResultAccumulator $report): bool |
||
36 | { |
||
37 | $maxScore = $report->getMaxScore(); |
||
38 | |||
39 | if (null === $this->maxScoreThreshold || null === $maxScore || $maxScore <= $this->maxScoreThreshold) { |
||
40 | return false; |
||
41 | } |
||
42 | |||
43 | if ('text' === $input->getOption('format') || !empty($input->getOption('output'))) { |
||
44 | $output->writeln('<error>Max score is over the threshold</>'); |
||
45 | } |
||
46 | |||
47 | return true; |
||
48 | } |
||
50 |