We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 4 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
38 | public function chooseTemplate() |
||
39 | { |
||
40 | if (!$this->getParam('minValue')) { |
||
41 | return static::GREATER; |
||
42 | } |
||
43 | |||
44 | if (!$this->getParam('maxValue')) { |
||
45 | return static::LOWER; |
||
46 | } |
||
47 | |||
48 | if ($this->getParam('minValue') == $this->getParam('maxValue')) { |
||
49 | return self::EXACT; |
||
50 | } |
||
51 | |||
52 | return static::BOTH; |
||
53 | } |
||
55 |