diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-11-24 10:50:50 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-11-24 10:50:50 +0100 |
commit | 05abb9ea6662655f363491074e5be52561eb965e (patch) | |
tree | c1d374ace1f7df1cbb0c722e3696af3dc37b2e2a /lib/private/Installer.php | |
parent | dc1d13a18d467e50f5621e36403d61f0b737748b (diff) | |
download | nextcloud-server-05abb9ea6662655f363491074e5be52561eb965e.tar.gz nextcloud-server-05abb9ea6662655f363491074e5be52561eb965e.zip |
Remove unused checkCode method
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Installer.php')
-rw-r--r-- | lib/private/Installer.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php index e754f28455b..45bec26831e 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -589,23 +589,6 @@ class Installer { } /** - * 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 */ private static function includeAppScript($script) { |