Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Varga <mihai.mv13@gmail.com>2015-10-29 20:51:31 +0300
committerMihai Varga <mihai.mv13@gmail.com>2015-10-29 21:26:03 +0300
commitafb8e58dbce9781218cb57cee0da6fc2f395ed64 (patch)
treeae3b5b5b237f863dc26b2bbac5a83b3be675f800 /lib
parent97ee005462881dd3dbb2a8addbb087ea1f7edb3d (diff)
removed spaces at the end of lines
Diffstat (limited to 'lib')
-rw-r--r--lib/storage.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/storage.php b/lib/storage.php
index b3c2ce02..8241a2b5 100644
--- a/lib/storage.php
+++ b/lib/storage.php
@@ -5,20 +5,20 @@
*
* @author Frank Karlitschek
* @copyright 2013-2014 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/>.
- *
+ *
*/
@@ -38,10 +38,10 @@ class Storage {
return true;
}
);
-
+
return $list;
}
-
+
public static function resolvePath($fileId){
$list = array_filter(
self::searchDocuments(),
@@ -55,7 +55,7 @@ class Storage {
}
return false;
}
-
+
/**
* @brief Cleanup session data on removing the document
* @param array
@@ -65,19 +65,19 @@ class Storage {
*/
public static function onDelete($params) {
$info = \OC\Files\Filesystem::getFileInfo($params['path']);
-
+
$fileId = @$info['fileid'];
if (!$fileId){
return;
}
-
+
$session = new Db\Session();
$session->loadBy('file_id', $fileId);
if (!$session->getEsId()){
return;
}
-
+
$member = new Db\Member();
$sessionMembers = $member->getCollectionBy('es_id', $session->getEsId());
foreach ($sessionMembers as $memberData){
@@ -85,10 +85,10 @@ class Storage {
return;
}
}
-
+
Db\Session::cleanUp($session->getEsId());
}
-
+
protected static function searchDocuments(){
$documents = array();
foreach (self::getSupportedMimetypes() as $mime){
@@ -96,7 +96,7 @@ class Storage {
}
return $documents;
}
-
+
public static function getSupportedMimetypes(){
return array_merge(
array(self::MIMETYPE_LIBREOFFICE_WORDPROCESSOR),