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