]> source.dussan.org Git - nextcloud-server.git/commitdiff
Style: Remove all the dangling white spaces
authorFelix Moeller <mail@felixmoeller.de>
Sun, 4 Nov 2012 21:16:04 +0000 (22:16 +0100)
committerFelix Moeller <mail@felixmoeller.de>
Sun, 4 Nov 2012 21:16:04 +0000 (22:16 +0100)
21 files changed:
apps/files_sharing/public.php
lib/backgroundjob.php
lib/base.php
lib/connector/sabre/quotaplugin.php
lib/log.php
lib/public/backgroundjob.php
lib/public/share.php
ocs/providers.php
ocs/v1.php
settings/ajax/createuser.php
settings/ajax/getlog.php
settings/ajax/userlist.php
settings/apps.php
settings/languageCodes.php
settings/templates/help.php
settings/templates/users.php
settings/users.php
tests/lib/share/share.php
tests/lib/user/backend.php
tests/lib/util.php
tests/preseed-config.php

index dca87cd68762a536367cadd7f2b8295ad21f4ed5..295273d842bfef3113c2dc2b8c5812c7999981dc 100644 (file)
@@ -22,7 +22,7 @@ if (isset($_GET['token'])) {
 // Enf of backward compatibility
 
 function getID($path) {
-       // use the share table from the db to find the item source if the file was reshared because shared files 
+       // use the share table from the db to find the item source if the file was reshared because shared files
        //are not stored in the file cache.
        if (substr(OC_Filesystem::getMountPoint($path), -7, 6) == "Shared") {
                $path_parts = explode('/', $path, 5);
index f486519bf0907922cabd4c215380d6834fa6d893..28b5ce3af20580bff455c93baf7fe85d11527de0 100644 (file)
@@ -40,7 +40,7 @@ class OC_BackgroundJob{
         * @param $type execution type
         * @return boolean
         *
-        * This method sets the execution type of the background jobs. Possible types 
+        * This method sets the execution type of the background jobs. Possible types
         * are "none", "ajax", "webcron", "cron"
         */
        public static function setExecutionType( $type ) {
index 084cca92e8da1f469db1f90efca939e8d664bb41..d4eeac82daa056e12797843560b7e92fd9573621 100644 (file)
@@ -619,9 +619,9 @@ class OC{
                                OC_Util::redirectToDefaultPage();
                                // doesn't return
                        }
-                       // if you reach this point you have changed your password 
+                       // if you reach this point you have changed your password
                        // or you are an attacker
-                       // we can not delete tokens here because users may reach 
+                       // we can not delete tokens here because users may reach
                        // this point multiple times after a password change
                        OC_Log::write('core', 'Authentication cookie rejected for user '.$_COOKIE['oc_username'], OC_Log::WARN);
                }
index 5b8ef9417102d08b47b47bd4e3ff7cf354647afa..a56a65ad863f504e9a66cd1aea4bbade16345cd7 100644 (file)
@@ -2,7 +2,7 @@
 
 /**
  * This plugin check user quota and deny creating files when they exceeds the quota.
- * 
+ *
  * @copyright Copyright (C) 2012 entreCables S.L. All rights reserved.
  * @author Sergio Cambra
  * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
@@ -10,9 +10,9 @@
 class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin {
 
        /**
-               * Reference to main server object 
-               * 
-               * @var Sabre_DAV_Server 
+               * Reference to main server object
+               *
+               * @var Sabre_DAV_Server
                */
        private $server;
 
@@ -23,8 +23,8 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin {
                * addPlugin is called.
                *
                * This method should set up the requires event subscriptions.
-               * 
-               * @param Sabre_DAV_Server $server 
+               *
+               * @param Sabre_DAV_Server $server
                * @return void
                */
        public function initialize(Sabre_DAV_Server $server) {
@@ -37,10 +37,10 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin {
 
        /**
                * This method is called before any HTTP method and forces users to be authenticated
-               * 
+               *
                * @param string $method
                * @throws Sabre_DAV_Exception
-               * @return bool 
+               * @return bool
                */
        public function checkQuota($uri, $data = null) {
                $expected = $this->server->httpRequest->getHeader('X-Expected-Entity-Length');
index b5e8e1b06a1518777b771443f8e60ded51363010..e9cededa5c091587d45266d34689cb7c17d9e994 100644 (file)
@@ -47,7 +47,7 @@ class OC_Log {
                        //ob_end_clean();
                        self::write('PHP', $error['message'] . ' at ' . $error['file'] . '#' . $error['line'], self::FATAL);
                } else {
-                       return true; 
+                       return true;
                }
        }
        
index 24a17836f7f1f14be9f3f74b448bf9d41c8d8e9d..601046fe691dcf9146371699d060bb03f436b485 100644 (file)
@@ -62,7 +62,7 @@ class BackgroundJob {
         * @param $type execution type
         * @return boolean
         *
-        * This method sets the execution type of the background jobs. Possible types 
+        * This method sets the execution type of the background jobs. Possible types
         * are "none", "ajax", "webcron", "cron"
         */
        public static function setExecutionType( $type ) {
index da1c0616390720527348d67b9ea2c6724311236c..071304ec24943ffa9383d469431698737be0ea7e 100644 (file)
@@ -28,7 +28,7 @@ namespace OCP;
 /**
 * This class provides the ability for apps to share their content between users.
 * Apps must create a backend class that implements OCP\Share_Backend and register it with this class.
-* 
+*
 * It provides the following hooks:
 *  - post_shared
 */
index 4c68ded914e3f1c58f922b96c7be0f103f18bf3f..bdbfe0c4ee7301e8f6ec6a94698a697eaf7c6846 100644 (file)
@@ -3,22 +3,22 @@
 /**
 * ownCloud
 *
-* @author Frank Karlitschek 
-* @copyright 2012 Frank Karlitschek frank@owncloud.org 
-* 
+* @author Frank Karlitschek
+* @copyright 2012 Frank Karlitschek frank@owncloud.org
+*
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
-* License as published by the Free Software Foundation; either 
+* License as published by the Free Software Foundation; either
 * version 3 of the License, or any later version.
-* 
+*
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
-*  
-* You should have received a copy of the GNU Affero General Public 
-* License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 * 
+* You should have received a copy of the GNU Affero General Public
+* License along with this library.  If not, see <http://www.gnu.org/licenses/>.
+*
 */
 
 require_once '../lib/base.php';
index b12ea5ef18d0df1f9d257d8f879e456167b55ef7..3593f1822cf7fb0d5c7123036ed7263474571c6f 100644 (file)
@@ -3,22 +3,22 @@
 /**
 * ownCloud
 *
-* @author Frank Karlitschek 
-* @copyright 2012 Frank Karlitschek frank@owncloud.org 
-* 
+* @author Frank Karlitschek
+* @copyright 2012 Frank Karlitschek frank@owncloud.org
+*
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
-* License as published by the Free Software Foundation; either 
+* License as published by the Free Software Foundation; either
 * version 3 of the License, or any later version.
-* 
+*
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
-*  
-* You should have received a copy of the GNU Affero General Public 
-* License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 * 
+* You should have received a copy of the GNU Affero General Public
+* License along with this library.  If not, see <http://www.gnu.org/licenses/>.
+*
 */
 
 require_once '../lib/base.php';
index c87ff422f61369f707b5b0a46cf664bfa777a47f..16b48c8a9ca058bd0ed1ee177094e93bb7152746 100644 (file)
@@ -43,9 +43,9 @@ try {
                }
                OC_Group::addToGroup( $username, $i );
        }
-       OC_JSON::success(array("data" => 
-                               array( 
-                                       "username" => $username, 
+       OC_JSON::success(array("data" =>
+                               array(
+                                       "username" => $username,
                                        "groups" => implode( ", ", OC_Group::getUserGroups( $username )))));
 } catch (Exception $exception) {
        OC_JSON::error(array("data" => array( "message" => $exception->getMessage())));
index 273b02e38227a323f1f4e651322835d644f1366d..043124fa175a57e6cbc071ab55ca9fcb3b6ddb8d 100644 (file)
@@ -12,5 +12,5 @@ $offset=(isset($_GET['offset']))?$_GET['offset']:0;
 
 $entries=OC_Log_Owncloud::getEntries($count, $offset);
 OC_JSON::success(array(
-       "data" => OC_Util::sanitizeHTML($entries), 
+       "data" => OC_Util::sanitizeHTML($entries),
        "remain"=>(count(OC_Log_Owncloud::getEntries(1, $offset + $offset)) != 0) ? true : false));
index 61b1a388fc33154d57fabff468ecb7f18a9e54d2..eaeade60a39014ef423362e117e496942ba7de91 100644 (file)
@@ -32,9 +32,9 @@ if (OC_Group::inGroup(OC_User::getUser(), 'admin')) {
        $batch = OC_User::getUsers('', 10, $offset);
        foreach ($batch as $user) {
                $users[] = array(
-                       'name' => $user, 
-                       'groups' => join(', ', OC_Group::getUserGroups($user)), 
-                       'subadmin' => join(', ', OC_SubAdmin::getSubAdminsGroups($user)), 
+                       'name' => $user,
+                       'groups' => join(', ', OC_Group::getUserGroups($user)),
+                       'subadmin' => join(', ', OC_SubAdmin::getSubAdminsGroups($user)),
                        'quota' => OC_Preferences::getValue($user, 'files', 'quota', 'default'));
        }
 } else {
@@ -42,8 +42,8 @@ if (OC_Group::inGroup(OC_User::getUser(), 'admin')) {
        $batch = OC_Group::usersInGroups($groups, '', 10, $offset);
        foreach ($batch as $user) {
                $users[] = array(
-                       'name' => $user, 
-                       'groups' => join(', ', OC_Group::getUserGroups($user)), 
+                       'name' => $user,
+                       'groups' => join(', ', OC_Group::getUserGroups($user)),
                        'quota' => OC_Preferences::getValue($user, 'files', 'quota', 'default'));
        }
 }
index 8134b44143a1c1cafbf662f6a320bc7e82d95b14..155291333f35a97666ff762f506388f235c9d5b5 100644 (file)
@@ -95,11 +95,11 @@ if ( $remoteApps ) {
 
                foreach ( $remoteApps AS $key => $remote ) {
                
-                       if ( 
+                       if (
                        $app['name'] == $remote['name']
-                       // To set duplicate detection to use OCS ID instead of string name, 
-                       // enable this code, remove the line of code above, 
-                       // and add <ocs_id>[ID]</ocs_id> to info.xml of each 3rd party app: 
+                       // To set duplicate detection to use OCS ID instead of string name,
+                       // enable this code, remove the line of code above,
+                       // and add <ocs_id>[ID]</ocs_id> to info.xml of each 3rd party app:
                        // OR $app['ocs_id'] == $remote['ocs_id']
                        ) {
                                
index 221aa13cf6aef716bb2d358b7a0c115060b7d9c2..71655800856500b5bc833d8df6a8349fe857df89 100644 (file)
@@ -3,7 +3,7 @@
  * This file is licensed under the Affero General Public License version 3 or later.
  * See the COPYING-README file.
  */
+
 return array(
 'bg_BG'=>'български език',
 'ca'=>'Català',
index 56d43853444072f77f028ac5177a6953d6eee4a5..9bb46740f5b8bb111fd368ddd605ec031b11966f 100644 (file)
@@ -1,4 +1,4 @@
-<?php 
+<?php
 /**
  * 2012 Frank Karlitschek frank@owncloud.org
  * This file is licensed under the Affero General Public License version 3 or later.
index eef9b291357215c8a6887429d5d822af828002b0..de7e50da8f3d42ed7d4d242200cae700cc7ebab2 100644 (file)
@@ -142,7 +142,7 @@ var isadmin = <?php echo $_['isadmin']?'true':'false'; ?>;
                                </div>
                        </td>
                        <td class="remove">
-                               <?php if($user['name']!=OC_User::getUser()):?> 
+                               <?php if($user['name']!=OC_User::getUser()):?>
                                        <a href="#" class="action delete" original-title="<?php echo $l->t('Delete')?>">
                                                <img src="<?php echo image_path('core', 'actions/delete.svg') ?>" />
                                        </a>
index 395712dbd590dc26b6ab9557f9cc54df04de53f6..93a259f1cd8844872346642dfd5fbe7037b860a6 100644 (file)
@@ -31,7 +31,7 @@ if($isadmin) {
 
 foreach($accessibleusers as $i) {
        $users[] = array(
-               "name" => $i, 
+               "name" => $i,
                "groups" => join( ", ", /*array_intersect(*/OC_Group::getUserGroups($i)/*, OC_SubAdmin::getSubAdminsGroups(OC_User::getUser()))*/),
                'quota'=>OC_Preferences::getValue($i, 'files', 'quota', 'default'),
                'subadmin'=>implode(', ', OC_SubAdmin::getSubAdminsGroups($i)));
index 3cad3a286807b82a52f6122c073a91fe27f6ca6e..2cb6f7417d246ede1628ded67f045032d112f864 100644 (file)
@@ -181,7 +181,7 @@ class Test_Share extends UnitTestCase {
                        $this->assertEquals($message, $exception->getMessage());
                }
                
-               // Owner grants share and update permission 
+               // Owner grants share and update permission
                OC_User::setUserId($this->user1);
                $this->assertTrue(OCP\Share::setPermissions('test', 'test.txt', OCP\Share::SHARE_TYPE_USER, $this->user2, OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_UPDATE | OCP\Share::PERMISSION_SHARE));
                
@@ -375,7 +375,7 @@ class Test_Share extends UnitTestCase {
                $this->assertTrue(in_array('test.txt', $to_test));
                $this->assertTrue(in_array('test1.txt', $to_test));
                
-               // Valid reshare 
+               // Valid reshare
                $this->assertTrue(OCP\Share::shareItem('test', 'share.txt', OCP\Share::SHARE_TYPE_USER, $this->user4, OCP\Share::PERMISSION_READ | OCP\Share::PERMISSION_SHARE));
                OC_User::setUserId($this->user4);
                $this->assertEquals(array('test1.txt'), OCP\Share::getItemsSharedWith('test', Test_Share_Backend::FORMAT_TARGET));
index 79653481f9099940270ebde9dff74764f8def1d8..0b744770ea28faea45f37e119b54af509179e2a1 100644 (file)
 /**
  * Abstract class to provide the basis of backend-specific unit test classes.
  *
- * All subclasses MUST assign a backend property in setUp() which implements 
+ * All subclasses MUST assign a backend property in setUp() which implements
  * user operations (add, remove, etc.). Test methods in this class will then be
  * run on each separate subclass and backend therein.
- * 
+ *
  * For an example see /tests/lib/user/dummy.php
  */
 
index a8e5b810265041b541c4191e9b382b3767aa6da7..27635cb805558cf3b46130c7f1ace9a3e0cd9c47 100644 (file)
@@ -10,7 +10,7 @@ class Test_Util extends UnitTestCase {
 
        // Constructor
        function Test_Util() {
-               date_default_timezone_set("UTC"); 
+               date_default_timezone_set("UTC");
        }
 
        function testFormatDate() {
@@ -36,10 +36,10 @@ class Test_Util extends UnitTestCase {
                $goodString = "This is an harmless string.";
                $result = OC_Util::sanitizeHTML($goodString);
                $this->assertEquals("This is an harmless string.", $result);
-       } 
+       }
 
        function testGenerate_random_bytes() {
                $result = strlen(OC_Util::generate_random_bytes(59));
                $this->assertEquals(59, $result);
-       } 
+       }
 }
\ No newline at end of file
index 7eadccbe76974bfb67632793ae3ca952af8ad4fa..9791e713dacbf88ebad247807c2245e1b18d97e8 100644 (file)
@@ -1,15 +1,15 @@
 <?php
 $CONFIG = array (
   "appstoreenabled" => false,
-  'apps_paths' => 
+  'apps_paths' =>
   array (
-    0 => 
+    0 =>
     array (
       'path' => OC::$SERVERROOT.'/apps',
       'url' => '/apps',
       'writable' => false,
     ),
-    1 => 
+    1 =>
     array (
       'path' => OC::$SERVERROOT.'/apps2',
       'url' => '/apps2',