@@ -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 |
@@ -49,8 +49,8 @@ |
||
49 | 49 | $this->db->storage->updateOne( |
50 | 50 | ['_id' => $object['_id']], |
51 | 51 | [ |
52 | - '$unset' => ['sharelink' => 1], |
|
53 | - '$set' => ['app.Balloon\App\Sharelink' => $object['sharelink']], |
|
52 | + '$unset' => ['sharelink' => 1], |
|
53 | + '$set' => ['app.Balloon\App\Sharelink' => $object['sharelink']], |
|
54 | 54 | ] |
55 | 55 | ); |
56 | 56 | } |
@@ -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 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * balloon |
@@ -105,11 +105,11 @@ discard block |
||
105 | 105 | switch ($option) { |
106 | 106 | case 'loleaflet': |
107 | 107 | case 'wopi_url': |
108 | - $this->{$option} = (string) $value; |
|
108 | + $this->{$option} = (string)$value; |
|
109 | 109 | |
110 | 110 | break; |
111 | 111 | case 'token_ttl': |
112 | - $this->token_ttl = (int) $value; |
|
112 | + $this->token_ttl = (int)$value; |
|
113 | 113 | |
114 | 114 | break; |
115 | 115 | default: |
@@ -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 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * balloon |
@@ -56,33 +56,33 @@ discard block |
||
56 | 56 | protected function getAttributes(NodeInterface $node, array $attributes): array |
57 | 57 | { |
58 | 58 | return [ |
59 | - 'name' => (string) $attributes['name'], |
|
60 | - 'mime' => (string) $attributes['mime'], |
|
61 | - 'readonly' => (bool) $attributes['readonly'], |
|
59 | + 'name' => (string)$attributes['name'], |
|
60 | + 'mime' => (string)$attributes['mime'], |
|
61 | + 'readonly' => (bool)$attributes['readonly'], |
|
62 | 62 | 'directory' => $node instanceof Collection, |
63 | 63 | 'meta' => $node->getMetaAttributes(), |
64 | 64 | 'size' => $node->getSize(), |
65 | - 'parent' => function ($node, $requested) use ($attributes) { |
|
65 | + 'parent' => function($node, $requested) use ($attributes) { |
|
66 | 66 | $parent = $node->getParent(); |
67 | 67 | |
68 | 68 | if (null === $parent || $parent->isRoot()) { |
69 | 69 | return null; |
70 | 70 | } |
71 | 71 | |
72 | - return (string) $attributes['parent']; |
|
72 | + return (string)$attributes['parent']; |
|
73 | 73 | }, |
74 | - 'owner' => (string) $attributes['owner'], |
|
75 | - 'share' => (string) $attributes['shared'], |
|
74 | + 'owner' => (string)$attributes['owner'], |
|
75 | + 'share' => (string)$attributes['shared'], |
|
76 | 76 | 'created' => $attributes['created']->toDateTime()->format('c'), |
77 | 77 | 'changed' => $attributes['changed']->toDateTime()->format('c'), |
78 | - 'deleted' => function ($node, $requested) use ($attributes) { |
|
78 | + 'deleted' => function($node, $requested) use ($attributes) { |
|
79 | 79 | if (!$attributes['deleted']) { |
80 | 80 | return null; |
81 | 81 | } |
82 | 82 | |
83 | 83 | return $attributes['deleted']->toDateTime()->format('c'); |
84 | 84 | }, |
85 | - 'destroy' => function ($node, $requested) use ($attributes) { |
|
85 | + 'destroy' => function($node, $requested) use ($attributes) { |
|
86 | 86 | if (!$attributes['destroy']) { |
87 | 87 | return null; |
88 | 88 | } |
@@ -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 |