Merge pull request #7273 from nextcloud/remove-unused-code

Remove unused checkCode method
This commit is contained in:
Morris Jobke 2017-11-24 15:08:29 +01:00 committed by GitHub
commit 44adcad757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 17 deletions

View File

@ -588,23 +588,6 @@ class Installer {
return $info['id'];
}
/**
* check the code of an app with some static code checks
* @param string $folder the folder of the app to check
* @return boolean true for app is o.k. and false for app is not o.k.
*/
public static function checkCode($folder) {
// is the code checker enabled?
if(!\OC::$server->getConfig()->getSystemValue('appcodechecker', false)) {
return true;
}
$codeChecker = new CodeChecker(new PrivateCheck(new EmptyCheck()));
$errors = $codeChecker->analyseFolder(basename($folder), $folder);
return empty($errors);
}
/**
* @param string $script
*/