]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed new checkstyle issues in migrate.php from build #1341.
authorDiederik de Haas <diederik@cknow.org>
Fri, 9 Nov 2012 23:53:28 +0000 (00:53 +0100)
committerDiederik de Haas <diederik@cknow.org>
Fri, 9 Nov 2012 23:53:28 +0000 (00:53 +0100)
lib/migrate.php

index ca74edcdc57b24051a78ff3168b5545e4f88b874..2cc0a3067b8c472e1783624cc8dbb902787ae157 100644 (file)
@@ -238,13 +238,13 @@ class OC_Migrate{
                                $userfolder = $extractpath . $json->exporteduser;
                                $newuserfolder = $datadir . '/' . self::$uid;
                                foreach(scandir($userfolder) as $file){
-                                       if($file !== '.' && $file !== '..' && is_dir($file)){
+                                       if($file !== '.' && $file !== '..' && is_dir($file)) {
                                                // Then copy the folder over
                                                OC_Helper::copyr($userfolder.'/'.$file, $newuserfolder.'/'.$file);
                                        }
                                }
                                // Import user app data
-                               if(file_exists($extractpath . $json->exporteduser . '/migration.db')){
+                               if(file_exists($extractpath . $json->exporteduser . '/migration.db')) {
                                        if( !$appsimported = self::importAppData( $extractpath . $json->exporteduser . '/migration.db', $json, self::$uid ) ) {
                                                return json_encode( array( 'success' => false ) );
                                        }