| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function getRequests() |
||
| 40 | { |
||
| 41 | $url = 'http://www.time.com/api/%s?iso=%s'; |
||
| 42 | return [ |
||
| 43 | (new Request(sprintf($url, 'parsetime', urlencode((new \DateTime)->format(DATE_ISO8601))))) |
||
| 44 | ->withMethod('GET'), |
||
| 45 | (new Request(sprintf($url, 'unixtime', urlencode((new \DateTime)->format(DATE_ISO8601))))) |
||
| 46 | ->withMethod('GET'), |
||
| 47 | ]; |
||
| 48 | } |
||
| 49 | |||
| 58 |