| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 1 | public function store(StorePlayCountRequest $request) |
|
| 28 | { |
||
| 29 | 1 | $interaction = $this->interactionService->increasePlayCount($request->song, $request->user()); |
|
| 30 | 1 | event(new SongStartedPlaying($interaction->song, $interaction->user)); |
|
| 31 | |||
| 32 | 1 | return response()->json($interaction); |
|
| 33 | } |
||
| 35 |