aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-01 15:26:10 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-01 15:26:10 +0100
commitee4d57660d6563440fdd61eb9997d0463df136a3 (patch)
tree31c4fcbc06dd068f86287a3e7eed8adeaafb7141
parentf19ba49c607dc0f2079d85330186041391d446a4 (diff)
parentaf44b5e5736c425b951f3657ac48d81e75a0da8a (diff)
downloadnextcloud-server-ee4d57660d6563440fdd61eb9997d0463df136a3.tar.gz
nextcloud-server-ee4d57660d6563440fdd61eb9997d0463df136a3.zip
Merge pull request #22751 from owncloud/stable8.2-codecheckeruses
[stable8.2] Fixing CodeChecker usage
-rw-r--r--lib/private/installer.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index 861ce6ea41b..75ff3c2b2e3 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -38,6 +38,9 @@
*
*/
+use OC\App\CodeChecker\CodeChecker;
+use OC\App\CodeChecker\EmptyCheck;
+use OC\App\CodeChecker\PrivateCheck;
use OC\OCSClient;
/**
@@ -567,7 +570,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);