Skip to content
Snippets Groups Projects
Unverified Commit 44adcad7 authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

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

Remove unused checkCode method
parents 3a6d16e6 05abb9ea
No related branches found
No related tags found
No related merge requests found
......@@ -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
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment