Skip to content

Commit

Permalink
DEsaulenko/hw16. наведение порядка
Browse files Browse the repository at this point in the history
  • Loading branch information
Эсауленко Дмитрий committed Aug 29, 2023
1 parent 374831a commit c686626
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions app/app/Http/Controllers/ControllerTrack.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,4 @@ public function add(TrackAddRequest $request): JsonResponse
$this->serviceTrack->add($request->all());
return $this->prepareResult();
}

public function subscribe(Request $request): JsonResponse
{
return $this->prepareResult();
}
}
2 changes: 1 addition & 1 deletion app/app/Http/Services/ServiceTrack.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getByGenre(int $genre): TrackItems
/**
* @return Collection|Track[]
*/
public function getAll(): ?Collection
public function getAll(): Collection
{
return $this->track->all();
}
Expand Down

0 comments on commit c686626

Please sign in to comment.