Completed
Push — master ( 2af048...aa410a )
by Martin
06:43
created
app/Http/Requests/SelectTickets.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             'tickets' => [
30 30
                 'required',
31 31
                 'array',
32
-                function ($attribute, $value, $fail) {
32
+                function($attribute, $value, $fail) {
33 33
                     foreach ($value as $category => $count) {
34 34
                         if (!PriceCategory::find($category)) {
35 35
                             $fail('Please select only offered price categories!');
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 'sometimes',
52 52
                 'required',
53 53
                 'array',
54
-                function ($attribute, $value, $fail) {
54
+                function($attribute, $value, $fail) {
55 55
                     // We do not check if the amount of selected seats, because we already do this in the checks
56 56
                     // for the amount of tickets. Since the amount of tickets and seats
57 57
                     // has to be equal, the previous check implicits that the seats are
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                     }
67 67
 
68 68
                     // Check if the seatIds are in the range of 1 - event's seats amount
69
-                    $validSeats = array_filter($value, function ($arrItem) use ($event) {
69
+                    $validSeats = array_filter($value, function($arrItem) use ($event) {
70 70
                         return $arrItem > 0 && $arrItem <= $event->seatMap->seats;
71 71
                     });
72 72
                     if (count($validSeats) != $seatsSum) {
Please login to merge, or discard this patch.
app/Http/Requests/SellTickets.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             'tickets' => [
30 30
                 'required',
31 31
                 'array',
32
-                function ($attribute, $value, $fail) {
32
+                function($attribute, $value, $fail) {
33 33
                     foreach ($value as $category => $count) {
34 34
                         if (!PriceCategory::find($category)) {
35 35
                             $fail('Please select only offered price categories!');
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 'sometimes',
52 52
                 'required',
53 53
                 'array',
54
-                function ($attribute, $value, $fail) {
54
+                function($attribute, $value, $fail) {
55 55
                     // We do not check if the amount of selected seats, because we already do this in the checks
56 56
                     // for the amount of tickets. Since the amount of tickets and seats
57 57
                     // has to be equal, the previous check implicits that the seats are
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                     }
67 67
 
68 68
                     // Check if the seatIds are in the range of 1 - event's seats amount
69
-                    $validSeats = array_filter($value, function ($arrItem) use ($event) {
69
+                    $validSeats = array_filter($value, function($arrItem) use ($event) {
70 70
                         return $arrItem > 0 && $arrItem <= $event->seatMap->seats;
71 71
                     });
72 72
                     if (count($validSeats) != $seatsSum) {
Please login to merge, or discard this patch.