@@ -29,7 +29,7 @@ discard block |
||
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 |
||
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 |
||
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) { |
@@ -29,7 +29,7 @@ discard block |
||
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 |
||
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 |
||
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) { |