summaryrefslogtreecommitdiffstats
path: root/core/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 /core/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 'core/Command')
-rw-r--r--core/Command/App/CheckCode.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/Command/App/CheckCode.php b/core/Command/App/CheckCode.php
index a7ef9024326..82a137e58e1 100644
--- a/core/Command/App/CheckCode.php
+++ b/core/Command/App/CheckCode.php
@@ -38,6 +38,9 @@ use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
+use OC\App\CodeChecker\StrongComparisonCheck;
+use OC\App\CodeChecker\DeprecationCheck;
+use OC\App\CodeChecker\PrivateCheck;
class CheckCode extends Command implements CompletionAwareInterface {
@@ -45,9 +48,9 @@ class CheckCode extends Command implements CompletionAwareInterface {
private $infoParser;
protected $checkers = [
- 'private' => '\OC\App\CodeChecker\PrivateCheck',
- 'deprecation' => '\OC\App\CodeChecker\DeprecationCheck',
- 'strong-comparison' => '\OC\App\CodeChecker\StrongComparisonCheck',
+ 'private' => PrivateCheck::class,
+ 'deprecation' => DeprecationCheck::class,
+ 'strong-comparison' => StrongComparisonCheck::class,
];
public function __construct(InfoParser $infoParser) {