]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixing CodeChecker usage :see_no_evil:
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 14 Jan 2016 16:35:28 +0000 (17:35 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 14 Jan 2016 16:35:28 +0000 (17:35 +0100)
lib/private/installer.php

index ace3d65c0025b0fbb19669fc6388fdb4bf1a3eb1..f30db9ca659f2db1d8b26dfe9e7c88d5ffffb2e5 100644 (file)
@@ -38,6 +38,9 @@
  *
  */
 
+use OC\App\CodeChecker\CodeChecker;
+use OC\App\CodeChecker\EmptyCheck;
+use OC\App\CodeChecker\PrivateCheck;
 use OC\OCSClient;
 
 /**
@@ -605,7 +608,7 @@ class OC_Installer{
                        return true;
                }
 
-               $codeChecker = new \OC\App\CodeChecker();
+               $codeChecker = new CodeChecker(new PrivateCheck(new EmptyCheck()));
                $errors = $codeChecker->analyseFolder($folder);
 
                return empty($errors);