aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files/filesystem.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-22 20:58:09 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-22 20:58:09 +0100
commit9a1f65aab176604c90114891b4bc0346fbb7d561 (patch)
tree55991eac2d663cac796d5d907a4f4acd5c838ff8 /lib/files/filesystem.php
parent7330fcf5e81e7d91ed37f01da7cc45833e10f1c4 (diff)
downloadnextcloud-server-9a1f65aab176604c90114891b4bc0346fbb7d561.tar.gz
nextcloud-server-9a1f65aab176604c90114891b4bc0346fbb7d561.zip
Some style fixes
Diffstat (limited to 'lib/files/filesystem.php')
-rw-r--r--lib/files/filesystem.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index 28e8b046896..9a3d13e343b 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -231,16 +231,16 @@ class Filesystem {
}
/**
- * Initialize system and personal mount points for a user
- *
- * @param string $user
- */
+ * Initialize system and personal mount points for a user
+ *
+ * @param string $user
+ */
public static function initMountPoints($user = '') {
if ($user == '') {
$user = \OC_User::getUser();
}
// Load system mount points
- if (is_file(\OC::$SERVERROOT.'/config/mount.php')) {
+ if (is_file(\OC::$SERVERROOT . '/config/mount.php')) {
$mountConfig = include 'config/mount.php';
if (isset($mountConfig['global'])) {
foreach ($mountConfig['global'] as $mountPoint => $options) {
@@ -277,8 +277,8 @@ class Filesystem {
// Load personal mount points
$root = \OC_User::getHome($user);
self::mount('\OC\Files\Storage\Local', array('datadir' => $root), $user);
- if (is_file($root.'/mount.php')) {
- $mountConfig = include $root.'/mount.php';
+ if (is_file($root . '/mount.php')) {
+ $mountConfig = include $root . '/mount.php';
if (isset($mountConfig['user'][$user])) {
foreach ($mountConfig['user'][$user] as $mountPoint => $options) {
self::mount($options['class'], $options['options'], $mountPoint);
@@ -370,7 +370,7 @@ class Filesystem {
} else {
// Update old classes to new namespace
if (strpos($class, 'OC_Filestorage_') !== false) {
- $class = '\OC\Files\Storage\\'.substr($class, 15);
+ $class = '\OC\Files\Storage\\' . substr($class, 15);
}
self::$mounts[$mountpoint] = array('class' => $class, 'arguments' => $arguments);
}
@@ -663,7 +663,7 @@ class Filesystem {
* @param string $path
* @return string
*/
- static public function getETag($path){
+ static public function getETag($path) {
return self::$defaultInstance->getETag($path);
}
}