| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function __invoke(ResourceObject $ro) : void |
||
| 14 | { |
||
| 15 | $method = $ro->uri->method; |
||
| 16 | $unsafeMethod = ['put', 'post', 'delete']; |
||
| 17 | if (! in_array($method, $unsafeMethod, true)) { |
||
| 18 | return; |
||
| 19 | } |
||
| 20 | $msg = sprintf('%s %s %s', $ro->code, $ro->uri->method, (string) $ro->uri); |
||
| 21 | error_log($msg); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |