From eb51f06a3b9e42686f462b9f7a56411d3fe6cb27 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 25 Jan 2018 23:16:13 +0100 Subject: Use ::class statement instead of string Signed-off-by: Morris Jobke --- lib/private/Command/CronBus.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/private/Command') diff --git a/lib/private/Command/CronBus.php b/lib/private/Command/CronBus.php index 87244fcaa45..b3ee1ae6313 100644 --- a/lib/private/Command/CronBus.php +++ b/lib/private/Command/CronBus.php @@ -51,11 +51,11 @@ class CronBus extends AsyncBus { */ private function getJobClass($command) { if ($command instanceof \Closure) { - return 'OC\Command\ClosureJob'; + return ClosureJob::class; } else if (is_callable($command)) { - return 'OC\Command\CallableJob'; + return CallableJob::class; } else if ($command instanceof ICommand) { - return 'OC\Command\CommandJob'; + return CommandJob::class; } else { throw new \InvalidArgumentException('Invalid command'); } -- cgit v1.2.3