aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Command
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-09-17 10:43:23 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-11-22 11:42:53 +0100
commitea8f9a7e841061ed96f291aa3c9a413fe2402b5c (patch)
tree74097b752215fe63b583c2b239abc4f1d4d53089 /lib/private/Command
parentba1af2b22e5409c62ea2bdf7eb0e13c282ed70e8 (diff)
downloadnextcloud-server-ea8f9a7e841061ed96f291aa3c9a413fe2402b5c.tar.gz
nextcloud-server-ea8f9a7e841061ed96f291aa3c9a413fe2402b5c.zip
refactor: Repalce array_search with in_array in lib/
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Command')
-rw-r--r--lib/private/Command/AsyncBus.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Command/AsyncBus.php b/lib/private/Command/AsyncBus.php
index ec6fbc91f68..c65e6cad78e 100644
--- a/lib/private/Command/AsyncBus.php
+++ b/lib/private/Command/AsyncBus.php
@@ -82,7 +82,7 @@ abstract class AsyncBus implements IBus {
private function canRunAsync($command) {
$traits = $this->getTraits($command);
foreach ($traits as $trait) {
- if (array_search($trait, $this->syncTraits) !== false) {
+ if (in_array($trait, $this->syncTraits)) {
return false;
}
}