| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function find() |
||
| 25 | { |
||
| 26 | $provider = Provider::withResource('generateIntegers'); |
||
| 27 | |||
| 28 | $hours = $this->getRandomOrgAPI()->getData( |
||
| 29 | $provider->withParameters( |
||
| 30 | ['n' => 1, 'min' => 0, 'max' => 23] |
||
| 31 | ) |
||
| 32 | ); |
||
| 33 | $minutesSeconds = $this->getRandomOrgAPI()->getData( |
||
| 34 | $provider->withParameters( |
||
| 35 | ['n' => 2, 'min' => 0, 'max' => 59] |
||
| 36 | ) |
||
| 37 | ); |
||
| 38 | |||
| 39 | $this->time = [ |
||
| 40 | 'h' => $hours[0], |
||
| 41 | 'm' => $minutesSeconds[0], |
||
| 42 | 's' => $minutesSeconds[1], |
||
| 43 | ]; |
||
| 44 | |||
| 45 | return $this; |
||
| 46 | } |
||
| 47 | |||
| 58 |