48 - Cleaning up a Loose Variable

This commit is contained in:
Adam Wathan
2016-12-14 20:32:25 -05:00
parent 29910e02c9
commit 2ab35a2f14
5 changed files with 26 additions and 6 deletions

View File

@@ -58,9 +58,11 @@ class Concert extends Model
public function reserveTickets($quantity)
{
return $this->findTickets($quantity)->each(function ($ticket) {
$tickets = $this->findTickets($quantity)->each(function ($ticket) {
$ticket->reserve();
});
return new Reservation($tickets);
}
public function findTickets($quantity)