mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix missing return statement, inline return
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
This commit is contained in:
parent
c1fc1b29bc
commit
162537916b
1 changed files with 2 additions and 3 deletions
|
|
@ -287,7 +287,7 @@ class Manager implements IManager {
|
|||
if ($provider instanceof IProviderWithId) {
|
||||
return $provider->getId() === $preferences[$task->getType()];
|
||||
}
|
||||
$provider::class === $preferences[$task->getType()];
|
||||
return $provider::class === $preferences[$task->getType()];
|
||||
})));
|
||||
if ($provider !== false) {
|
||||
$providers = array_filter($providers, fn ($p) => $p !== $provider);
|
||||
|
|
@ -295,7 +295,6 @@ class Manager implements IManager {
|
|||
}
|
||||
}
|
||||
}
|
||||
$providers = array_values(array_filter($providers, fn (IProvider $provider) => $task->canUseProvider($provider)));
|
||||
return $providers;
|
||||
return array_values(array_filter($providers, fn (IProvider $provider) => $task->canUseProvider($provider)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue