@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | if ($node instanceof SystemTagsObjectMappingCollection) { |
| 134 | 134 | // also add to collection |
| 135 | 135 | $node->createFile($tag->getId()); |
| 136 | - $url = $request->getBaseUrl() . 'systemtags/'; |
|
| 136 | + $url = $request->getBaseUrl().'systemtags/'; |
|
| 137 | 137 | } else { |
| 138 | 138 | $url = $request->getUrl(); |
| 139 | 139 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | $url .= '/'; |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | - $response->setHeader('Content-Location', $url . $tag->getId()); |
|
| 145 | + $response->setHeader('Content-Location', $url.$tag->getId()); |
|
| 146 | 146 | |
| 147 | 147 | // created |
| 148 | 148 | $response->setStatus(201); |
@@ -177,11 +177,11 @@ discard block |
||
| 177 | 177 | $userAssignable = true; |
| 178 | 178 | |
| 179 | 179 | if (isset($data['userVisible'])) { |
| 180 | - $userVisible = (bool)$data['userVisible']; |
|
| 180 | + $userVisible = (bool) $data['userVisible']; |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | if (isset($data['userAssignable'])) { |
| 184 | - $userAssignable = (bool)$data['userAssignable']; |
|
| 184 | + $userAssignable = (bool) $data['userAssignable']; |
|
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | $groups = []; |
@@ -224,29 +224,29 @@ discard block |
||
| 224 | 224 | return; |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | - $propFind->handle(self::ID_PROPERTYNAME, function () use ($node) { |
|
| 227 | + $propFind->handle(self::ID_PROPERTYNAME, function() use ($node) { |
|
| 228 | 228 | return $node->getSystemTag()->getId(); |
| 229 | 229 | }); |
| 230 | 230 | |
| 231 | - $propFind->handle(self::DISPLAYNAME_PROPERTYNAME, function () use ($node) { |
|
| 231 | + $propFind->handle(self::DISPLAYNAME_PROPERTYNAME, function() use ($node) { |
|
| 232 | 232 | return $node->getSystemTag()->getName(); |
| 233 | 233 | }); |
| 234 | 234 | |
| 235 | - $propFind->handle(self::USERVISIBLE_PROPERTYNAME, function () use ($node) { |
|
| 235 | + $propFind->handle(self::USERVISIBLE_PROPERTYNAME, function() use ($node) { |
|
| 236 | 236 | return $node->getSystemTag()->isUserVisible() ? 'true' : 'false'; |
| 237 | 237 | }); |
| 238 | 238 | |
| 239 | - $propFind->handle(self::USERASSIGNABLE_PROPERTYNAME, function () use ($node) { |
|
| 239 | + $propFind->handle(self::USERASSIGNABLE_PROPERTYNAME, function() use ($node) { |
|
| 240 | 240 | // this is the tag's inherent property "is user assignable" |
| 241 | 241 | return $node->getSystemTag()->isUserAssignable() ? 'true' : 'false'; |
| 242 | 242 | }); |
| 243 | 243 | |
| 244 | - $propFind->handle(self::CANASSIGN_PROPERTYNAME, function () use ($node) { |
|
| 244 | + $propFind->handle(self::CANASSIGN_PROPERTYNAME, function() use ($node) { |
|
| 245 | 245 | // this is the effective permission for the current user |
| 246 | 246 | return $this->tagManager->canUserAssignTag($node->getSystemTag(), $this->userSession->getUser()) ? 'true' : 'false'; |
| 247 | 247 | }); |
| 248 | 248 | |
| 249 | - $propFind->handle(self::GROUPS_PROPERTYNAME, function () use ($node) { |
|
| 249 | + $propFind->handle(self::GROUPS_PROPERTYNAME, function() use ($node) { |
|
| 250 | 250 | if (!$this->groupManager->isAdmin($this->userSession->getUser()->getUID())) { |
| 251 | 251 | // property only available for admins |
| 252 | 252 | throw new Forbidden(); |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | self::USERVISIBLE_PROPERTYNAME, |
| 280 | 280 | self::USERASSIGNABLE_PROPERTYNAME, |
| 281 | 281 | self::GROUPS_PROPERTYNAME, |
| 282 | - ], function ($props) use ($node) { |
|
| 282 | + ], function($props) use ($node) { |
|
| 283 | 283 | $tag = $node->getSystemTag(); |
| 284 | 284 | $name = $tag->getName(); |
| 285 | 285 | $userVisible = $tag->isUserVisible(); |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | public function createDirectory($name) { |
| 42 | - throw new Forbidden('Permission denied to create file (filename ' . $name . ')'); |
|
| 42 | + throw new Forbidden('Permission denied to create file (filename '.$name.')'); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | public function getChild($name) { |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | */ |
| 85 | 85 | public function getSize() { |
| 86 | 86 | $children = $this->root->getChildren(); |
| 87 | - $sizes = array_map(function ($node) { |
|
| 87 | + $sizes = array_map(function($node) { |
|
| 88 | 88 | /** @var IFile $node */ |
| 89 | 89 | return $node->getSize(); |
| 90 | 90 | }, $children); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | |
| 63 | 63 | $requestUri = \OC::$server->getRequest()->getRequestUri(); |
| 64 | 64 | |
| 65 | -$server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, function () { |
|
| 65 | +$server = $serverFactory->createServer($baseuri, $requestUri, $authPlugin, function() { |
|
| 66 | 66 | // use the view for the logged in user |
| 67 | 67 | return \OC\Files\Filesystem::getView(); |
| 68 | 68 | }); |
@@ -55,8 +55,8 @@ |
||
| 55 | 55 | $logger = \OC::$server->getLogger(); |
| 56 | 56 | |
| 57 | 57 | $sql = |
| 58 | - 'DELETE FROM `*PREFIX*share` ' . |
|
| 59 | - 'WHERE `item_type` in (\'file\', \'folder\') ' . |
|
| 58 | + 'DELETE FROM `*PREFIX*share` '. |
|
| 59 | + 'WHERE `item_type` in (\'file\', \'folder\') '. |
|
| 60 | 60 | 'AND NOT EXISTS (SELECT `fileid` FROM `*PREFIX*filecache` WHERE `file_source` = `fileid`)'; |
| 61 | 61 | |
| 62 | 62 | $deletedEntries = $connection->executeUpdate($sql); |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | if (isset($parameters[$key])) { |
| 221 | 221 | switch ($parameters[$key]->getType()) { |
| 222 | 222 | case \OCA\Files_External\Lib\DefinitionParameter::VALUE_BOOLEAN: |
| 223 | - $value = (bool)$value; |
|
| 223 | + $value = (bool) $value; |
|
| 224 | 224 | break; |
| 225 | 225 | } |
| 226 | 226 | $backendOptions[$key] = $value; |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | $result['statusMessage'] = $this->statusMessage; |
| 427 | 427 | } |
| 428 | 428 | $result['userProvided'] = $this->authMechanism instanceof IUserProvided; |
| 429 | - $result['type'] = ($this->getType() === self::MOUNT_TYPE_PERSONAl) ? 'personal': 'system'; |
|
| 429 | + $result['type'] = ($this->getType() === self::MOUNT_TYPE_PERSONAl) ? 'personal' : 'system'; |
|
| 430 | 430 | return $result; |
| 431 | 431 | } |
| 432 | 432 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | ->setFlag(DefinitionParameter::FLAG_OPTIONAL), |
| 51 | 51 | ]) |
| 52 | 52 | ->addAuthScheme(AuthMechanism::SCHEME_OPENSTACK) |
| 53 | - ->setLegacyAuthMechanismCallback(function (array $params) use ($openstackAuth, $rackspaceAuth) { |
|
| 53 | + ->setLegacyAuthMechanismCallback(function(array $params) use ($openstackAuth, $rackspaceAuth) { |
|
| 54 | 54 | if (isset($params['options']['key']) && $params['options']['key']) { |
| 55 | 55 | return $rackspaceAuth; |
| 56 | 56 | } |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | public function getLastUsedTagIds() { |
| 54 | 54 | $lastUsed = $this->config->getUserValue($this->userSession->getUser()->getUID(), 'systemtags', 'last_used', '[]'); |
| 55 | 55 | $tagIds = json_decode($lastUsed, true); |
| 56 | - return new DataResponse(array_map(function ($id) { |
|
| 56 | + return new DataResponse(array_map(function($id) { |
|
| 57 | 57 | return (string) $id; |
| 58 | 58 | }, $tagIds)); |
| 59 | 59 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } else { |
| 91 | 91 | $p = new ProgressBar($output); |
| 92 | 92 | $p->start(); |
| 93 | - $this->userManager->callForSeenUsers(function (IUser $user) use ($p) { |
|
| 93 | + $this->userManager->callForSeenUsers(function(IUser $user) use ($p) { |
|
| 94 | 94 | $p->advance(); |
| 95 | 95 | $this->expireTrashForUser($user); |
| 96 | 96 | }); |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | \OC_Util::setupFS($user); |
| 119 | 119 | |
| 120 | 120 | // Check if this user has a trashbin directory |
| 121 | - $view = new \OC\Files\View('/' . $user); |
|
| 121 | + $view = new \OC\Files\View('/'.$user); |
|
| 122 | 122 | if (!$view->is_dir('/files_trashbin/files')) { |
| 123 | 123 | return false; |
| 124 | 124 | } |