Skip to content

Commit

Permalink
rename UpdateIntegrationUiTdatabankOrganizersRequest to UpdateIntegra…
Browse files Browse the repository at this point in the history
…tionUdbOrganizersRequest
  • Loading branch information
JonasVHG committed Aug 6, 2024
1 parent 98b36a1 commit 848dcf4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/Domain/Integrations/Controllers/IntegrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use App\Domain\Integrations\FormRequests\StoreIntegrationRequest;
use App\Domain\Integrations\FormRequests\StoreIntegrationUrlRequest;
use App\Domain\Integrations\FormRequests\UpdateContactInfoRequest;
use App\Domain\Integrations\FormRequests\UpdateIntegrationUiTdatabankOrganizersRequest;
use App\Domain\Integrations\FormRequests\UpdateIntegrationUdbOrganizersRequest;
use App\Domain\Integrations\FormRequests\UpdateIntegrationRequest;
use App\Domain\Integrations\FormRequests\UpdateIntegrationUrlsRequest;
use App\Domain\Integrations\FormRequests\UpdateOrganizationRequest;
Expand Down Expand Up @@ -293,7 +293,7 @@ public function updateOrganization(string $id, UpdateOrganizationRequest $reques
);
}

public function updateOrganizers(string $integrationId, UpdateIntegrationUiTdatabankOrganizersRequest $request): RedirectResponse
public function updateOrganizers(string $integrationId, UpdateIntegrationUdbOrganizersRequest $request): RedirectResponse
{
$integration = $this->integrationRepository->getById(Uuid::fromString($integrationId));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function rules(): array
{
$rules = collect([
...(new CreateOrganizationRequest())->rules(),
...(new UpdateIntegrationUiTdatabankOrganizersRequest())->rules(),
...(new UpdateIntegrationUdbOrganizersRequest())->rules(),
'coupon' => ['nullable', 'string', 'max:255'],
]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Illuminate\Foundation\Http\FormRequest;

final class UpdateIntegrationUiTdatabankOrganizersRequest extends FormRequest
final class UpdateIntegrationUdbOrganizersRequest extends FormRequest
{
public function rules(): array
{
Expand Down
4 changes: 2 additions & 2 deletions app/Domain/Integrations/Mappers/UdbOrganizerMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace App\Domain\Integrations\Mappers;

use App\Domain\Integrations\FormRequests\RequestActivationRequest;
use App\Domain\Integrations\FormRequests\UpdateIntegrationUiTdatabankOrganizersRequest;
use App\Domain\Integrations\FormRequests\UpdateIntegrationUdbOrganizersRequest;
use App\Domain\Integrations\UdbOrganizer;
use Illuminate\Http\Request;
use Ramsey\Uuid\Uuid;
Expand Down Expand Up @@ -33,7 +33,7 @@ public static function map(Request $request, string $id): array
return $organizers;
}

public static function mapUpdateOrganizers(UpdateIntegrationUiTdatabankOrganizersRequest $request, string $id): array
public static function mapUpdateOrganizers(UpdateIntegrationUdbOrganizersRequest $request, string $id): array
{
return self::map($request, $id);
}
Expand Down
4 changes: 2 additions & 2 deletions app/Domain/Integrations/Models/IntegrationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function keyVisibilityUpgrade(): HasOne
/**
* @return HasMany<UdbOrganizerModel>
*/
public function uiTdatabankOrganizers(): HasMany
public function udbOrganizers(): HasMany
{
return $this->hasMany(UdbOrganizerModel::class, 'integration_id');
}
Expand Down Expand Up @@ -361,7 +361,7 @@ public function toDomain(): Integration
->map(fn (KeycloakClientModel $keycloakClientModel) => $keycloakClientModel->toDomain())
->toArray()
)->withUiTdatabankOrganizers(
...$this->uiTdatabankOrganizers()
...$this->udbOrganizers()
->get()
->map(fn (UdbOrganizerModel $organizerModel) => $organizerModel->toDomain())
->toArray()
Expand Down

0 comments on commit 848dcf4

Please sign in to comment.