@@ -73,7 +73,7 @@ |
||
73 | 73 | * @param string $class Force set node type |
74 | 74 | * @param bool $multiple Allow $id to be an array |
75 | 75 | * @param bool $allow_root Allow instance of root collection |
76 | - * @param bool $deleted How to handle deleted node |
|
76 | + * @param integer $deleted How to handle deleted node |
|
77 | 77 | */ |
78 | 78 | protected function _getNode( |
79 | 79 | ?string $id = null, |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | } |
122 | 122 | |
123 | 123 | $attributes = compact('namespace'); |
124 | - $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); }); |
|
124 | + $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); }); |
|
125 | 125 | |
126 | 126 | $id = $this->server->addGroup($name, $member, $attributes); |
127 | 127 | $result = $this->decorator->decorate($this->server->getGroupById($id)); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | public function patch(string $id, ?string $name = null, ?array $member = null, ?string $namespace = null): Response |
136 | 136 | { |
137 | 137 | $attributes = compact('namespace', 'name', 'member'); |
138 | - $attributes = array_filter($attributes, function ($attribute) {return !is_null($attribute); }); |
|
138 | + $attributes = array_filter($attributes, function($attribute) {return !is_null($attribute); }); |
|
139 | 139 | |
140 | 140 | $group = $this->_getGroup($id, true); |
141 | 141 | $group->setAttributes($attributes); |
@@ -246,8 +246,8 @@ discard block |
||
246 | 246 | $share = $node->getFilesystem()->findRawNode($node->getReference()); |
247 | 247 | } catch (\Exception $e) { |
248 | 248 | $this->logger->error('could not find share node ['.$node->getReference().'] for reference ['.$node->getId().'], dead reference?', [ |
249 | - 'category' => get_class($this), |
|
250 | - 'exception' => $e, |
|
249 | + 'category' => get_class($this), |
|
250 | + 'exception' => $e, |
|
251 | 251 | ]); |
252 | 252 | |
253 | 253 | return self::PRIVILEGE_DENY; |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | |
256 | 256 | if ($share['deleted'] instanceof UTCDateTime || true !== $share['shared']) { |
257 | 257 | $this->logger->error('share node ['.$share['_id'].'] has been deleted, dead reference?', [ |
258 | - 'category' => get_class($this), |
|
258 | + 'category' => get_class($this), |
|
259 | 259 | ]); |
260 | 260 | |
261 | 261 | return self::PRIVILEGE_DENY; |