| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function log($connection, Identity $identity, Request $request) |
||
| 41 | { |
||
| 42 | $context = $connection; |
||
| 43 | $context['request'] = $request->toArray(); |
||
| 44 | $context['identity'] = $identity->toArray(); |
||
| 45 | |||
| 46 | $result = $this->getHttpClient()->post($this->endpoint, $context); |
||
| 47 | |||
| 48 | if (!$result) { |
||
| 49 | error_log("Error while logging to Http endpoint: $this->endpoint"); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 54 |