diff options
author | Daniel <mail@danielkesselberg.de> | 2023-10-01 12:16:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-01 12:16:33 +0200 |
commit | 676bee16eb793edad137e9c7989da5e0f624167a (patch) | |
tree | ecc48061857674714ce918b3ff0b28b283305d5f /lib | |
parent | 645002a1be38e5b089d9610cac11f81c00301b25 (diff) | |
parent | 19ec0ee81b6e7162128f4ffcf039ded25e05406d (diff) | |
download | nextcloud-server-676bee16eb793edad137e9c7989da5e0f624167a.tar.gz nextcloud-server-676bee16eb793edad137e9c7989da5e0f624167a.zip |
Merge pull request #40734 from nextcloud/debt/noid/align-param-name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Command/ClosureJob.php | 4 | ||||
-rw-r--r-- | lib/private/Command/CommandJob.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Command/ClosureJob.php b/lib/private/Command/ClosureJob.php index 180c5a33ec5..7216bcc762a 100644 --- a/lib/private/Command/ClosureJob.php +++ b/lib/private/Command/ClosureJob.php @@ -26,8 +26,8 @@ use OC\BackgroundJob\QueuedJob; use Laravel\SerializableClosure\SerializableClosure as LaravelClosure; class ClosureJob extends QueuedJob { - protected function run($serializedCallable) { - $callable = unserialize($serializedCallable, [LaravelClosure::class]); + protected function run($argument) { + $callable = unserialize($argument, [LaravelClosure::class]); $callable = $callable->getClosure(); if (is_callable($callable)) { $callable(); diff --git a/lib/private/Command/CommandJob.php b/lib/private/Command/CommandJob.php index 5b267162c81..e34ffe9440b 100644 --- a/lib/private/Command/CommandJob.php +++ b/lib/private/Command/CommandJob.php @@ -29,8 +29,8 @@ use OCP\Command\ICommand; * Wrap a command in the background job interface */ class CommandJob extends QueuedJob { - protected function run($serializedCommand) { - $command = unserialize($serializedCommand); + protected function run($argument) { + $command = unserialize($argument); if ($command instanceof ICommand) { $command->handle(); } else { |