Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
daveearley committed Aug 28, 2024
1 parent d97bb8b commit 1679396
Show file tree
Hide file tree
Showing 102 changed files with 149 additions and 172 deletions.
2 changes: 1 addition & 1 deletion backend/app/DomainObjects/AbstractDomainObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion backend/app/DomainObjects/AttendeeDomainObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion backend/app/DomainObjects/OrderDomainObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion backend/app/DomainObjects/QuestionDomainObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions backend/app/DomainObjects/TicketDomainObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion backend/app/DomainObjects/TicketPriceDomainObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace HiEvents\DomainObjects;

use Carbon\Carbon;
use LogicException;
use HiEvents\Helper\Currency;
use LogicException;

class TicketPriceDomainObject extends Generated\TicketPriceDomainObjectAbstract
{
Expand Down
2 changes: 1 addition & 1 deletion backend/app/Events/EventUpdateEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace HiEvents\Events;

use Illuminate\Foundation\Events\Dispatchable;
use HiEvents\DomainObjects\EventDomainObject;
use Illuminate\Foundation\Events\Dispatchable;

class EventUpdateEvent
{
Expand Down
2 changes: 1 addition & 1 deletion backend/app/Events/OrderStatusChangedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace HiEvents\Events;

use Illuminate\Foundation\Events\Dispatchable;
use HiEvents\DomainObjects\OrderDomainObject;
use Illuminate\Foundation\Events\Dispatchable;

class OrderStatusChangedEvent
{
Expand Down
2 changes: 0 additions & 2 deletions backend/app/Exceptions/CannotAcceptPaymentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace HiEvents\Exceptions;

use Exception;

class CannotAcceptPaymentException extends BaseException
{

Expand Down
2 changes: 1 addition & 1 deletion backend/app/Exceptions/UnauthorizedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
10 changes: 5 additions & 5 deletions backend/app/Exports/OrdersExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion backend/app/Exports/PromoCodesExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion backend/app/Http/Actions/Accounts/GetAccountAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
5 changes: 2 additions & 3 deletions backend/app/Http/Actions/Attendees/ExportAttendeesAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions backend/app/Http/Actions/Attendees/GetAttendeesAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions backend/app/Http/Actions/Auth/ForgotPasswordAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion backend/app/Http/Actions/Events/GetEventsAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions backend/app/Http/Actions/Messages/GetMessagesAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions backend/app/Http/Actions/Orders/ExportOrdersAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion backend/app/Http/Actions/Orders/GetOrderAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions backend/app/Http/Actions/Orders/GetOrdersAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions backend/app/Http/Actions/PromoCodes/GetPromoCodeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Loading

0 comments on commit 1679396

Please sign in to comment.