From 1679396f42ee1d80c4782766748514e9983adc93 Mon Sep 17 00:00:00 2001 From: Dave Earley Date: Tue, 27 Aug 2024 19:36:09 -0700 Subject: [PATCH] clean up --- .../app/DomainObjects/AbstractDomainObject.php | 2 +- .../app/DomainObjects/AttendeeDomainObject.php | 2 +- backend/app/DomainObjects/OrderDomainObject.php | 2 +- .../app/DomainObjects/QuestionDomainObject.php | 2 +- backend/app/DomainObjects/TicketDomainObject.php | 4 ++-- .../DomainObjects/TicketPriceDomainObject.php | 2 +- backend/app/Events/EventUpdateEvent.php | 2 +- backend/app/Events/OrderStatusChangedEvent.php | 2 +- .../Exceptions/CannotAcceptPaymentException.php | 2 -- backend/app/Exceptions/UnauthorizedException.php | 2 +- backend/app/Exports/OrdersExport.php | 10 +++++----- backend/app/Exports/PromoCodesExport.php | 2 +- .../Http/Actions/Accounts/GetAccountAction.php | 2 +- .../Actions/Attendees/ExportAttendeesAction.php | 5 ++--- .../Actions/Attendees/GetAttendeesAction.php | 4 ++-- .../Http/Actions/Auth/ForgotPasswordAction.php | 4 ++-- .../Auth/ValidateResetPasswordTokenAction.php | 6 +++--- .../CheckInLists/UpdateCheckInListAction.php | 1 - .../EventSettings/GetEventSettingsAction.php | 4 ++-- .../app/Http/Actions/Events/GetEventsAction.php | 1 - .../Events/Images/GetEventImagesAction.php | 2 +- .../Events/Stats/GetEventCheckInStatsAction.php | 4 ++-- .../Http/Actions/Messages/GetMessagesAction.php | 4 ++-- .../Http/Actions/Orders/ExportOrdersAction.php | 4 ++-- .../app/Http/Actions/Orders/GetOrderAction.php | 2 +- .../app/Http/Actions/Orders/GetOrdersAction.php | 4 ++-- .../Stripe/CreatePaymentIntentActionPublic.php | 4 ++-- .../Stripe/GetPaymentIntentActionPublic.php | 2 +- .../Actions/PromoCodes/GetPromoCodeAction.php | 4 ++-- .../Actions/PromoCodes/GetPromoCodePublic.php | 4 ++-- .../Actions/PromoCodes/GetPromoCodesAction.php | 4 ++-- .../Actions/Questions/DeleteQuestionAction.php | 6 +++--- .../Http/Actions/Questions/GetQuestionAction.php | 7 ++----- .../Actions/Questions/GetQuestionsAction.php | 5 ++--- .../Questions/GetQuestionsPublicAction.php | 4 ++-- .../Actions/Questions/SortQuestionsAction.php | 6 +++--- .../Actions/TaxesAndFees/GetTaxOrFeeAction.php | 2 +- .../Http/Actions/Tickets/DeleteTicketAction.php | 6 +++--- .../app/Http/Actions/Tickets/GetTicketAction.php | 2 +- .../Http/Actions/Tickets/SortTicketsAction.php | 4 ++-- backend/app/Http/Actions/Users/GetMeAction.php | 2 +- backend/app/Http/Actions/Users/GetUserAction.php | 2 -- .../Actions/Users/ResendInvitationAction.php | 1 - backend/app/Http/DTO/QueryParamsDTO.php | 8 ++++---- backend/app/Http/Kernel.php | 16 ++++++++-------- .../Http/Middleware/RedirectIfAuthenticated.php | 2 +- .../Request/Event/CreateEventImageRequest.php | 2 +- .../Request/Event/UpdateEventStatusRequest.php | 2 +- .../Http/Request/Message/SendMessageRequest.php | 2 +- .../Request/TaxOrFee/CreateTaxOrFeeRequest.php | 2 +- .../app/Http/Request/User/CreateUserRequest.php | 2 +- .../app/Http/Request/User/UpdateMeRequest.php | 2 +- .../app/Http/Request/User/UpdateUserRequest.php | 2 +- backend/app/Models/Question.php | 2 +- backend/app/Models/StripePayment.php | 2 +- backend/app/Models/Ticket.php | 2 +- backend/app/Models/Traits/HasImages.php | 2 +- backend/app/Providers/AppServiceProvider.php | 8 ++++---- .../Eloquent/CapacityAssignmentRepository.php | 1 - .../Repository/Eloquent/MessageRepository.php | 4 ++-- .../Repository/Eloquent/PromoCodeRepository.php | 4 ++-- .../Repository/Eloquent/QuestionRepository.php | 6 +++--- .../Interfaces/EventRepositoryInterface.php | 3 +-- .../Interfaces/MessageRepositoryInterface.php | 2 +- .../Interfaces/PromoCodeRepositoryInterface.php | 2 +- .../Interfaces/QuestionRepositoryInterface.php | 2 +- .../Interfaces/RepositoryInterface.php | 2 +- .../Interfaces/UserRepositoryInterface.php | 2 +- .../app/Resources/Account/AccountResource.php | 2 +- .../StripeConnectAccountResponseResource.php | 2 +- backend/app/Resources/BaseResource.php | 1 - backend/app/Resources/Event/EventResource.php | 2 +- .../Resources/Event/EventSettingsResource.php | 2 +- .../Event/EventSettingsResourcePublic.php | 2 +- .../app/Resources/Message/MessageResource.php | 4 ++-- .../app/Resources/Order/OrderItemResource.php | 2 +- .../Resources/Order/OrderItemResourcePublic.php | 2 +- .../app/Resources/Order/OrderResourcePublic.php | 2 +- .../Resources/PromoCode/PromoCodeResource.php | 2 +- .../app/Resources/Question/QuestionResource.php | 3 +-- .../app/Resources/Ticket/TicketPriceResource.php | 2 +- .../Ticket/TicketPriceResourcePublic.php | 2 +- backend/app/Resources/Ticket/TicketResource.php | 4 ++-- .../Resources/Ticket/TicketResourcePublic.php | 4 ++-- .../CheckInList/CreateCheckInListService.php | 1 - .../Domain/Order/OrderManagementService.php | 1 - .../EventHandlers/AccountUpdateHandler.php | 2 +- .../EventHandlers/PaymentIntentFailedHandler.php | 6 +++--- .../Stripe/StripePaymentIntentRefundService.php | 4 ++-- ...ripePaymentUpdateFromPaymentIntentService.php | 2 +- .../Domain/Tax/TaxAndFeeCalculationService.php | 3 +-- .../Domain/Tax/TaxAndFeeRollupService.php | 2 +- .../Tax/TaxAndTicketAssociationService.php | 2 +- .../Handlers/Attendee/CreateAttendeeHandler.php | 2 -- .../Services/Handlers/Event/GetEventsHandler.php | 2 -- .../Handlers/Question/DeleteQuestionHandler.php | 4 ++-- .../Handlers/Question/SortQuestionsHandler.php | 2 +- .../Handlers/Ticket/CreateTicketHandler.php | 2 +- .../Handlers/Ticket/DeleteTicketHandler.php | 6 +++--- .../app/Validators/CompleteOrderValidator.php | 2 +- .../app/Validators/Rules/BaseQuestionRule.php | 8 ++++---- .../app/Validators/Rules/OrderQuestionRule.php | 2 +- 102 files changed, 149 insertions(+), 172 deletions(-) diff --git a/backend/app/DomainObjects/AbstractDomainObject.php b/backend/app/DomainObjects/AbstractDomainObject.php index 5db9b9f3..9f36e80f 100644 --- a/backend/app/DomainObjects/AbstractDomainObject.php +++ b/backend/app/DomainObjects/AbstractDomainObject.php @@ -2,10 +2,10 @@ namespace HiEvents\DomainObjects; +use HiEvents\DomainObjects\Interfaces\DomainObjectInterface; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Database\Eloquent\Model; use InvalidArgumentException; -use HiEvents\DomainObjects\Interfaces\DomainObjectInterface; abstract class AbstractDomainObject implements DomainObjectInterface, Arrayable { diff --git a/backend/app/DomainObjects/AttendeeDomainObject.php b/backend/app/DomainObjects/AttendeeDomainObject.php index a28ad7c5..c8101dd7 100644 --- a/backend/app/DomainObjects/AttendeeDomainObject.php +++ b/backend/app/DomainObjects/AttendeeDomainObject.php @@ -2,10 +2,10 @@ namespace HiEvents\DomainObjects; -use Illuminate\Support\Collection; use HiEvents\DomainObjects\Interfaces\IsFilterable; use HiEvents\DomainObjects\Interfaces\IsSortable; use HiEvents\DomainObjects\SortingAndFiltering\AllowedSorts; +use Illuminate\Support\Collection; class AttendeeDomainObject extends Generated\AttendeeDomainObjectAbstract implements IsSortable, IsFilterable { diff --git a/backend/app/DomainObjects/OrderDomainObject.php b/backend/app/DomainObjects/OrderDomainObject.php index c2b547b7..cf05e404 100644 --- a/backend/app/DomainObjects/OrderDomainObject.php +++ b/backend/app/DomainObjects/OrderDomainObject.php @@ -2,11 +2,11 @@ namespace HiEvents\DomainObjects; -use Illuminate\Support\Collection; use HiEvents\DomainObjects\Interfaces\IsSortable; use HiEvents\DomainObjects\SortingAndFiltering\AllowedSorts; use HiEvents\DomainObjects\Status\OrderPaymentStatus; use HiEvents\DomainObjects\Status\OrderStatus; +use Illuminate\Support\Collection; class OrderDomainObject extends Generated\OrderDomainObjectAbstract implements IsSortable { diff --git a/backend/app/DomainObjects/QuestionDomainObject.php b/backend/app/DomainObjects/QuestionDomainObject.php index b869011b..6ddd5a13 100644 --- a/backend/app/DomainObjects/QuestionDomainObject.php +++ b/backend/app/DomainObjects/QuestionDomainObject.php @@ -2,8 +2,8 @@ namespace HiEvents\DomainObjects; -use Illuminate\Support\Collection; use HiEvents\DomainObjects\Enums\QuestionTypeEnum; +use Illuminate\Support\Collection; class QuestionDomainObject extends Generated\QuestionDomainObjectAbstract { diff --git a/backend/app/DomainObjects/TicketDomainObject.php b/backend/app/DomainObjects/TicketDomainObject.php index 415a8572..78c6e33d 100644 --- a/backend/app/DomainObjects/TicketDomainObject.php +++ b/backend/app/DomainObjects/TicketDomainObject.php @@ -3,11 +3,11 @@ namespace HiEvents\DomainObjects; use Carbon\Carbon; -use Illuminate\Support\Collection; -use LogicException; use HiEvents\DomainObjects\Enums\TicketType; use HiEvents\DomainObjects\Interfaces\IsSortable; use HiEvents\DomainObjects\SortingAndFiltering\AllowedSorts; +use Illuminate\Support\Collection; +use LogicException; class TicketDomainObject extends Generated\TicketDomainObjectAbstract implements IsSortable { diff --git a/backend/app/DomainObjects/TicketPriceDomainObject.php b/backend/app/DomainObjects/TicketPriceDomainObject.php index 1e249eec..e4eb43fe 100644 --- a/backend/app/DomainObjects/TicketPriceDomainObject.php +++ b/backend/app/DomainObjects/TicketPriceDomainObject.php @@ -3,8 +3,8 @@ namespace HiEvents\DomainObjects; use Carbon\Carbon; -use LogicException; use HiEvents\Helper\Currency; +use LogicException; class TicketPriceDomainObject extends Generated\TicketPriceDomainObjectAbstract { diff --git a/backend/app/Events/EventUpdateEvent.php b/backend/app/Events/EventUpdateEvent.php index 72858ed3..77f5d7ab 100644 --- a/backend/app/Events/EventUpdateEvent.php +++ b/backend/app/Events/EventUpdateEvent.php @@ -2,8 +2,8 @@ namespace HiEvents\Events; -use Illuminate\Foundation\Events\Dispatchable; use HiEvents\DomainObjects\EventDomainObject; +use Illuminate\Foundation\Events\Dispatchable; class EventUpdateEvent { diff --git a/backend/app/Events/OrderStatusChangedEvent.php b/backend/app/Events/OrderStatusChangedEvent.php index b3c8fd03..e5d9f0b9 100644 --- a/backend/app/Events/OrderStatusChangedEvent.php +++ b/backend/app/Events/OrderStatusChangedEvent.php @@ -2,8 +2,8 @@ namespace HiEvents\Events; -use Illuminate\Foundation\Events\Dispatchable; use HiEvents\DomainObjects\OrderDomainObject; +use Illuminate\Foundation\Events\Dispatchable; class OrderStatusChangedEvent { diff --git a/backend/app/Exceptions/CannotAcceptPaymentException.php b/backend/app/Exceptions/CannotAcceptPaymentException.php index 20a62e8b..ddc2916b 100644 --- a/backend/app/Exceptions/CannotAcceptPaymentException.php +++ b/backend/app/Exceptions/CannotAcceptPaymentException.php @@ -2,8 +2,6 @@ namespace HiEvents\Exceptions; -use Exception; - class CannotAcceptPaymentException extends BaseException { diff --git a/backend/app/Exceptions/UnauthorizedException.php b/backend/app/Exceptions/UnauthorizedException.php index f055c8de..254fe167 100644 --- a/backend/app/Exceptions/UnauthorizedException.php +++ b/backend/app/Exceptions/UnauthorizedException.php @@ -2,9 +2,9 @@ namespace HiEvents\Exceptions; +use HiEvents\Http\ResponseCodes; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Throwable; -use HiEvents\Http\ResponseCodes; class UnauthorizedException extends AccessDeniedHttpException { diff --git a/backend/app/Exports/OrdersExport.php b/backend/app/Exports/OrdersExport.php index d881a7de..0073b2b2 100644 --- a/backend/app/Exports/OrdersExport.php +++ b/backend/app/Exports/OrdersExport.php @@ -3,6 +3,11 @@ namespace HiEvents\Exports; use Carbon\Carbon; +use HiEvents\DomainObjects\Enums\QuestionTypeEnum; +use HiEvents\DomainObjects\OrderDomainObject; +use HiEvents\DomainObjects\QuestionDomainObject; +use HiEvents\Resources\Order\OrderResource; +use HiEvents\Services\Domain\Question\QuestionAnswerFormatter; use Illuminate\Http\Resources\Json\AnonymousResourceCollection; use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Support\Collection; @@ -11,11 +16,6 @@ use Maatwebsite\Excel\Concerns\WithMapping; use Maatwebsite\Excel\Concerns\WithStyles; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; -use HiEvents\DomainObjects\Enums\QuestionTypeEnum; -use HiEvents\DomainObjects\OrderDomainObject; -use HiEvents\DomainObjects\QuestionDomainObject; -use HiEvents\Resources\Order\OrderResource; -use HiEvents\Services\Domain\Question\QuestionAnswerFormatter; class OrdersExport implements FromCollection, WithHeadings, WithMapping, WithStyles { diff --git a/backend/app/Exports/PromoCodesExport.php b/backend/app/Exports/PromoCodesExport.php index 571d5ffe..f75e7bee 100644 --- a/backend/app/Exports/PromoCodesExport.php +++ b/backend/app/Exports/PromoCodesExport.php @@ -2,12 +2,12 @@ namespace HiEvents\Exports; +use HiEvents\Resources\PromoCode\PromoCodeResource; use Maatwebsite\Excel\Concerns\FromCollection; use Maatwebsite\Excel\Concerns\WithHeadings; use Maatwebsite\Excel\Concerns\WithMapping; use Maatwebsite\Excel\Concerns\WithStyles; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; -use HiEvents\Resources\PromoCode\PromoCodeResource; class PromoCodesExport implements FromCollection, WithHeadings, WithMapping, WithStyles { diff --git a/backend/app/Http/Actions/Accounts/GetAccountAction.php b/backend/app/Http/Actions/Accounts/GetAccountAction.php index ad11d1b4..26f02806 100644 --- a/backend/app/Http/Actions/Accounts/GetAccountAction.php +++ b/backend/app/Http/Actions/Accounts/GetAccountAction.php @@ -4,11 +4,11 @@ namespace HiEvents\Http\Actions\Accounts; -use Illuminate\Http\JsonResponse; use HiEvents\DomainObjects\Enums\Role; use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Interfaces\AccountRepositoryInterface; use HiEvents\Resources\Account\AccountResource; +use Illuminate\Http\JsonResponse; class GetAccountAction extends BaseAction { diff --git a/backend/app/Http/Actions/Attendees/ExportAttendeesAction.php b/backend/app/Http/Actions/Attendees/ExportAttendeesAction.php index 7458eac2..3d36e38c 100644 --- a/backend/app/Http/Actions/Attendees/ExportAttendeesAction.php +++ b/backend/app/Http/Actions/Attendees/ExportAttendeesAction.php @@ -2,16 +2,15 @@ namespace HiEvents\Http\Actions\Attendees; -use Maatwebsite\Excel\Facades\Excel; -use Symfony\Component\HttpFoundation\BinaryFileResponse; use HiEvents\DomainObjects\Enums\QuestionBelongsTo; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\DomainObjects\QuestionAndAnswerViewDomainObject; use HiEvents\Exports\AttendeesExport; use HiEvents\Http\Actions\BaseAction; -use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Repository\Interfaces\AttendeeRepositoryInterface; use HiEvents\Repository\Interfaces\QuestionRepositoryInterface; +use Maatwebsite\Excel\Facades\Excel; +use Symfony\Component\HttpFoundation\BinaryFileResponse; class ExportAttendeesAction extends BaseAction { diff --git a/backend/app/Http/Actions/Attendees/GetAttendeesAction.php b/backend/app/Http/Actions/Attendees/GetAttendeesAction.php index 70af52c1..06ac1be2 100644 --- a/backend/app/Http/Actions/Attendees/GetAttendeesAction.php +++ b/backend/app/Http/Actions/Attendees/GetAttendeesAction.php @@ -2,8 +2,6 @@ namespace HiEvents\Http\Actions\Attendees; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Request; use HiEvents\DomainObjects\AttendeeDomainObject; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\DomainObjects\OrderDomainObject; @@ -12,6 +10,8 @@ use HiEvents\Repository\Eloquent\Value\Relationship; use HiEvents\Repository\Interfaces\AttendeeRepositoryInterface; use HiEvents\Resources\Attendee\AttendeeResource; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Request; /** * @todo move to handler diff --git a/backend/app/Http/Actions/Auth/ForgotPasswordAction.php b/backend/app/Http/Actions/Auth/ForgotPasswordAction.php index b205837a..693cbdab 100644 --- a/backend/app/Http/Actions/Auth/ForgotPasswordAction.php +++ b/backend/app/Http/Actions/Auth/ForgotPasswordAction.php @@ -2,11 +2,11 @@ namespace HiEvents\Http\Actions\Auth; -use Illuminate\Http\JsonResponse; -use Symfony\Component\Routing\Exception\ResourceNotFoundException; use HiEvents\Http\Actions\BaseAction; use HiEvents\Http\Request\Auth\ForgotPasswordRequest; use HiEvents\Services\Handlers\Auth\ForgotPasswordHandler; +use Illuminate\Http\JsonResponse; +use Symfony\Component\Routing\Exception\ResourceNotFoundException; class ForgotPasswordAction extends BaseAction { diff --git a/backend/app/Http/Actions/Auth/ValidateResetPasswordTokenAction.php b/backend/app/Http/Actions/Auth/ValidateResetPasswordTokenAction.php index 0b3cbd9b..51e6a1c4 100644 --- a/backend/app/Http/Actions/Auth/ValidateResetPasswordTokenAction.php +++ b/backend/app/Http/Actions/Auth/ValidateResetPasswordTokenAction.php @@ -2,13 +2,13 @@ namespace HiEvents\Http\Actions\Auth; +use HiEvents\Exceptions\InvalidPasswordResetTokenException; +use HiEvents\Http\Actions\BaseAction; +use HiEvents\Services\Handlers\Auth\ValidateResetPasswordTokenHandler; use Illuminate\Http\Request; use Illuminate\Http\Response; use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Throwable; -use HiEvents\Exceptions\InvalidPasswordResetTokenException; -use HiEvents\Http\Actions\BaseAction; -use HiEvents\Services\Handlers\Auth\ValidateResetPasswordTokenHandler; class ValidateResetPasswordTokenAction extends BaseAction { diff --git a/backend/app/Http/Actions/CheckInLists/UpdateCheckInListAction.php b/backend/app/Http/Actions/CheckInLists/UpdateCheckInListAction.php index b98050e7..5599617d 100644 --- a/backend/app/Http/Actions/CheckInLists/UpdateCheckInListAction.php +++ b/backend/app/Http/Actions/CheckInLists/UpdateCheckInListAction.php @@ -2,7 +2,6 @@ namespace HiEvents\Http\Actions\CheckInLists; -use Carbon\Carbon; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Http\Request\CheckInList\UpsertCheckInListRequest; diff --git a/backend/app/Http/Actions/EventSettings/GetEventSettingsAction.php b/backend/app/Http/Actions/EventSettings/GetEventSettingsAction.php index db20b7c0..9b6a59d9 100644 --- a/backend/app/Http/Actions/EventSettings/GetEventSettingsAction.php +++ b/backend/app/Http/Actions/EventSettings/GetEventSettingsAction.php @@ -2,12 +2,12 @@ namespace HiEvents\Http\Actions\EventSettings; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Response; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Interfaces\EventSettingsRepositoryInterface; use HiEvents\Resources\Event\EventSettingsResource; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Response; class GetEventSettingsAction extends BaseAction { diff --git a/backend/app/Http/Actions/Events/GetEventsAction.php b/backend/app/Http/Actions/Events/GetEventsAction.php index 469e3132..b9d17fec 100644 --- a/backend/app/Http/Actions/Events/GetEventsAction.php +++ b/backend/app/Http/Actions/Events/GetEventsAction.php @@ -7,7 +7,6 @@ use HiEvents\DomainObjects\Enums\Role; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Http\Actions\BaseAction; -use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Resources\Event\EventResource; use HiEvents\Services\Handlers\Event\DTO\GetEventsDTO; use HiEvents\Services\Handlers\Event\GetEventsHandler; diff --git a/backend/app/Http/Actions/Events/Images/GetEventImagesAction.php b/backend/app/Http/Actions/Events/Images/GetEventImagesAction.php index ac3b3ad9..383909dc 100644 --- a/backend/app/Http/Actions/Events/Images/GetEventImagesAction.php +++ b/backend/app/Http/Actions/Events/Images/GetEventImagesAction.php @@ -2,12 +2,12 @@ namespace HiEvents\Http\Actions\Events\Images; -use Illuminate\Http\JsonResponse; use HiEvents\DomainObjects\Enums\EventImageType; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Interfaces\ImageRepositoryInterface; use HiEvents\Resources\Image\ImageResource; +use Illuminate\Http\JsonResponse; class GetEventImagesAction extends BaseAction { diff --git a/backend/app/Http/Actions/Events/Stats/GetEventCheckInStatsAction.php b/backend/app/Http/Actions/Events/Stats/GetEventCheckInStatsAction.php index d27466a3..0f8bbb91 100644 --- a/backend/app/Http/Actions/Events/Stats/GetEventCheckInStatsAction.php +++ b/backend/app/Http/Actions/Events/Stats/GetEventCheckInStatsAction.php @@ -2,11 +2,11 @@ namespace HiEvents\Http\Actions\Events\Stats; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Resources\Json\JsonResource; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Services\Handlers\Event\GetEventCheckInStatsHandler; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Resources\Json\JsonResource; class GetEventCheckInStatsAction extends BaseAction { diff --git a/backend/app/Http/Actions/Messages/GetMessagesAction.php b/backend/app/Http/Actions/Messages/GetMessagesAction.php index d1846a37..552d7f8a 100644 --- a/backend/app/Http/Actions/Messages/GetMessagesAction.php +++ b/backend/app/Http/Actions/Messages/GetMessagesAction.php @@ -2,8 +2,6 @@ namespace HiEvents\Http\Actions\Messages; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Request; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\DomainObjects\MessageDomainObject; use HiEvents\DomainObjects\UserDomainObject; @@ -12,6 +10,8 @@ use HiEvents\Repository\Eloquent\Value\Relationship; use HiEvents\Repository\Interfaces\MessageRepositoryInterface; use HiEvents\Resources\Message\MessageResource; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Request; class GetMessagesAction extends BaseAction { diff --git a/backend/app/Http/Actions/Orders/ExportOrdersAction.php b/backend/app/Http/Actions/Orders/ExportOrdersAction.php index 4267fa9f..3acbbd5f 100644 --- a/backend/app/Http/Actions/Orders/ExportOrdersAction.php +++ b/backend/app/Http/Actions/Orders/ExportOrdersAction.php @@ -2,8 +2,6 @@ namespace HiEvents\Http\Actions\Orders; -use Maatwebsite\Excel\Facades\Excel; -use Symfony\Component\HttpFoundation\BinaryFileResponse; use HiEvents\DomainObjects\Enums\QuestionBelongsTo; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\DomainObjects\QuestionAndAnswerViewDomainObject; @@ -12,6 +10,8 @@ use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Repository\Interfaces\OrderRepositoryInterface; use HiEvents\Repository\Interfaces\QuestionRepositoryInterface; +use Maatwebsite\Excel\Facades\Excel; +use Symfony\Component\HttpFoundation\BinaryFileResponse; class ExportOrdersAction extends BaseAction { diff --git a/backend/app/Http/Actions/Orders/GetOrderAction.php b/backend/app/Http/Actions/Orders/GetOrderAction.php index 1915f47b..9773221e 100644 --- a/backend/app/Http/Actions/Orders/GetOrderAction.php +++ b/backend/app/Http/Actions/Orders/GetOrderAction.php @@ -2,13 +2,13 @@ namespace HiEvents\Http\Actions\Orders; -use Illuminate\Http\JsonResponse; use HiEvents\DomainObjects\AttendeeDomainObject; use HiEvents\DomainObjects\OrderItemDomainObject; use HiEvents\DomainObjects\QuestionAndAnswerViewDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Interfaces\OrderRepositoryInterface; use HiEvents\Resources\Order\OrderResource; +use Illuminate\Http\JsonResponse; class GetOrderAction extends BaseAction { diff --git a/backend/app/Http/Actions/Orders/GetOrdersAction.php b/backend/app/Http/Actions/Orders/GetOrdersAction.php index d45af635..94824edc 100644 --- a/backend/app/Http/Actions/Orders/GetOrdersAction.php +++ b/backend/app/Http/Actions/Orders/GetOrdersAction.php @@ -2,8 +2,6 @@ namespace HiEvents\Http\Actions\Orders; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Request; use HiEvents\DomainObjects\AttendeeDomainObject; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\DomainObjects\OrderDomainObject; @@ -12,6 +10,8 @@ use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Repository\Interfaces\OrderRepositoryInterface; use HiEvents\Resources\Order\OrderResource; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Request; class GetOrdersAction extends BaseAction { diff --git a/backend/app/Http/Actions/Orders/Payment/Stripe/CreatePaymentIntentActionPublic.php b/backend/app/Http/Actions/Orders/Payment/Stripe/CreatePaymentIntentActionPublic.php index f7128ce6..06516697 100644 --- a/backend/app/Http/Actions/Orders/Payment/Stripe/CreatePaymentIntentActionPublic.php +++ b/backend/app/Http/Actions/Orders/Payment/Stripe/CreatePaymentIntentActionPublic.php @@ -2,11 +2,11 @@ namespace HiEvents\Http\Actions\Orders\Payment\Stripe; -use Illuminate\Http\JsonResponse; -use Symfony\Component\HttpFoundation\Response; use HiEvents\Exceptions\Stripe\CreatePaymentIntentFailedException; use HiEvents\Http\Actions\BaseAction; use HiEvents\Services\Handlers\Order\Payment\Stripe\CreatePaymentIntentHandler; +use Illuminate\Http\JsonResponse; +use Symfony\Component\HttpFoundation\Response; class CreatePaymentIntentActionPublic extends BaseAction { diff --git a/backend/app/Http/Actions/Orders/Payment/Stripe/GetPaymentIntentActionPublic.php b/backend/app/Http/Actions/Orders/Payment/Stripe/GetPaymentIntentActionPublic.php index e4a37b1e..05dd6bf7 100644 --- a/backend/app/Http/Actions/Orders/Payment/Stripe/GetPaymentIntentActionPublic.php +++ b/backend/app/Http/Actions/Orders/Payment/Stripe/GetPaymentIntentActionPublic.php @@ -2,9 +2,9 @@ namespace HiEvents\Http\Actions\Orders\Payment\Stripe; -use Illuminate\Http\JsonResponse; use HiEvents\Http\Actions\BaseAction; use HiEvents\Services\Handlers\Order\Payment\Stripe\GetPaymentIntentHandler; +use Illuminate\Http\JsonResponse; class GetPaymentIntentActionPublic extends BaseAction { diff --git a/backend/app/Http/Actions/PromoCodes/GetPromoCodeAction.php b/backend/app/Http/Actions/PromoCodes/GetPromoCodeAction.php index 464a2f91..8432a9c6 100644 --- a/backend/app/Http/Actions/PromoCodes/GetPromoCodeAction.php +++ b/backend/app/Http/Actions/PromoCodes/GetPromoCodeAction.php @@ -2,12 +2,12 @@ namespace HiEvents\Http\Actions\PromoCodes; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Request; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Interfaces\PromoCodeRepositoryInterface; use HiEvents\Resources\PromoCode\PromoCodeResource; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Request; class GetPromoCodeAction extends BaseAction { diff --git a/backend/app/Http/Actions/PromoCodes/GetPromoCodePublic.php b/backend/app/Http/Actions/PromoCodes/GetPromoCodePublic.php index 15b6f86a..7d97aee3 100644 --- a/backend/app/Http/Actions/PromoCodes/GetPromoCodePublic.php +++ b/backend/app/Http/Actions/PromoCodes/GetPromoCodePublic.php @@ -2,11 +2,11 @@ namespace HiEvents\Http\Actions\PromoCodes; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Request; use HiEvents\DomainObjects\Generated\PromoCodeDomainObjectAbstract; use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Interfaces\PromoCodeRepositoryInterface; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Request; class GetPromoCodePublic extends BaseAction { diff --git a/backend/app/Http/Actions/PromoCodes/GetPromoCodesAction.php b/backend/app/Http/Actions/PromoCodes/GetPromoCodesAction.php index b8beb442..ac85b16e 100644 --- a/backend/app/Http/Actions/PromoCodes/GetPromoCodesAction.php +++ b/backend/app/Http/Actions/PromoCodes/GetPromoCodesAction.php @@ -2,14 +2,14 @@ namespace HiEvents\Http\Actions\PromoCodes; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Request; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\DomainObjects\PromoCodeDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Repository\Interfaces\PromoCodeRepositoryInterface; use HiEvents\Resources\PromoCode\PromoCodeResource; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Request; class GetPromoCodesAction extends BaseAction { diff --git a/backend/app/Http/Actions/Questions/DeleteQuestionAction.php b/backend/app/Http/Actions/Questions/DeleteQuestionAction.php index 0868e6e7..e30bbc17 100644 --- a/backend/app/Http/Actions/Questions/DeleteQuestionAction.php +++ b/backend/app/Http/Actions/Questions/DeleteQuestionAction.php @@ -2,13 +2,13 @@ namespace HiEvents\Http\Actions\Questions; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Response; -use Throwable; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Exceptions\CannotDeleteEntityException; use HiEvents\Http\Actions\BaseAction; use HiEvents\Services\Handlers\Question\DeleteQuestionHandler; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Response; +use Throwable; class DeleteQuestionAction extends BaseAction { diff --git a/backend/app/Http/Actions/Questions/GetQuestionAction.php b/backend/app/Http/Actions/Questions/GetQuestionAction.php index d4b247df..6759fd3d 100644 --- a/backend/app/Http/Actions/Questions/GetQuestionAction.php +++ b/backend/app/Http/Actions/Questions/GetQuestionAction.php @@ -2,16 +2,13 @@ namespace HiEvents\Http\Actions\Questions; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Request; use HiEvents\DomainObjects\EventDomainObject; -use HiEvents\DomainObjects\TaxAndFeesDomainObject; use HiEvents\DomainObjects\TicketDomainObject; -use HiEvents\DomainObjects\TicketPriceDomainObject; use HiEvents\Http\Actions\BaseAction; -use HiEvents\Repository\Eloquent\Value\Relationship; use HiEvents\Repository\Interfaces\QuestionRepositoryInterface; use HiEvents\Resources\Question\QuestionResource; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Request; class GetQuestionAction extends BaseAction { diff --git a/backend/app/Http/Actions/Questions/GetQuestionsAction.php b/backend/app/Http/Actions/Questions/GetQuestionsAction.php index e184ba54..fa9fe3a4 100644 --- a/backend/app/Http/Actions/Questions/GetQuestionsAction.php +++ b/backend/app/Http/Actions/Questions/GetQuestionsAction.php @@ -2,16 +2,15 @@ namespace HiEvents\Http\Actions\Questions; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Request; use HiEvents\DomainObjects\EventDomainObject; -use HiEvents\DomainObjects\Generated\QuestionDomainObjectAbstract; use HiEvents\DomainObjects\TicketDomainObject; use HiEvents\DomainObjects\TicketPriceDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Eloquent\Value\Relationship; use HiEvents\Repository\Interfaces\QuestionRepositoryInterface; use HiEvents\Resources\Question\QuestionResource; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Request; class GetQuestionsAction extends BaseAction { diff --git a/backend/app/Http/Actions/Questions/GetQuestionsPublicAction.php b/backend/app/Http/Actions/Questions/GetQuestionsPublicAction.php index 7744041b..8fe82502 100644 --- a/backend/app/Http/Actions/Questions/GetQuestionsPublicAction.php +++ b/backend/app/Http/Actions/Questions/GetQuestionsPublicAction.php @@ -2,13 +2,13 @@ namespace HiEvents\Http\Actions\Questions; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Request; use HiEvents\DomainObjects\Generated\QuestionDomainObjectAbstract; use HiEvents\DomainObjects\TicketDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Interfaces\QuestionRepositoryInterface; use HiEvents\Resources\Question\QuestionResourcePublic; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Request; class GetQuestionsPublicAction extends BaseAction { diff --git a/backend/app/Http/Actions/Questions/SortQuestionsAction.php b/backend/app/Http/Actions/Questions/SortQuestionsAction.php index a7e5bc62..0089ffc2 100644 --- a/backend/app/Http/Actions/Questions/SortQuestionsAction.php +++ b/backend/app/Http/Actions/Questions/SortQuestionsAction.php @@ -2,13 +2,13 @@ namespace HiEvents\Http\Actions\Questions; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Response; -use Symfony\Component\Routing\Exception\ResourceNotFoundException; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Http\Request\Questions\SortQuestionsRequest; use HiEvents\Services\Handlers\Question\SortQuestionsHandler; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Response; +use Symfony\Component\Routing\Exception\ResourceNotFoundException; class SortQuestionsAction extends BaseAction { diff --git a/backend/app/Http/Actions/TaxesAndFees/GetTaxOrFeeAction.php b/backend/app/Http/Actions/TaxesAndFees/GetTaxOrFeeAction.php index bbb8f21b..f5007b8e 100644 --- a/backend/app/Http/Actions/TaxesAndFees/GetTaxOrFeeAction.php +++ b/backend/app/Http/Actions/TaxesAndFees/GetTaxOrFeeAction.php @@ -2,11 +2,11 @@ namespace HiEvents\Http\Actions\TaxesAndFees; -use Illuminate\Http\JsonResponse; use HiEvents\DomainObjects\AccountDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Interfaces\TaxAndFeeRepositoryInterface; use HiEvents\Resources\Tax\TaxAndFeeResource; +use Illuminate\Http\JsonResponse; class GetTaxOrFeeAction extends BaseAction { diff --git a/backend/app/Http/Actions/Tickets/DeleteTicketAction.php b/backend/app/Http/Actions/Tickets/DeleteTicketAction.php index 8b1274bb..7c51cad3 100644 --- a/backend/app/Http/Actions/Tickets/DeleteTicketAction.php +++ b/backend/app/Http/Actions/Tickets/DeleteTicketAction.php @@ -4,13 +4,13 @@ namespace HiEvents\Http\Actions\Tickets; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Response; -use Symfony\Component\HttpFoundation\Response as HttpResponse; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Exceptions\CannotDeleteEntityException; use HiEvents\Http\Actions\BaseAction; use HiEvents\Services\Handlers\Ticket\DeleteTicketHandler; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Response; +use Symfony\Component\HttpFoundation\Response as HttpResponse; class DeleteTicketAction extends BaseAction { diff --git a/backend/app/Http/Actions/Tickets/GetTicketAction.php b/backend/app/Http/Actions/Tickets/GetTicketAction.php index 03a31a39..be28a9f4 100644 --- a/backend/app/Http/Actions/Tickets/GetTicketAction.php +++ b/backend/app/Http/Actions/Tickets/GetTicketAction.php @@ -4,7 +4,6 @@ namespace HiEvents\Http\Actions\Tickets; -use Illuminate\Http\JsonResponse; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\DomainObjects\Generated\TicketDomainObjectAbstract; use HiEvents\DomainObjects\TaxAndFeesDomainObject; @@ -12,6 +11,7 @@ use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Interfaces\TicketRepositoryInterface; use HiEvents\Resources\Ticket\TicketResource; +use Illuminate\Http\JsonResponse; class GetTicketAction extends BaseAction { diff --git a/backend/app/Http/Actions/Tickets/SortTicketsAction.php b/backend/app/Http/Actions/Tickets/SortTicketsAction.php index 37bc3162..1e177757 100644 --- a/backend/app/Http/Actions/Tickets/SortTicketsAction.php +++ b/backend/app/Http/Actions/Tickets/SortTicketsAction.php @@ -2,13 +2,13 @@ namespace HiEvents\Http\Actions\Tickets; -use Illuminate\Http\JsonResponse; -use Illuminate\Http\Response; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Exceptions\ResourceConflictException; use HiEvents\Http\Actions\BaseAction; use HiEvents\Http\Request\Ticket\SortTicketsRequest; use HiEvents\Services\Handlers\Ticket\SortTicketsHandler; +use Illuminate\Http\JsonResponse; +use Illuminate\Http\Response; class SortTicketsAction extends BaseAction { diff --git a/backend/app/Http/Actions/Users/GetMeAction.php b/backend/app/Http/Actions/Users/GetMeAction.php index 00d1e64f..ff95cf98 100644 --- a/backend/app/Http/Actions/Users/GetMeAction.php +++ b/backend/app/Http/Actions/Users/GetMeAction.php @@ -2,9 +2,9 @@ namespace HiEvents\Http\Actions\Users; -use Illuminate\Http\JsonResponse; use HiEvents\Http\Actions\Auth\BaseAuthAction; use HiEvents\Resources\User\UserResource; +use Illuminate\Http\JsonResponse; class GetMeAction extends BaseAuthAction { diff --git a/backend/app/Http/Actions/Users/GetUserAction.php b/backend/app/Http/Actions/Users/GetUserAction.php index 69bf928e..a1d296de 100644 --- a/backend/app/Http/Actions/Users/GetUserAction.php +++ b/backend/app/Http/Actions/Users/GetUserAction.php @@ -4,10 +4,8 @@ namespace HiEvents\Http\Actions\Users; -use HiEvents\DomainObjects\AccountUserDomainObject; use HiEvents\DomainObjects\Enums\Role; use HiEvents\Http\Actions\BaseAction; -use HiEvents\Repository\Eloquent\Value\Relationship; use HiEvents\Repository\Interfaces\UserRepositoryInterface; use HiEvents\Resources\User\UserResource; use Illuminate\Http\JsonResponse; diff --git a/backend/app/Http/Actions/Users/ResendInvitationAction.php b/backend/app/Http/Actions/Users/ResendInvitationAction.php index 814e7436..bb0cc0ff 100644 --- a/backend/app/Http/Actions/Users/ResendInvitationAction.php +++ b/backend/app/Http/Actions/Users/ResendInvitationAction.php @@ -4,7 +4,6 @@ use HiEvents\DomainObjects\Enums\Role; use HiEvents\DomainObjects\Status\UserStatus; -use HiEvents\DomainObjects\UserDomainObject; use HiEvents\Http\Actions\BaseAction; use HiEvents\Repository\Interfaces\UserRepositoryInterface; use HiEvents\Services\Domain\User\SendUserInvitationService; diff --git a/backend/app/Http/DTO/QueryParamsDTO.php b/backend/app/Http/DTO/QueryParamsDTO.php index 713766a4..6e351bd9 100644 --- a/backend/app/Http/DTO/QueryParamsDTO.php +++ b/backend/app/Http/DTO/QueryParamsDTO.php @@ -10,8 +10,8 @@ class QueryParamsDTO extends BaseDTO public function __construct( public readonly ?int $page = 1, public readonly ?int $per_page = 25, - public readonly ?string $sort_by = 'id', - public readonly ?string $sort_direction = 'desc', + public readonly ?string $sort_by = null, + public readonly ?string $sort_direction = null, public readonly ?string $query = null, /** @var Collection */ public readonly ?Collection $filter_fields = null, @@ -37,8 +37,8 @@ public static function fromArray(array $data): self return new self( page: $data['page'] ?? 1, per_page: $data['per_page'] ?? 25, - sort_by: $data['sort_by'] ?? 'id', - sort_direction: $data['sort_direction'] ?? 'desc', + sort_by: $data['sort_by'] ?? null, + sort_direction: $data['sort_direction'] ?? null, query: $data['query'] ?? null, filter_fields: $filterFields, includes: $data['includes'] ?? null, diff --git a/backend/app/Http/Kernel.php b/backend/app/Http/Kernel.php index 50ae0df0..9891f7b2 100644 --- a/backend/app/Http/Kernel.php +++ b/backend/app/Http/Kernel.php @@ -2,8 +2,16 @@ namespace HiEvents\Http; +use HiEvents\Http\Middleware\Authenticate; +use HiEvents\Http\Middleware\EncryptCookies; +use HiEvents\Http\Middleware\PreventRequestsDuringMaintenance; +use HiEvents\Http\Middleware\RedirectIfAuthenticated; use HiEvents\Http\Middleware\SetAccountContext; use HiEvents\Http\Middleware\SetUserLocaleMiddleware; +use HiEvents\Http\Middleware\TrimStrings; +use HiEvents\Http\Middleware\TrustProxies; +use HiEvents\Http\Middleware\ValidateSignature; +use HiEvents\Http\Middleware\VerifyCsrfToken; use Illuminate\Auth\Middleware\AuthenticateWithBasicAuth; use Illuminate\Auth\Middleware\Authorize; use Illuminate\Auth\Middleware\EnsureEmailIsVerified; @@ -19,14 +27,6 @@ use Illuminate\Session\Middleware\AuthenticateSession; use Illuminate\Session\Middleware\StartSession; use Illuminate\View\Middleware\ShareErrorsFromSession; -use HiEvents\Http\Middleware\Authenticate; -use HiEvents\Http\Middleware\EncryptCookies; -use HiEvents\Http\Middleware\PreventRequestsDuringMaintenance; -use HiEvents\Http\Middleware\RedirectIfAuthenticated; -use HiEvents\Http\Middleware\TrimStrings; -use HiEvents\Http\Middleware\TrustProxies; -use HiEvents\Http\Middleware\ValidateSignature; -use HiEvents\Http\Middleware\VerifyCsrfToken; class Kernel extends HttpKernel { diff --git a/backend/app/Http/Middleware/RedirectIfAuthenticated.php b/backend/app/Http/Middleware/RedirectIfAuthenticated.php index 833f7c1d..61c9de96 100644 --- a/backend/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/backend/app/Http/Middleware/RedirectIfAuthenticated.php @@ -3,10 +3,10 @@ namespace HiEvents\Http\Middleware; use Closure; +use HiEvents\Providers\RouteServiceProvider; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Symfony\Component\HttpFoundation\Response; -use HiEvents\Providers\RouteServiceProvider; class RedirectIfAuthenticated { diff --git a/backend/app/Http/Request/Event/CreateEventImageRequest.php b/backend/app/Http/Request/Event/CreateEventImageRequest.php index be266c5b..4150d221 100644 --- a/backend/app/Http/Request/Event/CreateEventImageRequest.php +++ b/backend/app/Http/Request/Event/CreateEventImageRequest.php @@ -2,9 +2,9 @@ namespace HiEvents\Http\Request\Event; +use HiEvents\DomainObjects\Enums\EventImageType; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; -use HiEvents\DomainObjects\Enums\EventImageType; class CreateEventImageRequest extends FormRequest { diff --git a/backend/app/Http/Request/Event/UpdateEventStatusRequest.php b/backend/app/Http/Request/Event/UpdateEventStatusRequest.php index d0464b53..e0e2268f 100644 --- a/backend/app/Http/Request/Event/UpdateEventStatusRequest.php +++ b/backend/app/Http/Request/Event/UpdateEventStatusRequest.php @@ -2,9 +2,9 @@ namespace HiEvents\Http\Request\Event; -use Illuminate\Validation\Rule; use HiEvents\DomainObjects\Status\EventStatus; use HiEvents\Http\Request\BaseRequest; +use Illuminate\Validation\Rule; class UpdateEventStatusRequest extends BaseRequest { diff --git a/backend/app/Http/Request/Message/SendMessageRequest.php b/backend/app/Http/Request/Message/SendMessageRequest.php index e518914e..35f69c7b 100644 --- a/backend/app/Http/Request/Message/SendMessageRequest.php +++ b/backend/app/Http/Request/Message/SendMessageRequest.php @@ -2,9 +2,9 @@ namespace HiEvents\Http\Request\Message; +use HiEvents\DomainObjects\Enums\MessageTypeEnum; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rules\In; -use HiEvents\DomainObjects\Enums\MessageTypeEnum; class SendMessageRequest extends FormRequest { diff --git a/backend/app/Http/Request/TaxOrFee/CreateTaxOrFeeRequest.php b/backend/app/Http/Request/TaxOrFee/CreateTaxOrFeeRequest.php index 721c3b7a..c5f64e68 100644 --- a/backend/app/Http/Request/TaxOrFee/CreateTaxOrFeeRequest.php +++ b/backend/app/Http/Request/TaxOrFee/CreateTaxOrFeeRequest.php @@ -2,10 +2,10 @@ namespace HiEvents\Http\Request\TaxOrFee; -use Illuminate\Validation\Rule; use HiEvents\DomainObjects\Enums\TaxCalculationType; use HiEvents\DomainObjects\Enums\TaxType; use HiEvents\Http\Request\BaseRequest; +use Illuminate\Validation\Rule; class CreateTaxOrFeeRequest extends BaseRequest { diff --git a/backend/app/Http/Request/User/CreateUserRequest.php b/backend/app/Http/Request/User/CreateUserRequest.php index 508232bc..9b5fffe9 100644 --- a/backend/app/Http/Request/User/CreateUserRequest.php +++ b/backend/app/Http/Request/User/CreateUserRequest.php @@ -4,9 +4,9 @@ namespace HiEvents\Http\Request\User; -use Illuminate\Validation\Rule; use HiEvents\DomainObjects\Enums\Role; use HiEvents\Http\Request\BaseRequest; +use Illuminate\Validation\Rule; class CreateUserRequest extends BaseRequest { diff --git a/backend/app/Http/Request/User/UpdateMeRequest.php b/backend/app/Http/Request/User/UpdateMeRequest.php index 2970bb34..7d379062 100644 --- a/backend/app/Http/Request/User/UpdateMeRequest.php +++ b/backend/app/Http/Request/User/UpdateMeRequest.php @@ -2,9 +2,9 @@ namespace HiEvents\Http\Request\User; +use HiEvents\Http\Request\BaseRequest; use HiEvents\Locale; use Illuminate\Validation\Rules\Password; -use HiEvents\Http\Request\BaseRequest; class UpdateMeRequest extends BaseRequest { diff --git a/backend/app/Http/Request/User/UpdateUserRequest.php b/backend/app/Http/Request/User/UpdateUserRequest.php index d0712642..6a8a2726 100644 --- a/backend/app/Http/Request/User/UpdateUserRequest.php +++ b/backend/app/Http/Request/User/UpdateUserRequest.php @@ -2,11 +2,11 @@ namespace HiEvents\Http\Request\User; -use Illuminate\Validation\Rule; use HiEvents\DomainObjects\Enums\Role; use HiEvents\DomainObjects\Status\UserStatus; use HiEvents\Http\Request\BaseRequest; use HiEvents\Validators\Rules\RulesHelper; +use Illuminate\Validation\Rule; class UpdateUserRequest extends BaseRequest { diff --git a/backend/app/Models/Question.php b/backend/app/Models/Question.php index d6acb850..1fa2744f 100644 --- a/backend/app/Models/Question.php +++ b/backend/app/Models/Question.php @@ -2,8 +2,8 @@ namespace HiEvents\Models; -use Illuminate\Database\Eloquent\Relations\BelongsToMany; use HiEvents\DomainObjects\Generated\QuestionDomainObjectAbstract; +use Illuminate\Database\Eloquent\Relations\BelongsToMany; class Question extends BaseModel { diff --git a/backend/app/Models/StripePayment.php b/backend/app/Models/StripePayment.php index 37e01dd8..b34265ef 100644 --- a/backend/app/Models/StripePayment.php +++ b/backend/app/Models/StripePayment.php @@ -2,8 +2,8 @@ namespace HiEvents\Models; -use Illuminate\Database\Eloquent\Relations\BelongsTo; use HiEvents\DomainObjects\Generated\StripePaymentDomainObjectAbstract; +use Illuminate\Database\Eloquent\Relations\BelongsTo; class StripePayment extends BaseModel { diff --git a/backend/app/Models/Ticket.php b/backend/app/Models/Ticket.php index 397c16fc..dea99092 100644 --- a/backend/app/Models/Ticket.php +++ b/backend/app/Models/Ticket.php @@ -4,9 +4,9 @@ namespace HiEvents\Models; +use HiEvents\DomainObjects\Generated\TicketDomainObjectAbstract; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; -use HiEvents\DomainObjects\Generated\TicketDomainObjectAbstract; class Ticket extends BaseModel { diff --git a/backend/app/Models/Traits/HasImages.php b/backend/app/Models/Traits/HasImages.php index 403c44f4..12d0fa8f 100644 --- a/backend/app/Models/Traits/HasImages.php +++ b/backend/app/Models/Traits/HasImages.php @@ -2,8 +2,8 @@ namespace HiEvents\Models\Traits; -use Illuminate\Database\Eloquent\Relations\MorphMany; use HiEvents\Models\Image; +use Illuminate\Database\Eloquent\Relations\MorphMany; trait HasImages { diff --git a/backend/app/Providers/AppServiceProvider.php b/backend/app/Providers/AppServiceProvider.php index ace64af3..3499b364 100644 --- a/backend/app/Providers/AppServiceProvider.php +++ b/backend/app/Providers/AppServiceProvider.php @@ -5,16 +5,16 @@ use Doctrine\DBAL\Configuration; use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\Schema\AbstractSchemaManager; +use HiEvents\DomainObjects\EventDomainObject; +use HiEvents\DomainObjects\OrganizerDomainObject; +use HiEvents\Models\Event; +use HiEvents\Models\Organizer; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; use Illuminate\Support\ServiceProvider; use Stripe\StripeClient; -use HiEvents\DomainObjects\EventDomainObject; -use HiEvents\DomainObjects\OrganizerDomainObject; -use HiEvents\Models\Event; -use HiEvents\Models\Organizer; class AppServiceProvider extends ServiceProvider { diff --git a/backend/app/Repository/Eloquent/CapacityAssignmentRepository.php b/backend/app/Repository/Eloquent/CapacityAssignmentRepository.php index 8cc1cab4..089e05ed 100644 --- a/backend/app/Repository/Eloquent/CapacityAssignmentRepository.php +++ b/backend/app/Repository/Eloquent/CapacityAssignmentRepository.php @@ -4,7 +4,6 @@ use HiEvents\DomainObjects\CapacityAssignmentDomainObject; use HiEvents\DomainObjects\Generated\CapacityAssignmentDomainObjectAbstract; -use HiEvents\DomainObjects\Generated\TicketDomainObjectAbstract; use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Models\CapacityAssignment; use HiEvents\Repository\Interfaces\CapacityAssignmentRepositoryInterface; diff --git a/backend/app/Repository/Eloquent/MessageRepository.php b/backend/app/Repository/Eloquent/MessageRepository.php index 23ad368c..d9d82c91 100644 --- a/backend/app/Repository/Eloquent/MessageRepository.php +++ b/backend/app/Repository/Eloquent/MessageRepository.php @@ -2,13 +2,13 @@ namespace HiEvents\Repository\Eloquent; -use Illuminate\Database\Eloquent\Builder; -use Illuminate\Pagination\LengthAwarePaginator; use HiEvents\DomainObjects\Generated\MessageDomainObjectAbstract; use HiEvents\DomainObjects\MessageDomainObject; use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Models\Message; use HiEvents\Repository\Interfaces\MessageRepositoryInterface; +use Illuminate\Database\Eloquent\Builder; +use Illuminate\Pagination\LengthAwarePaginator; class MessageRepository extends BaseRepository implements MessageRepositoryInterface { diff --git a/backend/app/Repository/Eloquent/PromoCodeRepository.php b/backend/app/Repository/Eloquent/PromoCodeRepository.php index 3889362e..0871dc3c 100644 --- a/backend/app/Repository/Eloquent/PromoCodeRepository.php +++ b/backend/app/Repository/Eloquent/PromoCodeRepository.php @@ -2,13 +2,13 @@ namespace HiEvents\Repository\Eloquent; -use Illuminate\Contracts\Pagination\LengthAwarePaginator; -use Illuminate\Database\Eloquent\Builder; use HiEvents\DomainObjects\Generated\PromoCodeDomainObjectAbstract; use HiEvents\DomainObjects\PromoCodeDomainObject; use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Models\PromoCode; use HiEvents\Repository\Interfaces\PromoCodeRepositoryInterface; +use Illuminate\Contracts\Pagination\LengthAwarePaginator; +use Illuminate\Database\Eloquent\Builder; class PromoCodeRepository extends BaseRepository implements PromoCodeRepositoryInterface { diff --git a/backend/app/Repository/Eloquent/QuestionRepository.php b/backend/app/Repository/Eloquent/QuestionRepository.php index 8d2e72ed..8c2e1e9a 100644 --- a/backend/app/Repository/Eloquent/QuestionRepository.php +++ b/backend/app/Repository/Eloquent/QuestionRepository.php @@ -2,15 +2,15 @@ namespace HiEvents\Repository\Eloquent; -use Illuminate\Database\DatabaseManager; -use Illuminate\Foundation\Application; -use Illuminate\Support\Collection; use HiEvents\DomainObjects\Generated\QuestionDomainObjectAbstract; use HiEvents\DomainObjects\QuestionDomainObject; use HiEvents\Models\Question; use HiEvents\Models\TicketQuestion; use HiEvents\Repository\Interfaces\QuestionRepositoryInterface; use HiEvents\Repository\Interfaces\TicketRepositoryInterface; +use Illuminate\Database\DatabaseManager; +use Illuminate\Foundation\Application; +use Illuminate\Support\Collection; class QuestionRepository extends BaseRepository implements QuestionRepositoryInterface { diff --git a/backend/app/Repository/Interfaces/EventRepositoryInterface.php b/backend/app/Repository/Interfaces/EventRepositoryInterface.php index e353cecd..af802f5d 100644 --- a/backend/app/Repository/Interfaces/EventRepositoryInterface.php +++ b/backend/app/Repository/Interfaces/EventRepositoryInterface.php @@ -4,11 +4,10 @@ namespace HiEvents\Repository\Interfaces; -use Illuminate\Pagination\LengthAwarePaginator; -use Illuminate\Support\Collection; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Repository\Eloquent\BaseRepository; +use Illuminate\Pagination\LengthAwarePaginator; /** * @extends BaseRepository diff --git a/backend/app/Repository/Interfaces/MessageRepositoryInterface.php b/backend/app/Repository/Interfaces/MessageRepositoryInterface.php index 20bc509e..280680c0 100644 --- a/backend/app/Repository/Interfaces/MessageRepositoryInterface.php +++ b/backend/app/Repository/Interfaces/MessageRepositoryInterface.php @@ -2,10 +2,10 @@ namespace HiEvents\Repository\Interfaces; -use Illuminate\Pagination\LengthAwarePaginator; use HiEvents\DomainObjects\MessageDomainObject; use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Repository\Eloquent\BaseRepository; +use Illuminate\Pagination\LengthAwarePaginator; /** * @extends BaseRepository diff --git a/backend/app/Repository/Interfaces/PromoCodeRepositoryInterface.php b/backend/app/Repository/Interfaces/PromoCodeRepositoryInterface.php index a9d1a8ea..65853476 100644 --- a/backend/app/Repository/Interfaces/PromoCodeRepositoryInterface.php +++ b/backend/app/Repository/Interfaces/PromoCodeRepositoryInterface.php @@ -2,10 +2,10 @@ namespace HiEvents\Repository\Interfaces; -use Illuminate\Contracts\Pagination\LengthAwarePaginator; use HiEvents\DomainObjects\PromoCodeDomainObject; use HiEvents\Http\DTO\QueryParamsDTO; use HiEvents\Repository\Eloquent\BaseRepository; +use Illuminate\Contracts\Pagination\LengthAwarePaginator; /** * @extends BaseRepository diff --git a/backend/app/Repository/Interfaces/QuestionRepositoryInterface.php b/backend/app/Repository/Interfaces/QuestionRepositoryInterface.php index 958a57ac..6a5438de 100644 --- a/backend/app/Repository/Interfaces/QuestionRepositoryInterface.php +++ b/backend/app/Repository/Interfaces/QuestionRepositoryInterface.php @@ -2,9 +2,9 @@ namespace HiEvents\Repository\Interfaces; -use Illuminate\Support\Collection; use HiEvents\DomainObjects\QuestionDomainObject; use HiEvents\Repository\Eloquent\BaseRepository; +use Illuminate\Support\Collection; /** * @extends BaseRepository diff --git a/backend/app/Repository/Interfaces/RepositoryInterface.php b/backend/app/Repository/Interfaces/RepositoryInterface.php index 0baa2bcc..5481dbc8 100644 --- a/backend/app/Repository/Interfaces/RepositoryInterface.php +++ b/backend/app/Repository/Interfaces/RepositoryInterface.php @@ -3,11 +3,11 @@ namespace HiEvents\Repository\Interfaces; use Exception; +use HiEvents\DomainObjects\Interfaces\DomainObjectInterface; use Illuminate\Contracts\Pagination\Paginator; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Support\Collection; -use HiEvents\DomainObjects\Interfaces\DomainObjectInterface; /** * @template T diff --git a/backend/app/Repository/Interfaces/UserRepositoryInterface.php b/backend/app/Repository/Interfaces/UserRepositoryInterface.php index 42e308a5..61cae602 100644 --- a/backend/app/Repository/Interfaces/UserRepositoryInterface.php +++ b/backend/app/Repository/Interfaces/UserRepositoryInterface.php @@ -4,9 +4,9 @@ namespace HiEvents\Repository\Interfaces; -use Illuminate\Support\Collection; use HiEvents\DomainObjects\UserDomainObject; use HiEvents\Repository\Eloquent\BaseRepository; +use Illuminate\Support\Collection; /** * @extends BaseRepository diff --git a/backend/app/Resources/Account/AccountResource.php b/backend/app/Resources/Account/AccountResource.php index 16899df9..1e7f1229 100644 --- a/backend/app/Resources/Account/AccountResource.php +++ b/backend/app/Resources/Account/AccountResource.php @@ -2,9 +2,9 @@ namespace HiEvents\Resources\Account; +use HiEvents\DomainObjects\AccountDomainObject; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; -use HiEvents\DomainObjects\AccountDomainObject; /** * @mixin AccountDomainObject diff --git a/backend/app/Resources/Account/Stripe/StripeConnectAccountResponseResource.php b/backend/app/Resources/Account/Stripe/StripeConnectAccountResponseResource.php index 41674094..1f006d9d 100644 --- a/backend/app/Resources/Account/Stripe/StripeConnectAccountResponseResource.php +++ b/backend/app/Resources/Account/Stripe/StripeConnectAccountResponseResource.php @@ -2,9 +2,9 @@ namespace HiEvents\Resources\Account\Stripe; -use Illuminate\Http\Resources\Json\JsonResource; use HiEvents\Resources\Account\AccountResource; use HiEvents\Services\Handlers\Account\Payment\Stripe\DTO\CreateStripeConnectAccountResponse; +use Illuminate\Http\Resources\Json\JsonResource; /** * @mixin CreateStripeConnectAccountResponse diff --git a/backend/app/Resources/BaseResource.php b/backend/app/Resources/BaseResource.php index e4978b85..00c36f6d 100644 --- a/backend/app/Resources/BaseResource.php +++ b/backend/app/Resources/BaseResource.php @@ -2,7 +2,6 @@ namespace HiEvents\Resources; -use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; abstract class BaseResource extends JsonResource diff --git a/backend/app/Resources/Event/EventResource.php b/backend/app/Resources/Event/EventResource.php index 970cf3e7..2d01e9a4 100644 --- a/backend/app/Resources/Event/EventResource.php +++ b/backend/app/Resources/Event/EventResource.php @@ -2,12 +2,12 @@ namespace HiEvents\Resources\Event; -use Illuminate\Http\Request; use HiEvents\DomainObjects\EventDomainObject; use HiEvents\Resources\BaseResource; use HiEvents\Resources\Image\ImageResource; use HiEvents\Resources\Organizer\OrganizerResource; use HiEvents\Resources\Ticket\TicketResource; +use Illuminate\Http\Request; /** * @mixin EventDomainObject diff --git a/backend/app/Resources/Event/EventSettingsResource.php b/backend/app/Resources/Event/EventSettingsResource.php index 61c899da..1886a27a 100644 --- a/backend/app/Resources/Event/EventSettingsResource.php +++ b/backend/app/Resources/Event/EventSettingsResource.php @@ -2,8 +2,8 @@ namespace HiEvents\Resources\Event; -use Illuminate\Http\Resources\Json\JsonResource; use HiEvents\DomainObjects\EventSettingDomainObject; +use Illuminate\Http\Resources\Json\JsonResource; /** * @mixin EventSettingDomainObject diff --git a/backend/app/Resources/Event/EventSettingsResourcePublic.php b/backend/app/Resources/Event/EventSettingsResourcePublic.php index fd6ede2a..1a2c5cfa 100644 --- a/backend/app/Resources/Event/EventSettingsResourcePublic.php +++ b/backend/app/Resources/Event/EventSettingsResourcePublic.php @@ -2,8 +2,8 @@ namespace HiEvents\Resources\Event; -use Illuminate\Http\Resources\Json\JsonResource; use HiEvents\DomainObjects\EventSettingDomainObject; +use Illuminate\Http\Resources\Json\JsonResource; /** * @mixin EventSettingDomainObject diff --git a/backend/app/Resources/Message/MessageResource.php b/backend/app/Resources/Message/MessageResource.php index 62a29760..75dc30d6 100644 --- a/backend/app/Resources/Message/MessageResource.php +++ b/backend/app/Resources/Message/MessageResource.php @@ -2,10 +2,10 @@ namespace HiEvents\Resources\Message; -use Illuminate\Http\Request; -use Illuminate\Http\Resources\Json\JsonResource; use HiEvents\DomainObjects\MessageDomainObject; use HiEvents\Resources\User\UserResource; +use Illuminate\Http\Request; +use Illuminate\Http\Resources\Json\JsonResource; /** * @mixin MessageDomainObject diff --git a/backend/app/Resources/Order/OrderItemResource.php b/backend/app/Resources/Order/OrderItemResource.php index 70f3c971..18e41559 100644 --- a/backend/app/Resources/Order/OrderItemResource.php +++ b/backend/app/Resources/Order/OrderItemResource.php @@ -2,9 +2,9 @@ namespace HiEvents\Resources\Order; -use Illuminate\Http\Request; use HiEvents\DomainObjects\OrderItemDomainObject; use HiEvents\Resources\BaseResource; +use Illuminate\Http\Request; /** * @mixin OrderItemDomainObject diff --git a/backend/app/Resources/Order/OrderItemResourcePublic.php b/backend/app/Resources/Order/OrderItemResourcePublic.php index fe1b117a..471f762f 100644 --- a/backend/app/Resources/Order/OrderItemResourcePublic.php +++ b/backend/app/Resources/Order/OrderItemResourcePublic.php @@ -2,10 +2,10 @@ namespace HiEvents\Resources\Order; -use Illuminate\Http\Request; use HiEvents\DomainObjects\OrderItemDomainObject; use HiEvents\Resources\BaseResource; use HiEvents\Resources\Ticket\TicketResourcePublic; +use Illuminate\Http\Request; /** * @mixin OrderItemDomainObject diff --git a/backend/app/Resources/Order/OrderResourcePublic.php b/backend/app/Resources/Order/OrderResourcePublic.php index 714d2336..5d31b67b 100644 --- a/backend/app/Resources/Order/OrderResourcePublic.php +++ b/backend/app/Resources/Order/OrderResourcePublic.php @@ -3,10 +3,10 @@ namespace HiEvents\Resources\Order; use Carbon\Carbon; -use Illuminate\Http\Request; use HiEvents\DomainObjects\OrderDomainObject; use HiEvents\Resources\Attendee\AttendeeResourcePublic; use HiEvents\Resources\BaseResource; +use Illuminate\Http\Request; /** * @mixin OrderDomainObject diff --git a/backend/app/Resources/PromoCode/PromoCodeResource.php b/backend/app/Resources/PromoCode/PromoCodeResource.php index eac2149a..0aa9d80a 100644 --- a/backend/app/Resources/PromoCode/PromoCodeResource.php +++ b/backend/app/Resources/PromoCode/PromoCodeResource.php @@ -2,9 +2,9 @@ namespace HiEvents\Resources\PromoCode; +use HiEvents\DomainObjects\PromoCodeDomainObject; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; -use HiEvents\DomainObjects\PromoCodeDomainObject; /** * @mixin PromoCodeDomainObject diff --git a/backend/app/Resources/Question/QuestionResource.php b/backend/app/Resources/Question/QuestionResource.php index 2e43904a..7f0591dd 100644 --- a/backend/app/Resources/Question/QuestionResource.php +++ b/backend/app/Resources/Question/QuestionResource.php @@ -2,10 +2,9 @@ namespace HiEvents\Resources\Question; -use Illuminate\Http\Request; use HiEvents\DomainObjects\QuestionDomainObject; use HiEvents\Resources\BaseResource; -use HiEvents\Resources\Ticket\TicketResource; +use Illuminate\Http\Request; /** * @mixin QuestionDomainObject diff --git a/backend/app/Resources/Ticket/TicketPriceResource.php b/backend/app/Resources/Ticket/TicketPriceResource.php index c941f00f..7a4844e3 100644 --- a/backend/app/Resources/Ticket/TicketPriceResource.php +++ b/backend/app/Resources/Ticket/TicketPriceResource.php @@ -2,9 +2,9 @@ namespace HiEvents\Resources\Ticket; -use Illuminate\Http\Request; use HiEvents\DomainObjects\TicketPriceDomainObject; use HiEvents\Resources\BaseResource; +use Illuminate\Http\Request; /** * @mixin TicketPriceDomainObject diff --git a/backend/app/Resources/Ticket/TicketPriceResourcePublic.php b/backend/app/Resources/Ticket/TicketPriceResourcePublic.php index a510d64d..46df118d 100644 --- a/backend/app/Resources/Ticket/TicketPriceResourcePublic.php +++ b/backend/app/Resources/Ticket/TicketPriceResourcePublic.php @@ -2,9 +2,9 @@ namespace HiEvents\Resources\Ticket; -use Illuminate\Http\Request; use HiEvents\DomainObjects\TicketPriceDomainObject; use HiEvents\Resources\BaseResource; +use Illuminate\Http\Request; /** * @mixin TicketPriceDomainObject diff --git a/backend/app/Resources/Ticket/TicketResource.php b/backend/app/Resources/Ticket/TicketResource.php index f6ab3c88..b547d3b5 100644 --- a/backend/app/Resources/Ticket/TicketResource.php +++ b/backend/app/Resources/Ticket/TicketResource.php @@ -2,11 +2,11 @@ namespace HiEvents\Resources\Ticket; -use Illuminate\Http\Request; -use Illuminate\Http\Resources\Json\JsonResource; use HiEvents\DomainObjects\Enums\TicketType; use HiEvents\DomainObjects\TicketDomainObject; use HiEvents\Resources\Tax\TaxAndFeeResource; +use Illuminate\Http\Request; +use Illuminate\Http\Resources\Json\JsonResource; /** * @mixin TicketDomainObject diff --git a/backend/app/Resources/Ticket/TicketResourcePublic.php b/backend/app/Resources/Ticket/TicketResourcePublic.php index c61eda51..decf0505 100644 --- a/backend/app/Resources/Ticket/TicketResourcePublic.php +++ b/backend/app/Resources/Ticket/TicketResourcePublic.php @@ -2,10 +2,10 @@ namespace HiEvents\Resources\Ticket; -use Illuminate\Http\Request; -use Illuminate\Http\Resources\Json\JsonResource; use HiEvents\DomainObjects\TicketDomainObject; use HiEvents\Resources\Tax\TaxAndFeeResource; +use Illuminate\Http\Request; +use Illuminate\Http\Resources\Json\JsonResource; /** * @mixin TicketDomainObject diff --git a/backend/app/Services/Domain/CheckInList/CreateCheckInListService.php b/backend/app/Services/Domain/CheckInList/CreateCheckInListService.php index fffe72c4..93aa2938 100644 --- a/backend/app/Services/Domain/CheckInList/CreateCheckInListService.php +++ b/backend/app/Services/Domain/CheckInList/CreateCheckInListService.php @@ -11,7 +11,6 @@ use HiEvents\Services\Domain\Ticket\EventTicketValidationService; use HiEvents\Services\Domain\Ticket\Exception\UnrecognizedTicketIdException; use Illuminate\Database\DatabaseManager; -use Illuminate\Support\Str; class CreateCheckInListService { diff --git a/backend/app/Services/Domain/Order/OrderManagementService.php b/backend/app/Services/Domain/Order/OrderManagementService.php index f1d0833c..66a4ff1c 100644 --- a/backend/app/Services/Domain/Order/OrderManagementService.php +++ b/backend/app/Services/Domain/Order/OrderManagementService.php @@ -13,7 +13,6 @@ use HiEvents\Repository\Interfaces\OrderRepositoryInterface; use HiEvents\Services\Domain\Tax\TaxAndFeeOrderRollupService; use Illuminate\Support\Collection; -use Illuminate\Support\Str; class OrderManagementService { diff --git a/backend/app/Services/Domain/Payment/Stripe/EventHandlers/AccountUpdateHandler.php b/backend/app/Services/Domain/Payment/Stripe/EventHandlers/AccountUpdateHandler.php index a5aa01f7..b76395f3 100644 --- a/backend/app/Services/Domain/Payment/Stripe/EventHandlers/AccountUpdateHandler.php +++ b/backend/app/Services/Domain/Payment/Stripe/EventHandlers/AccountUpdateHandler.php @@ -2,10 +2,10 @@ namespace HiEvents\Services\Domain\Payment\Stripe\EventHandlers; +use HiEvents\Repository\Interfaces\AccountRepositoryInterface; use Psr\Log\LoggerInterface; use Stripe\Account; use Symfony\Component\Routing\Exception\ResourceNotFoundException; -use HiEvents\Repository\Interfaces\AccountRepositoryInterface; readonly class AccountUpdateHandler { diff --git a/backend/app/Services/Domain/Payment/Stripe/EventHandlers/PaymentIntentFailedHandler.php b/backend/app/Services/Domain/Payment/Stripe/EventHandlers/PaymentIntentFailedHandler.php index c0b19778..72f6b30c 100644 --- a/backend/app/Services/Domain/Payment/Stripe/EventHandlers/PaymentIntentFailedHandler.php +++ b/backend/app/Services/Domain/Payment/Stripe/EventHandlers/PaymentIntentFailedHandler.php @@ -2,9 +2,6 @@ namespace HiEvents\Services\Domain\Payment\Stripe\EventHandlers; -use Illuminate\Database\DatabaseManager; -use Stripe\PaymentIntent; -use Throwable; use HiEvents\DomainObjects\Generated\OrderDomainObjectAbstract; use HiEvents\DomainObjects\Generated\StripePaymentDomainObjectAbstract; use HiEvents\DomainObjects\OrderDomainObject; @@ -15,6 +12,9 @@ use HiEvents\Repository\Eloquent\Value\Relationship; use HiEvents\Repository\Interfaces\OrderRepositoryInterface; use HiEvents\Services\Domain\Payment\Stripe\StripePaymentUpdateFromPaymentIntentService; +use Illuminate\Database\DatabaseManager; +use Stripe\PaymentIntent; +use Throwable; readonly class PaymentIntentFailedHandler { diff --git a/backend/app/Services/Domain/Payment/Stripe/StripePaymentIntentRefundService.php b/backend/app/Services/Domain/Payment/Stripe/StripePaymentIntentRefundService.php index c28299a3..108b8cb9 100644 --- a/backend/app/Services/Domain/Payment/Stripe/StripePaymentIntentRefundService.php +++ b/backend/app/Services/Domain/Payment/Stripe/StripePaymentIntentRefundService.php @@ -3,13 +3,13 @@ namespace HiEvents\Services\Domain\Payment\Stripe; use Brick\Math\Exception\MathException; +use HiEvents\DomainObjects\StripePaymentDomainObject; +use HiEvents\Values\MoneyValue; use Illuminate\Config\Repository; use RuntimeException; use Stripe\Exception\ApiErrorException; use Stripe\Refund; use Stripe\StripeClient; -use HiEvents\DomainObjects\StripePaymentDomainObject; -use HiEvents\Values\MoneyValue; readonly class StripePaymentIntentRefundService { diff --git a/backend/app/Services/Domain/Payment/Stripe/StripePaymentUpdateFromPaymentIntentService.php b/backend/app/Services/Domain/Payment/Stripe/StripePaymentUpdateFromPaymentIntentService.php index 7ec107db..c8af9fe9 100644 --- a/backend/app/Services/Domain/Payment/Stripe/StripePaymentUpdateFromPaymentIntentService.php +++ b/backend/app/Services/Domain/Payment/Stripe/StripePaymentUpdateFromPaymentIntentService.php @@ -2,9 +2,9 @@ namespace HiEvents\Services\Domain\Payment\Stripe; -use Stripe\PaymentIntent; use HiEvents\DomainObjects\Generated\StripePaymentDomainObjectAbstract; use HiEvents\Repository\Eloquent\StripePaymentsRepository; +use Stripe\PaymentIntent; readonly class StripePaymentUpdateFromPaymentIntentService { diff --git a/backend/app/Services/Domain/Tax/TaxAndFeeCalculationService.php b/backend/app/Services/Domain/Tax/TaxAndFeeCalculationService.php index 0a0248a4..641ad7d9 100644 --- a/backend/app/Services/Domain/Tax/TaxAndFeeCalculationService.php +++ b/backend/app/Services/Domain/Tax/TaxAndFeeCalculationService.php @@ -2,13 +2,12 @@ namespace HiEvents\Services\Domain\Tax; -use InvalidArgumentException; use HiEvents\DomainObjects\Enums\TaxCalculationType; -use HiEvents\DomainObjects\Enums\TicketType; use HiEvents\DomainObjects\TaxAndFeesDomainObject; use HiEvents\DomainObjects\TicketDomainObject; use HiEvents\DomainObjects\TicketPriceDomainObject; use HiEvents\Services\Domain\Tax\DTO\TaxCalculationResponse; +use InvalidArgumentException; class TaxAndFeeCalculationService { diff --git a/backend/app/Services/Domain/Tax/TaxAndFeeRollupService.php b/backend/app/Services/Domain/Tax/TaxAndFeeRollupService.php index 3cb8b789..be52cef4 100644 --- a/backend/app/Services/Domain/Tax/TaxAndFeeRollupService.php +++ b/backend/app/Services/Domain/Tax/TaxAndFeeRollupService.php @@ -4,8 +4,8 @@ namespace HiEvents\Services\Domain\Tax; -use Illuminate\Support\Str; use HiEvents\DomainObjects\TaxAndFeesDomainObject; +use Illuminate\Support\Str; class TaxAndFeeRollupService { diff --git a/backend/app/Services/Domain/Tax/TaxAndTicketAssociationService.php b/backend/app/Services/Domain/Tax/TaxAndTicketAssociationService.php index 1f5b643f..f59431fa 100644 --- a/backend/app/Services/Domain/Tax/TaxAndTicketAssociationService.php +++ b/backend/app/Services/Domain/Tax/TaxAndTicketAssociationService.php @@ -3,11 +3,11 @@ namespace HiEvents\Services\Domain\Tax; use Exception; -use Illuminate\Support\Collection; use HiEvents\Exceptions\InvalidTaxOrFeeIdException; use HiEvents\Repository\Interfaces\TaxAndFeeRepositoryInterface; use HiEvents\Repository\Interfaces\TicketRepositoryInterface; use HiEvents\Services\Domain\Tax\DTO\TaxAndTicketAssociateParams; +use Illuminate\Support\Collection; readonly class TaxAndTicketAssociationService { diff --git a/backend/app/Services/Handlers/Attendee/CreateAttendeeHandler.php b/backend/app/Services/Handlers/Attendee/CreateAttendeeHandler.php index af23fbb3..8202210a 100644 --- a/backend/app/Services/Handlers/Attendee/CreateAttendeeHandler.php +++ b/backend/app/Services/Handlers/Attendee/CreateAttendeeHandler.php @@ -3,7 +3,6 @@ namespace HiEvents\Services\Handlers\Attendee; use Brick\Money\Money; -use Faker\Generator; use HiEvents\DomainObjects\AttendeeDomainObject; use HiEvents\DomainObjects\Generated\AttendeeDomainObjectAbstract; use HiEvents\DomainObjects\Generated\OrderDomainObjectAbstract; @@ -32,7 +31,6 @@ use HiEvents\Services\Handlers\Attendee\DTO\CreateAttendeeTaxAndFeeDTO; use Illuminate\Database\DatabaseManager; use Illuminate\Support\Collection; -use Illuminate\Support\Str; use RuntimeException; use Throwable; diff --git a/backend/app/Services/Handlers/Event/GetEventsHandler.php b/backend/app/Services/Handlers/Event/GetEventsHandler.php index fe79ada0..3fd0956f 100644 --- a/backend/app/Services/Handlers/Event/GetEventsHandler.php +++ b/backend/app/Services/Handlers/Event/GetEventsHandler.php @@ -9,8 +9,6 @@ use HiEvents\Repository\Interfaces\EventRepositoryInterface; use HiEvents\Services\Handlers\Event\DTO\GetEventsDTO; use Illuminate\Pagination\LengthAwarePaginator; -use Illuminate\Support\Facades\DB; - class GetEventsHandler { diff --git a/backend/app/Services/Handlers/Question/DeleteQuestionHandler.php b/backend/app/Services/Handlers/Question/DeleteQuestionHandler.php index ffb1d8db..9dd28428 100644 --- a/backend/app/Services/Handlers/Question/DeleteQuestionHandler.php +++ b/backend/app/Services/Handlers/Question/DeleteQuestionHandler.php @@ -2,11 +2,11 @@ namespace HiEvents\Services\Handlers\Question; -use Illuminate\Database\DatabaseManager; -use Throwable; use HiEvents\Exceptions\CannotDeleteEntityException; use HiEvents\Repository\Interfaces\QuestionAnswerRepositoryInterface; use HiEvents\Repository\Interfaces\QuestionRepositoryInterface; +use Illuminate\Database\DatabaseManager; +use Throwable; readonly class DeleteQuestionHandler { diff --git a/backend/app/Services/Handlers/Question/SortQuestionsHandler.php b/backend/app/Services/Handlers/Question/SortQuestionsHandler.php index 5f4914cf..379271f9 100644 --- a/backend/app/Services/Handlers/Question/SortQuestionsHandler.php +++ b/backend/app/Services/Handlers/Question/SortQuestionsHandler.php @@ -2,8 +2,8 @@ namespace HiEvents\Services\Handlers\Question; -use Symfony\Component\Routing\Exception\ResourceNotFoundException; use HiEvents\Repository\Interfaces\QuestionRepositoryInterface; +use Symfony\Component\Routing\Exception\ResourceNotFoundException; readonly class SortQuestionsHandler { diff --git a/backend/app/Services/Handlers/Ticket/CreateTicketHandler.php b/backend/app/Services/Handlers/Ticket/CreateTicketHandler.php index eaf261be..d8edb7e3 100644 --- a/backend/app/Services/Handlers/Ticket/CreateTicketHandler.php +++ b/backend/app/Services/Handlers/Ticket/CreateTicketHandler.php @@ -8,8 +8,8 @@ use HiEvents\DomainObjects\Generated\TicketPriceDomainObjectAbstract; use HiEvents\DomainObjects\TicketDomainObject; use HiEvents\DomainObjects\TicketPriceDomainObject; -use HiEvents\Services\Domain\Ticket\DTO\TicketPriceDTO; use HiEvents\Services\Domain\Ticket\CreateTicketService; +use HiEvents\Services\Domain\Ticket\DTO\TicketPriceDTO; use HiEvents\Services\Handlers\Ticket\DTO\UpsertTicketDTO; use Throwable; diff --git a/backend/app/Services/Handlers/Ticket/DeleteTicketHandler.php b/backend/app/Services/Handlers/Ticket/DeleteTicketHandler.php index 9ca8445f..14dd581b 100644 --- a/backend/app/Services/Handlers/Ticket/DeleteTicketHandler.php +++ b/backend/app/Services/Handlers/Ticket/DeleteTicketHandler.php @@ -2,9 +2,6 @@ namespace HiEvents\Services\Handlers\Ticket; -use Illuminate\Database\DatabaseManager; -use Psr\Log\LoggerInterface; -use Throwable; use HiEvents\DomainObjects\Generated\AttendeeDomainObjectAbstract; use HiEvents\DomainObjects\Generated\TicketDomainObjectAbstract; use HiEvents\DomainObjects\Generated\TicketPriceDomainObjectAbstract; @@ -12,6 +9,9 @@ use HiEvents\Repository\Interfaces\AttendeeRepositoryInterface; use HiEvents\Repository\Interfaces\TicketPriceRepositoryInterface; use HiEvents\Repository\Interfaces\TicketRepositoryInterface; +use Illuminate\Database\DatabaseManager; +use Psr\Log\LoggerInterface; +use Throwable; readonly class DeleteTicketHandler { diff --git a/backend/app/Validators/CompleteOrderValidator.php b/backend/app/Validators/CompleteOrderValidator.php index 98d6a2ab..6b8ffc5b 100644 --- a/backend/app/Validators/CompleteOrderValidator.php +++ b/backend/app/Validators/CompleteOrderValidator.php @@ -4,7 +4,6 @@ namespace HiEvents\Validators; -use Illuminate\Routing\Route; use HiEvents\DomainObjects\Enums\QuestionBelongsTo; use HiEvents\DomainObjects\Generated\QuestionDomainObjectAbstract; use HiEvents\DomainObjects\Generated\TicketDomainObjectAbstract; @@ -16,6 +15,7 @@ use HiEvents\Repository\Interfaces\TicketRepositoryInterface; use HiEvents\Validators\Rules\AttendeeQuestionRule; use HiEvents\Validators\Rules\OrderQuestionRule; +use Illuminate\Routing\Route; class CompleteOrderValidator extends BaseValidator { diff --git a/backend/app/Validators/Rules/BaseQuestionRule.php b/backend/app/Validators/Rules/BaseQuestionRule.php index 7f7d0640..7571bf13 100644 --- a/backend/app/Validators/Rules/BaseQuestionRule.php +++ b/backend/app/Validators/Rules/BaseQuestionRule.php @@ -3,15 +3,15 @@ namespace HiEvents\Validators\Rules; use Closure; +use HiEvents\DomainObjects\Enums\QuestionTypeEnum; +use HiEvents\DomainObjects\QuestionDomainObject; +use HiEvents\DomainObjects\TicketDomainObject; +use HiEvents\DomainObjects\TicketPriceDomainObject; use Illuminate\Contracts\Validation\DataAwareRule; use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Contracts\Validation\ValidatorAwareRule; use Illuminate\Support\Collection; use Illuminate\Validation\Validator; -use HiEvents\DomainObjects\Enums\QuestionTypeEnum; -use HiEvents\DomainObjects\QuestionDomainObject; -use HiEvents\DomainObjects\TicketDomainObject; -use HiEvents\DomainObjects\TicketPriceDomainObject; abstract class BaseQuestionRule implements ValidationRule, DataAwareRule, ValidatorAwareRule { diff --git a/backend/app/Validators/Rules/OrderQuestionRule.php b/backend/app/Validators/Rules/OrderQuestionRule.php index 9e78e097..7d80557a 100644 --- a/backend/app/Validators/Rules/OrderQuestionRule.php +++ b/backend/app/Validators/Rules/OrderQuestionRule.php @@ -2,9 +2,9 @@ namespace HiEvents\Validators\Rules; +use HiEvents\DomainObjects\QuestionDomainObject; use Illuminate\Support\Collection; use Illuminate\Validation\ValidationException; -use HiEvents\DomainObjects\QuestionDomainObject; class OrderQuestionRule extends BaseQuestionRule {