summaryrefslogtreecommitdiffstats
path: root/lib/installer.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-01-31 10:30:13 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-01-31 10:30:13 +0100
commite8b423f6669afda88176181c73c5edde7cc5bf48 (patch)
tree04ad74f36441c22309d5f20e37ff8fc1afe456be /lib/installer.php
parent665bb41c1f1dc6ecf48a5c32f34d91533424f085 (diff)
downloadnextcloud-server-e8b423f6669afda88176181c73c5edde7cc5bf48.tar.gz
nextcloud-server-e8b423f6669afda88176181c73c5edde7cc5bf48.zip
style fixes
Diffstat (limited to 'lib/installer.php')
-rw-r--r--lib/installer.php42
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/installer.php b/lib/installer.php
index f1b386a3e96..9786af45bef 100644
--- a/lib/installer.php
+++ b/lib/installer.php
@@ -259,18 +259,18 @@ class OC_Installer{
OC_App::enable($ocsid);
}
- /**
- * @brief Check if an update for the app is available
- * @param $name name of the application
- * @returns emptry string is no update available or the version number of the update
- *
- * The function will check if an update for a version is available
- */
- public static function isUpdateAvailable( $app ) {
+ /**
+ * @brief Check if an update for the app is available
+ * @param $name name of the application
+ * @returns empty string is no update available or the version number of the update
+ *
+ * The function will check if an update for a version is available
+ */
+ public static function isUpdateAvailable( $app ) {
$ocsid=OC_Appconfig::getValue( $app, 'ocsid', '');
if($ocsid<>''){
-
+
$ocsdata=OC_OCSClient::getApplication($ocsid);
$ocsversion= (string) $ocsdata['version'];
$currentversion=OC_App::getAppVersion($app);
@@ -285,23 +285,23 @@ class OC_Installer{
return('');
}
- }
+ }
- /**
- * @brief Check if app is already downloaded
- * @param $name name of the application to remove
- * @returns true/false
- *
- * The function will check if the app is already downloaded in the apps repository
- */
- public static function isDownloaded( $name ) {
+ /**
+ * @brief Check if app is already downloaded
+ * @param $name name of the application to remove
+ * @returns true/false
+ *
+ * The function will check if the app is already downloaded in the apps repository
+ */
+ public static function isDownloaded( $name ) {
$downloaded=false;
foreach(OC::$APPSROOTS as $dir) {
- if(is_dir($dir['path'].'/'.$name)) $downloaded=true;
+ if(is_dir($dir['path'].'/'.$name)) $downloaded=true;
}
return($downloaded);
- }
+ }
/**
* @brief Removes an app
@@ -345,7 +345,7 @@ class OC_Installer{
// remove user files
}
- if(OC_Installer::isDownloaded( $name )) {
+ if(OC_Installer::isDownloaded( $name )) {
$appdir=OC_App::getInstallPath().'/'.$name;
OC_Helper::rmdirr($appdir);