Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use url value objects in plex api #416

Merged
merged 3 commits into from
Jun 28, 2023
Merged

Conversation

leepeuker
Copy link
Owner

No description provided.

@leepeuker leepeuker changed the title Use url value objects in for plex Use url value objects in plex api Jun 28, 2023
Comment on lines +139 to +143
try {
$plexServerUrl = Url::createFromString($plexServerUrl);
} catch (InvalidUrl) {
return Response::createBadRequest('Not a valid url: ' . $plexServerUrl);
}
Copy link
Owner Author

@leepeuker leepeuker Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This validates if the plex server url is valid, Url::createFromString can be used everywhere

@leepeuker leepeuker requested a review from JVT038 June 28, 2023 19:01
Copy link
Collaborator

@JVT038 JVT038 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; thank you for your OOP examples.

@leepeuker leepeuker merged commit ca07a32 into add-plex-oauth Jun 28, 2023
@leepeuker leepeuker deleted the add-plex-oauth-url branch June 28, 2023 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants