]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix "Line indented incorrectly"
authorBart Visscher <bartv@thisnet.nl>
Fri, 14 Dec 2012 22:04:42 +0000 (23:04 +0100)
committerBart Visscher <bartv@thisnet.nl>
Fri, 14 Dec 2012 23:43:46 +0000 (00:43 +0100)
apps/files_versions/history.php
apps/user_ldap/lib/access.php
apps/user_ldap/lib/connection.php
apps/user_webdavauth/settings.php
lib/db.php
lib/migrate.php
lib/ocsclient.php
lib/request.php
lib/templatelayout.php
lib/updater.php
lib/util.php

index deff735cedca9c994016119f70c8b23f1b757cc4..d4c278ebd85f0692b362c362bd820c0d484c76ab 100644 (file)
@@ -33,7 +33,7 @@ if ( isset( $_GET['path'] ) ) {
        $versions = new OCA_Versions\Storage();
 
        // roll back to old version if button clicked
-        if( isset( $_GET['revert'] ) ) {
+       if( isset( $_GET['revert'] ) ) {
 
                if( $versions->rollback( $path, $_GET['revert'] ) ) {
 
@@ -52,7 +52,7 @@ if ( isset( $_GET['path'] ) ) {
        }
 
        // show the history only if there is something to show
-        if( OCA_Versions\Storage::isversioned( $path ) ) {
+       if( OCA_Versions\Storage::isversioned( $path ) ) {
 
                $count = 999; //show the newest revisions
                $versions = OCA_Versions\Storage::getVersions( $path, $count);
index 91f56ad882e8af5abe0eeae9b40757b04fc6bc4e..e1eea2f46c06f12ea95d5e6877ecd5c9a45cdf11 100644 (file)
@@ -356,7 +356,7 @@ abstract class Access {
                        );
                }
                 $res = $query->execute(array($dn))->fetchOne();
-                if($res) {
+               if($res) {
                         return  $res;
                 }
                return false;
index 687e2692270e19bc8cb219e97ad6eebe55de450a..b14cdafff89809cf3b0780d3cac7d2cdcad475e0 100644 (file)
@@ -338,11 +338,11 @@ class Connection {
                        }
                        $this->ldapConnectionRes = ldap_connect($this->config['ldapHost'], $this->config['ldapPort']);
                        if(ldap_set_option($this->ldapConnectionRes, LDAP_OPT_PROTOCOL_VERSION, 3)) {
-                                       if(ldap_set_option($this->ldapConnectionRes, LDAP_OPT_REFERRALS, 0)) {
-                                               if($this->config['ldapTLS']) {
-                                                       ldap_start_tls($this->ldapConnectionRes);
-                                               }
+                               if(ldap_set_option($this->ldapConnectionRes, LDAP_OPT_REFERRALS, 0)) {
+                                       if($this->config['ldapTLS']) {
+                                               ldap_start_tls($this->ldapConnectionRes);
                                        }
+                               }
                        }
 
                        return $this->bind();
index 497a3385caa687a202b3171c94a0d8ea80a6034f..910073c784188daff638581cc04d41620da4ac8a 100755 (executable)
@@ -23,9 +23,9 @@
 
 if($_POST) {
 
-               if(isset($_POST['webdav_url'])) {
-                       OC_CONFIG::setValue('user_webdavauth_url', strip_tags($_POST['webdav_url']));
-               }
+       if(isset($_POST['webdav_url'])) {
+               OC_CONFIG::setValue('user_webdavauth_url', strip_tags($_POST['webdav_url']));
+       }
 }
 
 // fill template
index 6524db7581ad69fa25ad03fe882a8f76d78a0daa..7e60b41d2305434a0b95ed2bd0191f7bd4ba2e1e 100644 (file)
@@ -445,9 +445,9 @@ class OC_DB {
                 * http://www.sqlite.org/lang_createtable.html
                 * http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions037.htm
                 */
-                if( $CONFIG_DBTYPE == 'pgsql' ) { //mysql support it too but sqlite doesn't
-                                $content = str_replace( '<default>0000-00-00 00:00:00</default>', '<default>CURRENT_TIMESTAMP</default>', $content );
-                }
+               if( $CONFIG_DBTYPE == 'pgsql' ) { //mysql support it too but sqlite doesn't
+                       $content = str_replace( '<default>0000-00-00 00:00:00</default>', '<default>CURRENT_TIMESTAMP</default>', $content );
+               }
 
                file_put_contents( $file2, $content );
 
index 2cc0a3067b8c472e1783624cc8dbb902787ae157..f41441bedbb2c6bae4e77d1fe473979520cbdb79 100644 (file)
@@ -78,7 +78,7 @@ class OC_Migrate{
         * @param otional $path string path to zip output folder
         * @return false on error, path to zip on success
         */
-        public static function export( $uid=null, $type='user', $path=null ) {
+       public static function export( $uid=null, $type='user', $path=null ) {
                $datadir = OC_Config::getValue( 'datadirectory' );
                // Validate export type
                $types = array( 'user', 'instance', 'system', 'userfiles' );
index 12e5026a877e56689d61c85039bc84b3b63bce17..24081425f1e730925f85b7cd7a0a65533a0f7a1e 100644 (file)
@@ -44,10 +44,10 @@ class OC_OCSClient{
          * @returns string of the KB server
          * This function returns the url of the OCS knowledge base server. It´s possible to set it in the config file or it will fallback to the default
          */
-        private static function getKBURL() {
-                $url = OC_Config::getValue('knowledgebaseurl', 'http://api.apps.owncloud.com/v1');
-                return($url);
-        }
+       private static function getKBURL() {
+               $url = OC_Config::getValue('knowledgebaseurl', 'http://api.apps.owncloud.com/v1');
+               return($url);
+       }
 
        /**
         * @brief Get the content of an OCS url call.
index c975c84a7117349a9af951ca9a6a5b2dbbb82de4..782ed26a4153d6ec494b73dca351162fcc12b38d 100755 (executable)
@@ -74,7 +74,7 @@ class OC_Request {
                        switch($encoding) {
 
                            case 'ISO-8859-1' :
-                               $path_info = utf8_encode($path_info);
+                                   $path_info = utf8_encode($path_info);
 
                        }
                        // end copy
index 1a0570a270d617b4a3d2cb82a6b033aa25f5ced7..87b5620932cc8bc3ff5861042ffc05a400469305 100644 (file)
@@ -97,13 +97,13 @@ class OC_TemplateLayout extends OC_Template {
         * @param $web base for path
         * @param $file the filename
         */
-        static public function appendIfExist(&$files, $root, $webroot, $file) {
-                if (is_file($root.'/'.$file)) {
+       static public function appendIfExist(&$files, $root, $webroot, $file) {
+               if (is_file($root.'/'.$file)) {
                        $files[] = array($root, $webroot, $file);
                        return true;
-                }
-                return false;
-        }
+               }
+               return false;
+       }
 
        static public function findStylesheetFiles($styles) {
                // Read the selected theme from the config file
index 11081eded639935b27411b0edebee1d271763fa9..d44ac1083808d41120066a202db38a0f5af0f6fd 100644 (file)
@@ -52,18 +52,18 @@ class OC_Updater{
                        )
                );
                $xml=@file_get_contents($url, 0, $ctx);
-                if($xml==false) {
-                        return array();
-                }
-                $data=@simplexml_load_string($xml);
+               if($xml==false) {
+                       return array();
+               }
+               $data=@simplexml_load_string($xml);
 
                $tmp=array();
-                $tmp['version'] = $data->version;
-                $tmp['versionstring'] = $data->versionstring;
-                $tmp['url'] = $data->url;
-                $tmp['web'] = $data->web;
+               $tmp['version'] = $data->version;
+               $tmp['versionstring'] = $data->versionstring;
+               $tmp['url'] = $data->url;
+               $tmp['web'] = $data->web;
 
-                return $tmp;
+               return $tmp;
        }
 
        public static function ShowUpdatingHint() {
index 34c4d4f9b116317159dea7c5efeb89bb000cf7ec..fc1c889c31d22e083ae29798bb393c7e34fe3f3f 100755 (executable)
@@ -586,7 +586,7 @@ class OC_Util {
         /**
          * Check if the ownCloud server can connect to the internet
          */
-        public static function isinternetconnectionworking() {
+       public static function isinternetconnectionworking() {
 
                // try to connect to owncloud.org to see if http connections to the internet are possible.
                $connected = @fsockopen("www.owncloud.org", 80); 
@@ -685,34 +685,34 @@ class OC_Util {
          * If not, file_get_element is used.
          */
         
-        public static function getUrlContent($url){
+       public static function getUrlContent($url){
             
-            if  (function_exists('curl_init')) {
-                
-                $curl = curl_init();
-
-                curl_setopt($curl, CURLOPT_HEADER, 0);
-                curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
-                curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
-                curl_setopt($curl, CURLOPT_URL, $url);
-               curl_setopt($curl, CURLOPT_USERAGENT, "ownCloud Server Crawler");
-                $data = curl_exec($curl);
-                curl_close($curl);
-
-            } else {
-                
-                $ctx = stream_context_create(
-                    array(
-                        'http' => array(
-                            'timeout' => 10
-                        )
-                    )
-                );
-                $data=@file_get_contents($url, 0, $ctx);
-                
-            }
-            
-            return $data;
-        }
+               if  (function_exists('curl_init')) {
+
+                       $curl = curl_init();
+
+                       curl_setopt($curl, CURLOPT_HEADER, 0);
+                       curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
+                       curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
+                       curl_setopt($curl, CURLOPT_URL, $url);
+                       curl_setopt($curl, CURLOPT_USERAGENT, "ownCloud Server Crawler");
+                       $data = curl_exec($curl);
+                       curl_close($curl);
+
+               } else {
+
+                       $ctx = stream_context_create(
+                                       array(
+                                               'http' => array(
+                                                       'timeout' => 10
+                                                       )
+                                            )
+                                       );
+                       $data=@file_get_contents($url, 0, $ctx);
+
+               }
+
+               return $data;
+       }
         
 }