@@ -265,6 +265,8 @@ |
||
265 | 265 | /** |
266 | 266 | * Get resolved member. |
267 | 267 | * |
268 | + * @param integer $offset |
|
269 | + * @param integer $limit |
|
268 | 270 | * @return Generator |
269 | 271 | */ |
270 | 272 | public function getResolvedMembers(?int $offset = null, ?int $limit = null): ?Generator |
@@ -722,6 +722,8 @@ |
||
722 | 722 | /** |
723 | 723 | * Get resolved groups. |
724 | 724 | * |
725 | + * @param integer $offset |
|
726 | + * @param integer $limit |
|
725 | 727 | * @return Generator |
726 | 728 | */ |
727 | 729 | public function getResolvedGroups(?int $offset = null, ?int $limit = null): ?Generator |
@@ -629,7 +629,7 @@ |
||
629 | 629 | return true; |
630 | 630 | } |
631 | 631 | |
632 | - return $this->doRecursiveAction(function ($node) use ($conflict, $recursion) { |
|
632 | + return $this->doRecursiveAction(function($node) use ($conflict, $recursion) { |
|
633 | 633 | $node->undelete($conflict, $recursion, false); |
634 | 634 | }, NodeInterface::DELETED_ONLY); |
635 | 635 | } |
@@ -1113,6 +1113,8 @@ |
||
1113 | 1113 | |
1114 | 1114 | /** |
1115 | 1115 | * Duplicate name with a uniqid within name. |
1116 | + * @param string $name |
|
1117 | + * @param string $class |
|
1116 | 1118 | */ |
1117 | 1119 | public function getDuplicateName(?string $name = null, ?string $class = null): string |
1118 | 1120 | { |
@@ -45,14 +45,14 @@ |
||
45 | 45 | * @param array |
46 | 46 | **/ |
47 | 47 | protected $temp_files = [ |
48 | - '/^\._(.*)$/', // OS/X resource forks |
|
49 | - '/^.DS_Store$/', // OS/X custom folder settings |
|
48 | + '/^\._(.*)$/', // OS/X resource forks |
|
49 | + '/^.DS_Store$/', // OS/X custom folder settings |
|
50 | 50 | '/^desktop.ini$/', // Windows custom folder settings |
51 | - '/^Thumbs.db$/', // Windows thumbnail cache |
|
52 | - '/^.(.*).swpx$/', // ViM temporary files |
|
53 | - '/^.(.*).swx$/', // ViM temporary files |
|
54 | - '/^.(.*).swp$/', // ViM temporary files |
|
55 | - '/^\.dat(.*)$/', // Smultron seems to create these |
|
51 | + '/^Thumbs.db$/', // Windows thumbnail cache |
|
52 | + '/^.(.*).swpx$/', // ViM temporary files |
|
53 | + '/^.(.*).swx$/', // ViM temporary files |
|
54 | + '/^.(.*).swp$/', // ViM temporary files |
|
55 | + '/^\.dat(.*)$/', // Smultron seems to create these |
|
56 | 56 | '/^~lock.(.*)#$/', // Windows 7 lockfiles |
57 | 57 | ]; |
58 | 58 |
@@ -429,6 +429,7 @@ |
||
429 | 429 | |
430 | 430 | /** |
431 | 431 | * Change content (Sabe dav compatible method). |
432 | + * @param resource $content |
|
432 | 433 | */ |
433 | 434 | public function put($content): int |
434 | 435 | { |
@@ -171,7 +171,7 @@ |
||
171 | 171 | */ |
172 | 172 | protected function setExceptionHandler(): self |
173 | 173 | { |
174 | - set_exception_handler(function ($e) { |
|
174 | + set_exception_handler(function($e) { |
|
175 | 175 | $this->logger->emergency('uncaught exception: '.$e->getMessage(), [ |
176 | 176 | 'category' => get_class($this), |
177 | 177 | 'exception' => $e, |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | protected function setErrorHandler(): self |
44 | 44 | { |
45 | - set_error_handler(function ($severity, $message, $file, $line) { |
|
45 | + set_error_handler(function($severity, $message, $file, $line) { |
|
46 | 46 | $log = $message.' in '.$file.':'.$line; |
47 | 47 | |
48 | 48 | switch ($severity) { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | ->prependRoute(new Route('/api/v2/nodes|files|collections/subscription(/|\z)', v2\Subscription::class)) |
33 | 33 | ->prependRoute(new Route('/api/v2/nodes|files|collections/{id:#([0-9a-z]{24})#}/subscription(/|\z)', v2\Subscription::class)); |
34 | 34 | |
35 | - $decorator->addDecorator('subscription', function ($node) use ($notifier, $server) { |
|
35 | + $decorator->addDecorator('subscription', function($node) use ($notifier, $server) { |
|
36 | 36 | $subscription = $notifier->getSubscription($node, $server->getIdentity()); |
37 | 37 | if ($subscription === null) { |
38 | 38 | return false; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | return true; |
42 | 42 | }); |
43 | 43 | |
44 | - $decorator->addDecorator('subscription_exclude_me', function ($node) use ($notifier, $server) { |
|
44 | + $decorator->addDecorator('subscription_exclude_me', function($node) use ($notifier, $server) { |
|
45 | 45 | $subscription = $notifier->getSubscription($node, $server->getIdentity()); |
46 | 46 | if ($subscription === null) { |
47 | 47 | return false; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return $subscription['exclude_me']; |
51 | 51 | }); |
52 | 52 | |
53 | - $decorator->addDecorator('subscription_recursive', function ($node) use ($notifier, $server) { |
|
53 | + $decorator->addDecorator('subscription_recursive', function($node) use ($notifier, $server) { |
|
54 | 54 | if (!($node instanceof Collection)) { |
55 | 55 | return null; |
56 | 56 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | ->setHeader('Content-Type', 'application/octet-stream') |
65 | 65 | ->setHeader('Content-Transfer-Encoding', 'binary') |
66 | 66 | ->setOutputFormat(null) |
67 | - ->setBody(function () use ($url) { |
|
67 | + ->setBody(function() use ($url) { |
|
68 | 68 | $stream = fopen($url, 'r'); |
69 | 69 | while (!feof($stream)) { |
70 | 70 | echo fread($stream, 8192); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | ->prependRoute(new Route('/api/v2/files/convert(/|\z)', Convert::class)) |
35 | 35 | ->prependRoute(new Route('/api/v2/files/{id:#([0-9a-z]{24})#}/convert(/|\z)', Convert::class)); |
36 | 36 | |
37 | - $node_decorator->addDecorator('master', function ($node) use ($convert_decorator, $converter) { |
|
37 | + $node_decorator->addDecorator('master', function($node) use ($convert_decorator, $converter) { |
|
38 | 38 | $master = $node->getAppAttribute('Balloon\\App\\Convert', 'master'); |
39 | 39 | if (null === $master) { |
40 | 40 | return null; |