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 | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
38 | 16 | public function chooseTemplate() |
|
39 | { |
||
40 | 16 | if (!$this->getParam('minValue')) { |
|
41 | 1 | return static::GREATER; |
|
42 | } |
||
43 | |||
44 | 16 | if (!$this->getParam('maxValue')) { |
|
45 | 3 | return static::LOWER; |
|
46 | } |
||
47 | |||
48 | 16 | if ($this->getParam('minValue') == $this->getParam('maxValue')) { |
|
49 | 1 | return self::EXACT; |
|
50 | } |
||
51 | |||
52 | 15 | return static::BOTH; |
|
53 | } |
||
55 |