diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-14 22:37:49 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-21 23:46:50 +0100 |
commit | 59a3238d1a0494987546b5ecc14622981b4a2778 (patch) | |
tree | 7390cccaa4d9facd4157e95f647a74810a593502 /apps/files_sharing/lib/share/file.php | |
parent | 40a5a526841d379da5d554a6f69ad0aef25acb7d (diff) | |
download | nextcloud-server-59a3238d1a0494987546b5ecc14622981b4a2778.tar.gz nextcloud-server-59a3238d1a0494987546b5ecc14622981b4a2778.zip |
Style cleanup files_sharing
Diffstat (limited to 'apps/files_sharing/lib/share/file.php')
-rw-r--r-- | apps/files_sharing/lib/share/file.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/share/file.php b/apps/files_sharing/lib/share/file.php index 6d3c55a008f..0aeb763d89a 100644 --- a/apps/files_sharing/lib/share/file.php +++ b/apps/files_sharing/lib/share/file.php @@ -72,7 +72,11 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent { public function formatItems($items, $format, $parameters = null) { if ($format == self::FORMAT_SHARED_STORAGE) { // Only 1 item should come through for this format call - return array('path' => $items[key($items)]['path'], 'permissions' => $items[key($items)]['permissions'], 'uid_owner' => $items[key($items)]['uid_owner']); + return array( + 'path' => $items[key($items)]['path'], + 'permissions' => $items[key($items)]['permissions'], + 'uid_owner' => $items[key($items)]['uid_owner'] + ); } else if ($format == self::FORMAT_GET_FOLDER_CONTENTS) { $files = array(); foreach ($items as $item) { @@ -99,7 +103,13 @@ class OC_Share_Backend_File implements OCP\Share_Backend_File_Dependent { } $size += (int)$item['size']; } - return array('fileid' => -1, 'name' => 'Shared', 'mtime' => $mtime, 'mimetype' => 'httpd/unix-directory', 'size' => $size); + return array( + 'fileid' => -1, + 'name' => 'Shared', + 'mtime' => $mtime, + 'mimetype' => 'httpd/unix-directory', + 'size' => $size + ); } else if ($format == self::FORMAT_OPENDIR) { $files = array(); foreach ($items as $item) { |