| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 60 | public static function getLastEdited($padId, $apiKey, $host = 'http://localhost:9001') |
||
| 61 | { |
||
| 62 | $client = new Client($apiKey, $host); |
||
| 63 | try { |
||
| 64 | $response = $client->getLastEdited($padId); |
||
| 65 | } catch (\Exception $e) { |
||
| 66 | return false; |
||
| 67 | } |
||
| 68 | |||
| 69 | if ($response->getCode() == Response::CODE_OK) { |
||
| 70 | return $response->getData()['lastEdited'] / 1000; |
||
| 71 | } else { |
||
| 72 | return false; |
||
| 73 | } |
||
| 74 | } |
||
| 75 | } |
||
| 76 |