| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | protected function getEntry($event_name, $args, $params, $response) |
||
| 59 | { |
||
| 60 | $args_string = json_encode($args); |
||
| 61 | $params_string = json_encode($params); |
||
| 62 | $response_string = json_encode($response); |
||
| 63 | |||
| 64 | return <<<EOT |
||
| 65 | name : $event_name |
||
| 66 | args : $args_string |
||
| 67 | params : $params_string |
||
| 68 | response: $response_string |
||
| 69 | EOT; |
||
| 70 | } |
||
| 71 | } |
||
| 72 |
If you suppress an error, we recommend checking for the error condition explicitly: