Remove unused checkCode method

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2017-11-24 10:50:50 +01:00
parent dc1d13a18d
commit 05abb9ea66
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
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
*/