Completed
Push — master ( 69d3a2...f2b4bb )
by Martin
05:33
created
app/Http/Controllers/BoxOffice/OnlineController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function switchTicketState(Ticket $ticket)
26 26
     {
27
-        if($ticket->state == 'no_show') {
27
+        if ($ticket->state == 'no_show') {
28 28
             $ticket->state = 'consumed';
29 29
         } else {
30 30
             $ticket->state = 'no_show';
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         // On the first call of this function the event has not an associated boxoffice purchase.
49 49
         // So we must create one.
50
-        if(!$event->boxoffice) {
50
+        if (!$event->boxoffice) {
51 51
             $purchase = new Purchase();
52 52
             $purchase->generateSecrets();
53 53
             $purchase->customer_name = 'Box Office';
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         Ticket::where('purchase_id', $purchase->id)->delete();
69 69
 
70 70
         // Freshly create the tickets sent for the box office
71
-        foreach($request->tickets as $categoryId => $count) {
71
+        foreach ($request->tickets as $categoryId => $count) {
72 72
             for ($i = 0; $i < $count; $i++) {
73 73
                 Ticket::create([
74 74
                     'random_id' => Str::random(32),
Please login to merge, or discard this patch.
app/Http/Requests/SetBoxOfficeSales.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             'tickets' => [
29 29
                 'required',
30 30
                 'array',
31
-                function ($attribute, $value, $fail) {
31
+                function($attribute, $value, $fail) {
32 32
                     foreach ($value as $category => $count) {
33 33
                         if (!PriceCategory::find($category)) {
34 34
                             $fail('Please select only offered price categories!');
Please login to merge, or discard this patch.