Merge pull request #40734 from nextcloud/debt/noid/align-param-name

This commit is contained in:
Daniel 2023-10-01 12:16:33 +02:00 committed by GitHub
commit 676bee16eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

@ -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 {