mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-01 18:47:29 +00:00
48 - Cleaning up a Loose Variable
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user