| Conditions | 5 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 93 | private function determine($timestamp) |
||
| 94 | { |
||
| 95 | $values = []; |
||
| 96 | foreach ($this->rates as $array) { |
||
| 97 | if ( |
||
| 98 | !isset($array['from']) || |
||
| 99 | !isset($array['to']) |
||
| 100 | ) { |
||
| 101 | $values[] = $array['rate']; |
||
| 102 | continue; |
||
| 103 | } |
||
| 104 | if ($this->isBetween($timestamp, $array['from'], $array['to'], 'Hi')) { |
||
| 105 | $values[] = $array['rate']; |
||
| 106 | } |
||
| 107 | } |
||
| 108 | return $values; |
||
| 109 | } |
||
| 110 | } |
||
| 111 |