Skip to content

Commit

Permalink
Update index.php from lib/
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Aug 25, 2022
1 parent 5c22c17 commit f039ecf
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,9 @@ public function getCurrentVersion() {

/**
* Returns currently used release channel
*
* @return string
*/
private function getCurrentReleaseChannel() {
return !is_null($this->getConfigOption('updater.release.channel')) ? $this->getConfigOption('updater.release.channel') : 'stable';
private function getCurrentReleaseChannel(): string {
return (string)($this->getConfigOption('updater.release.channel') ?? 'stable');
}

/**
Expand Down Expand Up @@ -206,10 +204,9 @@ public function updateAvailable() {
/**
* Returns the specified config options
*
* @param string $key
* @return mixed|null Null if the entry is not found
*/
public function getConfigOption($key) {
public function getConfigOption(string $key) {
return isset($this->configValues[$key]) ? $this->configValues[$key] : null;
}

Expand Down Expand Up @@ -1078,7 +1075,7 @@ public function endStep($step) {
}

/**
* @return string
* @return array
* @throws \Exception
*/
public function currentStep() {
Expand Down

0 comments on commit f039ecf

Please sign in to comment.