| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function __invoke(array $record) |
||
| 42 | { |
||
| 43 | // Skip processing if for some reason request data |
||
| 44 | // Is not present (CLI or wonky SAPIs) |
||
| 45 | 1 | if (isset($this->serverData['REQUEST_URI']) === false) { |
|
| 46 | 1 | return $record; |
|
| 47 | } |
||
| 48 | |||
| 49 | 1 | $record['http_server'] = $this->serverData; |
|
| 50 | 1 | $record['http_post'] = $this->postData; |
|
| 51 | 1 | $record['http_get'] = $this->getData; |
|
| 52 | |||
| 53 | 1 | return $record; |
|
| 54 | } |
||
| 56 |