Skip to content

Commit

Permalink
Reduce MissingReturnType
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Dec 6, 2021
1 parent a8058e8 commit 2673e53
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/BackgroundJob/RetryJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function __construct(Notifications $notifications,
* @param IJobList $jobList
* @param ILogger|null $logger
*/
public function execute(IJobList $jobList, ?ILogger $logger = null) {
public function execute(IJobList $jobList, ?ILogger $logger = null): void {
if (((int)$this->argument['try']) > $this->maxTry) {
$jobList->remove($this, $this->argument);
return;
Expand Down
2 changes: 1 addition & 1 deletion lib/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function getStunServers(): array {
*
* @return array
*/
public function getTurnServers($withEvent = true): array {
public function getTurnServers(bool $withEvent = true): array {
$config = $this->config->getAppValue('spreed', 'turn_servers');
$servers = json_decode($config, true);

Expand Down
2 changes: 1 addition & 1 deletion lib/Events/GetTurnServersEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getServers(): array {
return $this->servers;
}

public function setServers(array $servers) {
public function setServers(array $servers): void {
$this->servers = $servers;
}
}
2 changes: 1 addition & 1 deletion lib/Federation/CloudFederationProviderTalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private function getRemoteAttendeeAndValidate(int $id, string $sharedSecret): At
return $attendee;
}

private function notifyAboutNewShare(IUser $shareWith, string $shareId, string $sharedByFederatedId, string $sharedByName, string $roomName, string $roomToken, string $serverUrl) {
private function notifyAboutNewShare(IUser $shareWith, string $shareId, string $sharedByFederatedId, string $sharedByName, string $roomName, string $roomToken, string $serverUrl): void {
$notification = $this->notificationManager->createNotification();
$notification->setApp(Application::APP_ID)
->setUser($shareWith->getUID())
Expand Down

0 comments on commit 2673e53

Please sign in to comment.