summaryrefslogtreecommitdiffstats
path: root/service/folderservice.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-10-21 18:19:23 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-10-21 18:19:23 +0200
commit66c73a96ac2dda076bcfe0dc0a1ca2a7e169149d (patch)
treedc0318fa459e4f313217ee38e4bc63524513d721 /service/folderservice.php
parentf5e64d35c05b14016eb4fffff7199386a97a9b43 (diff)
first try to set indention limit at 80 characters in php
Diffstat (limited to 'service/folderservice.php')
-rw-r--r--service/folderservice.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/service/folderservice.php b/service/folderservice.php
index eb1e584f5..982837c92 100644
--- a/service/folderservice.php
+++ b/service/folderservice.php
@@ -34,7 +34,8 @@ class FolderService extends Service {
parent::__construct($folderMapper);
$this->l10n = $l10n;
$this->timeFactory = $timeFactory;
- $this->autoPurgeMinimumInterval = $config->getAutoPurgeMinimumInterval();
+ $this->autoPurgeMinimumInterval =
+ $config->getAutoPurgeMinimumInterval();
$this->folderMapper = $folderMapper;
}
@@ -49,7 +50,8 @@ class FolderService extends Service {
private function validateFolder($folderName, $userId){
- $existingFolders = $this->folderMapper->findByName($folderName, $userId);
+ $existingFolders =
+ $this->folderMapper->findByName($folderName, $userId);
if(count($existingFolders) > 0){
throw new ServiceConflictException(
@@ -57,7 +59,9 @@ class FolderService extends Service {
}
if(mb_strlen($folderName) === 0) {
- throw new ServiceValidationException('Folder name can not be empty');
+ throw new ServiceValidationException(
+ 'Folder name can not be empty'
+ );
}
}
@@ -66,7 +70,8 @@ class FolderService extends Service {
* Creates a new folder
* @param string $folderName the name of the folder
* @param string $userId the name of the user for whom it should be created
- * @param int $parentId the parent folder id, deprecated we don't nest folders
+ * @param int $parentId the parent folder id, deprecated we don't nest
+ * folders
* @throws ServiceConflictException if name exists already
* @throws ServiceValidationException if the folder has invalid parameters
* @return Folder the newly created folder