Skip to content

Commit

Permalink
Better return types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mosnar committed Aug 13, 2022
1 parent 35dceea commit 4d93d72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/models/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,18 @@ public function getClientSecret(): string
/**
* Returns the custom authorization URL.
*
* @return string
* @return string|null
*/
public function getUrlAuthorize(): string
public function getUrlAuthorize(): ?string
{
return \craft\helpers\App::parseEnv($this->urlAuthorize) ?: '';
return \craft\helpers\App::parseEnv($this->urlAuthorize);
}

/**
* Get the scopes for the app
*
* @param bool $forTable If true, we'll format the output for Craft's table field
* @return array
* @return array<string>
*/
public function getScopes(bool $forTable = false): array
{
Expand Down

0 comments on commit 4d93d72

Please sign in to comment.