]> source.dussan.org Git - nextcloud-server.git/commitdiff
Whitespace indent fixes
authorBart Visscher <bartv@thisnet.nl>
Sat, 9 Feb 2013 21:44:11 +0000 (22:44 +0100)
committerBart Visscher <bartv@thisnet.nl>
Thu, 14 Feb 2013 07:36:26 +0000 (08:36 +0100)
lib/db.php
lib/hook.php
lib/migration/content.php
lib/public/share.php
lib/request.php
lib/user.php
lib/util.php

index 51f7c7679d4c4777380815be816b1f75dc1ea721..8bb2930e03b49f8db6e6006f37dc64b542952085 100644 (file)
@@ -228,11 +228,12 @@ class OC_DB {
 
                        // Prepare options array
                        $options = array(
-                         'portability' => MDB2_PORTABILITY_ALL - MDB2_PORTABILITY_FIX_CASE,
-                         'log_line_break' => '<br>',
-                         'idxname_format' => '%s',
-                         'debug' => true,
-                         'quote_identifier' => true  );
+                                       'portability' => MDB2_PORTABILITY_ALL - MDB2_PORTABILITY_FIX_CASE,
+                                       'log_line_break' => '<br>',
+                                       'idxname_format' => '%s',
+                                       'debug' => true,
+                                       'quote_identifier' => true
+                                       );
 
                        // Add the dsn according to the database type
                        switch($type) {
index e30aefb5e1814efcda7f25306767edf0f55cf9fd..1f450e7dcac07c1779725b27b6deba58099caa45 100644 (file)
@@ -33,8 +33,9 @@ class OC_Hook{
                
                // Connect the hook handler to the requested emitter
                self::$registered[$signalclass][$signalname][] = array(
-                 "class" => $slotclass,
-                 "name" => $slotname );
+                               "class" => $slotclass,
+                               "name" => $slotname
+               );
                
                // No chance for failure ;-)
                return true;
index e81c8f217ff2ed784552913fe7fefd13131775d0..d640bea4b9fe0575cb17bb9045314b4dc298a898 100644 (file)
@@ -185,13 +185,13 @@ class OC_Migration_Content{
        * @return bool
        */
        public function addDir( $dir, $recursive=true, $internaldir='' ) {
-           $dirname = basename($dir);
-           $this->zip->addEmptyDir($internaldir . $dirname);
-           $internaldir.=$dirname.='/';
+               $dirname = basename($dir);
+               $this->zip->addEmptyDir($internaldir . $dirname);
+               $internaldir.=$dirname.='/';
                if( !file_exists( $dir ) ) {
                        return false;
                }
-           if ($dirhandle = opendir($dir)) {
+               if ($dirhandle = opendir($dir)) {
                        while (false !== ( $file = readdir($dirhandle))) {
 
                                if (( $file != '.' ) && ( $file != '..' )) {
@@ -204,11 +204,11 @@ class OC_Migration_Content{
                                }
                        }
                        closedir($dirhandle);
-           } else {
+               } else {
                        OC_Log::write('admin_export', "Was not able to open directory: " . $dir, OC_Log::ERROR);
                        return false;
-           }
-           return true;
+               }
+               return true;
        }
 
        /**
index 6dc30f6ae42f050077a1a4085ee8fb276d439cae..cc2c45e3f31384d932c60012e912aa655227cd52 100644 (file)
@@ -702,9 +702,9 @@ class Share {
                                                || $format == \OC_Share_Backend_File::FORMAT_FILE_APP_ROOT
                                        ) {
                                                $select = '`*PREFIX*share`.`id`, `item_type`, `*PREFIX*share`.`parent`, `uid_owner`, '
-                                                                .'`share_type`, `share_with`, `file_source`, `path`, `file_target`, '
-                                                                .'`permissions`, `expiration`, `storage`, `*PREFIX*filecache`.`parent` as `file_parent`, '
-                                                                .'`name`, `mtime`, `mimetype`, `mimepart`, `size`, `encrypted`, `etag`';
+                                                       .'`share_type`, `share_with`, `file_source`, `path`, `file_target`, '
+                                                       .'`permissions`, `expiration`, `storage`, `*PREFIX*filecache`.`parent` as `file_parent`, '
+                                                       .'`name`, `mtime`, `mimetype`, `mimepart`, `size`, `encrypted`, `etag`';
                                        } else {
                                                $select = '`*PREFIX*share`.`id`, `item_type`, `item_source`, `item_target`, `*PREFIX*share`.`parent`, `share_type`, `share_with`, `uid_owner`, `file_source`, `path`, `file_target`, `permissions`, `stime`, `expiration`, `token`';
                                        }
index 3c668b02c5fa27b1b5d2dffe652572229a8f4ef6..3af93289670cc4a45029498ba18750322c74b064 100755 (executable)
@@ -114,8 +114,8 @@ class OC_Request {
 
                        switch($encoding) {
 
-                           case 'ISO-8859-1' :
-                                   $path_info = utf8_encode($path_info);
+                               case 'ISO-8859-1' :
+                                       $path_info = utf8_encode($path_info);
 
                        }
                        // end copy
index 48f4e5c7006202d2e70008273d8843afbe7e50a4..6c74bb73c8cfd202401d6650e84ad5a332712ab1 100644 (file)
@@ -542,8 +542,8 @@ class OC_User {
        public static function userExists($uid, $excludingBackend=null) {
                foreach(self::$_usedBackends as $backend) {
                        if (!is_null($excludingBackend) && !strcmp(get_class($backend), $excludingBackend)) {
-                           OC_Log::write('OC_User', $excludingBackend . 'excluded from user existance check.', OC_Log::DEBUG);
-                           continue;
+                               OC_Log::write('OC_User', $excludingBackend . 'excluded from user existance check.', OC_Log::DEBUG);
+                               continue;
                        }
                        $result=$backend->userExists($uid);
                        if($result===true) {
index b9ac8ed75d869e56ff65fc3f877ce43879761cd1..5c12e0b90f78f0472d7ae13af42d9f9e46152a1a 100755 (executable)
@@ -528,9 +528,9 @@ class OC_Util {
         *
         */
        public static function isWebDAVWorking() {
-        if (!function_exists('curl_init')) {
-            return;
-        }
+               if (!function_exists('curl_init')) {
+                       return;
+               }
 
                $settings = array(
                        'baseUri' => OC_Helper::linkToRemote('webdav'),