| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace ChaseConey\LaravelDatadogHelper\Datadog; |
||
| 12 | protected function wrapSendDataWithMetricPrefix($data) |
||
| 13 | { |
||
| 14 | if (!$this->metricsPrefix) { |
||
| 15 | return $data; |
||
| 16 | } |
||
| 17 | |||
| 18 | $wrapped = []; |
||
| 19 | foreach ($data as $metric => $stat) { |
||
| 20 | $wrapped[$this->metricsPrefix . '.'. $metric] = $stat; |
||
| 21 | } |
||
| 22 | return $wrapped; |
||
| 23 | } |
||
| 25 |