summaryrefslogtreecommitdiffstats
path: root/lib/private/Command
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-01-25 23:16:13 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-29 12:03:47 +0100
commiteb51f06a3b9e42686f462b9f7a56411d3fe6cb27 (patch)
tree0d96c86c4489b4e3fe60bcceaeb6759d856a36e9 /lib/private/Command
parent1d8b90b8d3c8a85104d223b7f1d5693280370774 (diff)
downloadnextcloud-server-eb51f06a3b9e42686f462b9f7a56411d3fe6cb27.tar.gz
nextcloud-server-eb51f06a3b9e42686f462b9f7a56411d3fe6cb27.zip
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Command')
-rw-r--r--lib/private/Command/CronBus.php6
1 files changed, 3 insertions, 3 deletions
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');
}