#5 - bump dependencies
This commit is contained in:
@@ -16,8 +16,7 @@ class CalendarGenerator
|
||||
{
|
||||
public function __construct(
|
||||
protected YearPeriodRetriever $yearPeriodRetriever,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function generate(Carbon $month): array
|
||||
{
|
||||
|
@@ -15,6 +15,5 @@ class VacationRequestAcceptedByAdministrative
|
||||
|
||||
public function __construct(
|
||||
public VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
}
|
||||
|
@@ -15,6 +15,5 @@ class VacationRequestAcceptedByTechnical
|
||||
|
||||
public function __construct(
|
||||
public VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
}
|
||||
|
@@ -15,6 +15,5 @@ class VacationRequestApproved
|
||||
|
||||
public function __construct(
|
||||
public VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
}
|
||||
|
@@ -15,6 +15,5 @@ class VacationRequestCancelled
|
||||
|
||||
public function __construct(
|
||||
public VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
}
|
||||
|
@@ -15,6 +15,5 @@ class VacationRequestCreated
|
||||
|
||||
public function __construct(
|
||||
public VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
}
|
||||
|
@@ -15,6 +15,5 @@ class VacationRequestRejected
|
||||
|
||||
public function __construct(
|
||||
public VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
}
|
||||
|
@@ -20,6 +20,5 @@ class VacationRequestStateChanged
|
||||
public ?VacationRequestState $from,
|
||||
public VacationRequestState $to,
|
||||
public ?User $user = null,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
}
|
||||
|
@@ -15,6 +15,5 @@ class VacationRequestWaitsForAdminApproval
|
||||
|
||||
public function __construct(
|
||||
public VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
}
|
||||
|
@@ -15,6 +15,5 @@ class VacationRequestWaitsForTechApproval
|
||||
|
||||
public function __construct(
|
||||
public VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
}
|
||||
|
@@ -11,8 +11,7 @@ class HandleAcceptedByAdministrativeVacationRequest
|
||||
{
|
||||
public function __construct(
|
||||
protected VacationRequestStateManager $stateManager,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(VacationRequestAcceptedByAdministrative $event): void
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@ class HandleAcceptedByTechnicalVacationRequest
|
||||
public function __construct(
|
||||
protected VacationTypeConfigRetriever $configRetriever,
|
||||
protected VacationRequestStateManager $stateManager,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(VacationRequestAcceptedByTechnical $event): void
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@ class HandleCreatedVacationRequest
|
||||
public function __construct(
|
||||
protected VacationTypeConfigRetriever $configRetriever,
|
||||
protected VacationRequestStateManager $stateManager,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(VacationRequestCreated $event): void
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@ use Toby\Eloquent\Models\User;
|
||||
class SendApprovedVacationRequestNotification
|
||||
{
|
||||
public function __construct(
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(VacationRequestApproved $event): void
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@ use Toby\Eloquent\Models\User;
|
||||
class SendCancelledVacationRequestNotification
|
||||
{
|
||||
public function __construct(
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(VacationRequestCancelled $event): void
|
||||
{
|
||||
|
@@ -11,8 +11,7 @@ use Toby\Domain\Notifications\VacationRequestCreatedOnEmployeeBehalf;
|
||||
class SendCreatedVacationRequestNotification
|
||||
{
|
||||
public function __construct(
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(VacationRequestCreated $event): void
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@ use Toby\Eloquent\Models\User;
|
||||
class SendRejectedVacationRequestNotification
|
||||
{
|
||||
public function __construct(
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(VacationRequestRejected $event): void
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@ use Toby\Eloquent\Models\User;
|
||||
class SendWaitedForAdministrativeVacationRequestNotification
|
||||
{
|
||||
public function __construct(
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(VacationRequestWaitsForAdminApproval $event): void
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@ use Toby\Eloquent\Models\User;
|
||||
class SendWaitedForTechnicalVacationRequestNotification
|
||||
{
|
||||
public function __construct(
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(VacationRequestWaitsForTechApproval $event): void
|
||||
{
|
||||
|
@@ -18,8 +18,7 @@ class VacationRequestApprovedNotification extends Notification
|
||||
public function __construct(
|
||||
protected VacationRequest $vacationRequest,
|
||||
protected User $user,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function via(): array
|
||||
{
|
||||
|
@@ -18,8 +18,7 @@ class VacationRequestCancelledNotification extends Notification
|
||||
public function __construct(
|
||||
protected VacationRequest $vacationRequest,
|
||||
protected User $user,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function via(): array
|
||||
{
|
||||
|
@@ -16,8 +16,7 @@ class VacationRequestCreatedNotification extends Notification
|
||||
|
||||
public function __construct(
|
||||
protected VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function via(): array
|
||||
{
|
||||
|
@@ -16,8 +16,7 @@ class VacationRequestCreatedOnEmployeeBehalf extends Notification
|
||||
|
||||
public function __construct(
|
||||
protected VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function via(): array
|
||||
{
|
||||
|
@@ -18,8 +18,7 @@ class VacationRequestRejectedNotification extends Notification
|
||||
public function __construct(
|
||||
protected VacationRequest $vacationRequest,
|
||||
protected User $user,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function via(): array
|
||||
{
|
||||
|
@@ -18,8 +18,7 @@ class VacationRequestWaitsForAdminApprovalNotification extends Notification
|
||||
public function __construct(
|
||||
protected VacationRequest $vacationRequest,
|
||||
protected User $user,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function via(): array
|
||||
{
|
||||
|
@@ -18,8 +18,7 @@ class VacationRequestWaitsForTechApprovalNotification extends Notification
|
||||
public function __construct(
|
||||
protected VacationRequest $vacationRequest,
|
||||
protected User $user,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function via(): array
|
||||
{
|
||||
|
@@ -41,8 +41,7 @@ class TimesheetPerUserSheet implements WithTitle, WithHeadings, WithEvents, With
|
||||
public function __construct(
|
||||
protected User $user,
|
||||
protected Carbon $month,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function title(): string
|
||||
{
|
||||
|
@@ -13,9 +13,9 @@ use Toby\Eloquent\Models\YearPeriod;
|
||||
|
||||
class UserVacationStatsRetriever
|
||||
{
|
||||
public function __construct(protected VacationTypeConfigRetriever $configRetriever)
|
||||
{
|
||||
}
|
||||
public function __construct(
|
||||
protected VacationTypeConfigRetriever $configRetriever,
|
||||
) {}
|
||||
|
||||
public function getUsedVacationDays(User $user, YearPeriod $yearPeriod): int
|
||||
{
|
||||
|
@@ -22,8 +22,7 @@ class VacationRequestStateManager
|
||||
public function __construct(
|
||||
protected Auth $auth,
|
||||
protected Dispatcher $dispatcher,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function markAsCreated(VacationRequest $vacationRequest): void
|
||||
{
|
||||
|
@@ -16,8 +16,7 @@ class VacationTypeConfigRetriever
|
||||
|
||||
public function __construct(
|
||||
protected Repository $config,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function needsTechnicalApproval(VacationType $type): bool
|
||||
{
|
||||
|
@@ -19,8 +19,7 @@ class DoesNotExceedLimitRule implements VacationRequestRule
|
||||
public function __construct(
|
||||
protected VacationTypeConfigRetriever $configRetriever,
|
||||
protected VacationDaysCalculator $vacationDaysCalculator,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function check(VacationRequest $vacationRequest): bool
|
||||
{
|
||||
|
@@ -11,8 +11,7 @@ class MinimumOneVacationDayRule implements VacationRequestRule
|
||||
{
|
||||
public function __construct(
|
||||
protected VacationDaysCalculator $vacationDaysCalculator,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function check(VacationRequest $vacationRequest): bool
|
||||
{
|
||||
|
@@ -26,8 +26,7 @@ class VacationRequestValidator
|
||||
|
||||
public function __construct(
|
||||
protected Container $container,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
/**
|
||||
* @throws ValidationException
|
||||
|
@@ -14,8 +14,7 @@ class UserAvatarGenerator
|
||||
{
|
||||
public function __construct(
|
||||
protected InitialAvatar $generator,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function generateFor(User $user): string
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@ class YearPeriodRetriever
|
||||
|
||||
public function __construct(
|
||||
protected Session $session,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function selected(): YearPeriod
|
||||
{
|
||||
|
@@ -14,8 +14,7 @@ class UserObserver
|
||||
public function __construct(
|
||||
protected UserAvatarGenerator $generator,
|
||||
protected YearPeriodRetriever $yearPeriodRetriever,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function created(User $user): void
|
||||
{
|
||||
|
@@ -16,8 +16,7 @@ class VacationRequestObserver
|
||||
public function __construct(
|
||||
protected Auth $auth,
|
||||
protected Dispatcher $dispatcher,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function creating(VacationRequest $vacationRequest): void
|
||||
{
|
||||
|
@@ -14,8 +14,7 @@ class YearPeriodObserver
|
||||
public function __construct(
|
||||
protected UserAvatarGenerator $generator,
|
||||
protected PolishHolidaysRetriever $polishHolidaysRetriever,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function created(YearPeriod $yearPeriod): void
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@ class SelectedYearPeriodScope implements Scope
|
||||
{
|
||||
public function __construct(
|
||||
protected YearPeriodRetriever $yearPeriodRetriever,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function apply(Builder $builder, Model $model): Builder
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@ class HandleInertiaRequests extends Middleware
|
||||
{
|
||||
public function __construct(
|
||||
protected YearPeriodRetriever $yearPeriodRetriever,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function share(Request $request): array
|
||||
{
|
||||
|
@@ -18,8 +18,7 @@ class ClearVacationRequestDaysInGoogleCalendar implements ShouldQueue
|
||||
|
||||
public function __construct(
|
||||
protected VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
|
@@ -18,8 +18,7 @@ class SendVacationRequestDaysToGoogleCalendar implements ShouldQueue
|
||||
|
||||
public function __construct(
|
||||
protected VacationRequest $vacationRequest,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function handle(): void
|
||||
{
|
||||
|
Reference in New Issue
Block a user