From afb8e58dbce9781218cb57cee0da6fc2f395ed64 Mon Sep 17 00:00:00 2001 From: Mihai Varga Date: Thu, 29 Oct 2015 19:51:31 +0200 Subject: [PATCH] removed spaces at the end of lines --- lib/storage.php | 28 ++++++++++++++-------------- 1 file 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 . - * + * */ @@ -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),