@@ -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) { |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | 'tickets' => [ |
| 33 | 33 | 'required', |
| 34 | 34 | 'array', |
| 35 | - function ($attribute, $value, $fail) { |
|
| 35 | + function($attribute, $value, $fail) { |
|
| 36 | 36 | foreach ($value as $category => $count) { |
| 37 | 37 | if (!PriceCategory::find($category)) { |
| 38 | 38 | $fail('Please select only offered price categories!'); |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | 'sometimes', |
| 59 | 59 | 'required', |
| 60 | 60 | 'array', |
| 61 | - function ($attribute, $value, $fail) { |
|
| 61 | + function($attribute, $value, $fail) { |
|
| 62 | 62 | // We do not check if the amount of selected seats, because we already do this in the checks |
| 63 | 63 | // for the amount of tickets. Since the amount of tickets and seats |
| 64 | 64 | // has to be equal, the previous check implicits that the seats are |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | // Check if the seatIds are in the range of 1 - event's seats amount |
| 76 | - $validSeats = array_filter($value, function ($arrItem) use ($event) { |
|
| 76 | + $validSeats = array_filter($value, function($arrItem) use ($event) { |
|
| 77 | 77 | return $arrItem > 0 && $arrItem <= $event->seatMap->seats; |
| 78 | 78 | }); |
| 79 | 79 | if (count($validSeats) != $seatsSum) { |