| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function transform($data) |
||
| 17 | { |
||
| 18 | return [ |
||
| 19 | 'id' => (int) $data['id'], |
||
| 20 | 'kills' => [ |
||
| 21 | 'infrantry' => $data['killsInf'], |
||
| 22 | 'vehicles' => $data['killsVeh'], |
||
| 23 | 'total' => $data['kills'] |
||
| 24 | ], |
||
| 25 | 'deaths' => [ |
||
| 26 | 'infrantry' => $data['deathsInf'], |
||
| 27 | 'vehicles' => $data['deathsVeh'], |
||
| 28 | 'total' => $data['deaths'], |
||
| 29 | ], |
||
| 30 | 'bails' => $data['bails'] |
||
| 31 | ]; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |