@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -357,8 +357,6 @@ |
||
| 357 | 357 | * "data": "user" |
| 358 | 358 | * } |
| 359 | 359 | * |
| 360 | - * @param string $uid |
|
| 361 | - * @param string $uname |
|
| 362 | 360 | * |
| 363 | 361 | * @return Response |
| 364 | 362 | */ |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | * @param string $class Force set node type |
| 215 | 215 | * @param bool $multiple Allow $id to be an array |
| 216 | 216 | * @param bool $allow_root Allow instance of root collection |
| 217 | - * @param bool $deleted How to handle deleted node |
|
| 217 | + * @param integer $deleted How to handle deleted node |
|
| 218 | 218 | * |
| 219 | 219 | * @return NodeInterface |
| 220 | 220 | */ |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | * @param string $id |
| 249 | 249 | * @param string $path |
| 250 | 250 | * @param string $class Force set node type |
| 251 | - * @param bool $deleted How to handle deleted node |
|
| 251 | + * @param integer $deleted How to handle deleted node |
|
| 252 | 252 | * |
| 253 | 253 | * @return Generator |
| 254 | 254 | */ |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | * @param string $attribute |
| 101 | 101 | * @param Closure $decorator |
| 102 | 102 | * |
| 103 | - * @return AttributeDecorator |
|
| 103 | + * @return EventDecorator |
|
| 104 | 104 | */ |
| 105 | 105 | public function addDecorator(string $attribute, Closure $decorator): self |
| 106 | 106 | { |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | * @param string $attribute |
| 97 | 97 | * @param Closure $decorator |
| 98 | 98 | * |
| 99 | - * @return AttributeDecorator |
|
| 99 | + * @return NodeDecorator |
|
| 100 | 100 | */ |
| 101 | 101 | public function addDecorator(string $attribute, Closure $decorator): self |
| 102 | 102 | { |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * balloon |
@@ -141,20 +141,20 @@ discard block |
||
| 141 | 141 | 'mime' => (string) $attributes['mime'], |
| 142 | 142 | 'readonly' => (bool) $attributes['readonly'], |
| 143 | 143 | 'directory' => $node instanceof Collection, |
| 144 | - 'meta' => function ($node) { |
|
| 144 | + 'meta' => function($node) { |
|
| 145 | 145 | return (object) $node->getMetaAttributes(); |
| 146 | 146 | }, |
| 147 | - 'size' => function ($node) { |
|
| 147 | + 'size' => function($node) { |
|
| 148 | 148 | return $node->getSize(); |
| 149 | 149 | }, |
| 150 | - 'path' => function ($node) { |
|
| 150 | + 'path' => function($node) { |
|
| 151 | 151 | try { |
| 152 | 152 | return $node->getPath(); |
| 153 | 153 | } catch (\Exception $e) { |
| 154 | 154 | return null; |
| 155 | 155 | } |
| 156 | 156 | }, |
| 157 | - 'parent' => function ($node) { |
|
| 157 | + 'parent' => function($node) { |
|
| 158 | 158 | $id = $node->getAttributes()['parent']; |
| 159 | 159 | |
| 160 | 160 | if (null === $id) { |
@@ -163,10 +163,10 @@ discard block |
||
| 163 | 163 | |
| 164 | 164 | return (string) $id; |
| 165 | 165 | }, |
| 166 | - 'access' => function ($node) use ($acl) { |
|
| 166 | + 'access' => function($node) use ($acl) { |
|
| 167 | 167 | return $acl->getAclPrivilege($node); |
| 168 | 168 | }, |
| 169 | - 'share' => function ($node) { |
|
| 169 | + 'share' => function($node) { |
|
| 170 | 170 | if ($node->isShared() || !$node->isSpecial()) { |
| 171 | 171 | return null; |
| 172 | 172 | } |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | return null; |
| 178 | 178 | } |
| 179 | 179 | }, |
| 180 | - 'shareowner' => function ($node) use ($server, $fs) { |
|
| 180 | + 'shareowner' => function($node) use ($server, $fs) { |
|
| 181 | 181 | if (!$node->isSpecial()) { |
| 182 | 182 | return null; |
| 183 | 183 | } |
@@ -223,20 +223,20 @@ discard block |
||
| 223 | 223 | protected function getTimeAttributes(NodeInterface $node, array $attributes): array |
| 224 | 224 | { |
| 225 | 225 | return [ |
| 226 | - 'created' => function ($node) use ($attributes) { |
|
| 226 | + 'created' => function($node) use ($attributes) { |
|
| 227 | 227 | return $this->dateTimeToUnix($attributes['created']); |
| 228 | 228 | }, |
| 229 | - 'changed' => function ($node) use ($attributes) { |
|
| 229 | + 'changed' => function($node) use ($attributes) { |
|
| 230 | 230 | return $this->dateTimeToUnix($attributes['changed']); |
| 231 | 231 | }, |
| 232 | - 'deleted' => function ($node) use ($attributes) { |
|
| 232 | + 'deleted' => function($node) use ($attributes) { |
|
| 233 | 233 | if (false === $attributes['deleted']) { |
| 234 | 234 | return false; |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | 237 | return $this->dateTimeToUnix($attributes['destroy']); |
| 238 | 238 | }, |
| 239 | - 'destroy' => function ($node) use ($attributes) { |
|
| 239 | + 'destroy' => function($node) use ($attributes) { |
|
| 240 | 240 | if (null === $attributes['destroy']) { |
| 241 | 241 | return null; |
| 242 | 242 | } |