| @@ -63,7 +63,7 @@ discard block | ||
| 63 | 63 | ->get(); | 
| 64 | 64 | |
| 65 | 65 | // Iterate over all events and fill in the values for each fetched header | 
| 66 | -        foreach( $this->events as $event ) { | |
| 66 | +        foreach ($this->events as $event) { | |
| 67 | 67 | $eventResults = []; | 
| 68 | 68 | |
| 69 | 69 | $eventResults['date'] = $event->start_date; | 
| @@ -74,7 +74,7 @@ discard block | ||
| 74 | 74 | ->count(); | 
| 75 | 75 | |
| 76 | 76 | // Get ticket category stats | 
| 77 | -            foreach( $priceCategories as $cat) { | |
| 77 | +            foreach ($priceCategories as $cat) { | |
| 78 | 78 | // Get the number of tickets sold of this category | 
| 79 | 79 |                  $eventResults[$cat->name . '_total'] = with(clone $viewQuery)->where('tickets.event_id', $event->id) | 
| 80 | 80 |                                                                              ->where('purchases.state', 'paid') | 
| @@ -97,7 +97,7 @@ discard block | ||
| 97 | 97 |              $eventResults['total_sum'] = with(clone $viewQuery)->where('tickets.event_id', $event->id)->sum('price_categories.price'); | 
| 98 | 98 | |
| 99 | 99 | // Get the sales for each vendor | 
| 100 | -            foreach( $vendors as $vendor ) { | |
| 100 | +            foreach ($vendors as $vendor) { | |
| 101 | 101 |                  $eventResults[$vendor->name . '_sum'] = with(clone $viewQuery)->where('tickets.event_id', $event->id) | 
| 102 | 102 |                                                                              ->where('purchases.vendor_id', $vendor->id) | 
| 103 | 103 |                                                                              ->sum('price_categories.price'); |