Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 4 | private function calculateRequiredAscension(): Ascension |
|
25 | { |
||
26 | 4 | foreach (range(Ascension::EIGHTH_ASCENSION, Ascension::FIRST_ASCENSION) as $ascension) { |
|
27 | 4 | if ($this->etherumLoad->isGreaterThanOrEqual((new Ascension($ascension))->getRequiredEtherum())) { |
|
28 | 3 | return new Ascension($ascension); |
|
29 | } |
||
30 | } |
||
31 | |||
32 | 1 | return Ascension::firstAscension(); |
|
33 | } |
||
35 |