Skip to content

Commit

Permalink
Hotifx invalid method
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Jul 2, 2023
1 parent 820191a commit 7888e81
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Service/ServerSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,19 @@ public function isTmdbApiKeySetInEnvironment() : bool
public function requireApplicationUrl() : string
{
$value = $this->getByKey(self::APPLICATION_URL, true);
assertNotNull($value);
if ($value === null) {
throw ConfigNotSetException::create(self::APPLICATION_URL);
}

return $value;
}

public function requirePlexIdentifier() : string
{
$value = $this->getByKey(self::PLEX_IDENTIFIER, true);
assertNotNull($value);
if ($value === null) {
throw ConfigNotSetException::create(self::PLEX_IDENTIFIER);
}

return $value;
}
Expand Down

0 comments on commit 7888e81

Please sign in to comment.