@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -110,8 +110,8 @@ |
||
110 | 110 | |
111 | 111 | foreach ($this->server->getGroups($groups_filter) as $role) { |
112 | 112 | $body[] = [ |
113 | - 'type' => 'group', |
|
114 | - 'id' => (string) $role->getId(), |
|
113 | + 'type' => 'group', |
|
114 | + 'id' => (string) $role->getId(), |
|
115 | 115 | 'name' => $role->getName(), |
116 | 116 | ]; |
117 | 117 | } |
@@ -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 |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | foreach ($this->server->getGroups($groups_filter) as $role) { |
112 | 112 | $body[] = [ |
113 | 113 | 'type' => 'group', |
114 | - 'id' => (string) $role->getId(), |
|
114 | + 'id' => (string)$role->getId(), |
|
115 | 115 | 'name' => $role->getName(), |
116 | 116 | ]; |
117 | 117 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | foreach ($this->server->getUsers($users_filter) as $role) { |
120 | 120 | $body[] = [ |
121 | 121 | 'type' => 'user', |
122 | - 'id' => (string) $role->getId(), |
|
122 | + 'id' => (string)$role->getId(), |
|
123 | 123 | 'name' => $role->getUsername(), |
124 | 124 | ]; |
125 | 125 | } |
@@ -424,8 +424,8 @@ |
||
424 | 424 | ]; |
425 | 425 | |
426 | 426 | $node->getFilesystem()->getDatabase()->delta->updateMany([ |
427 | - 'node' => [ |
|
428 | - '$in' => $toset, |
|
427 | + 'node' => [ |
|
428 | + '$in' => $toset, |
|
429 | 429 | ], |
430 | 430 | ], $action); |
431 | 431 |
@@ -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 |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | int $conflict, |
125 | 125 | ?string $recursion, |
126 | 126 | bool $recursion_first |
127 | - ): void { |
|
127 | + ) : void { |
|
128 | 128 | if (false === $recursion_first) { |
129 | 129 | return; |
130 | 130 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | int $conflict, |
165 | 165 | ?string $recursion, |
166 | 166 | bool $recursion_first |
167 | - ): void { |
|
167 | + ) : void { |
|
168 | 168 | if (false === $recursion_first) { |
169 | 169 | return; |
170 | 170 | } |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | * @param string $recursion |
227 | 227 | * @param bool $recursion_first |
228 | 228 | */ |
229 | - public function postDeleteCollection(Collection $node, bool $force, ?string $recursion, bool $recursion_first): void |
|
229 | + public function postDeleteCollection(Collection $node, bool $force, ?string $recursion, bool $recursion_first) : void |
|
230 | 230 | { |
231 | 231 | if (false === $recursion_first) { |
232 | 232 | return; |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | * @param string $recursion |
270 | 270 | * @param bool $recursion_first |
271 | 271 | */ |
272 | - public function postDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first): void |
|
272 | + public function postDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first) : void |
|
273 | 273 | { |
274 | 274 | if (false === $recursion_first) { |
275 | 275 | return; |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | * @param string $recursion |
306 | 306 | * @param bool $recursion_first |
307 | 307 | */ |
308 | - public function postSaveNodeAttributes(NodeInterface $node, array $attributes, array $remove, ?string $recursion, bool $recursion_first): void |
|
308 | + public function postSaveNodeAttributes(NodeInterface $node, array $attributes, array $remove, ?string $recursion, bool $recursion_first) : void |
|
309 | 309 | { |
310 | 310 | if (false === $recursion_first) { |
311 | 311 | return; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | public function preCopyFile( |
117 | 117 | File $node, |
118 | 118 | Collection $parent, |
119 | - int $conflict, |
|
119 | + int $conflict, |
|
120 | 120 | ?string $recursion, |
121 | 121 | bool $recursion_first |
122 | 122 | ): void { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | File $node, |
130 | 130 | Collection $parent, |
131 | 131 | File $new_node, |
132 | - int $conflict, |
|
132 | + int $conflict, |
|
133 | 133 | ?string $recursion, |
134 | 134 | bool $recursion_first |
135 | 135 | ): void { |
@@ -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 |
@@ -46,42 +46,42 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * {@inheritdoc} |
48 | 48 | */ |
49 | - public function preServerIdentity(Identity $identity, ?array &$attributes): void |
|
49 | + public function preServerIdentity(Identity $identity, ? array &$attributes) : void |
|
50 | 50 | { |
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | 54 | * {@inheritdoc} |
55 | 55 | */ |
56 | - public function postServerIdentity(Server $server, User $user): void |
|
56 | + public function postServerIdentity(Server $server, User $user) : void |
|
57 | 57 | { |
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
61 | 61 | * {@inheritdoc} |
62 | 62 | */ |
63 | - public function preCreateCollection(Collection $parent, string &$name, array &$attributes, bool $clone): void |
|
63 | + public function preCreateCollection(Collection $parent, string&$name, array &$attributes, bool $clone) : void |
|
64 | 64 | { |
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
68 | 68 | * {@inheritdoc} |
69 | 69 | */ |
70 | - public function postCreateCollection(Collection $parent, Collection $node, bool $clone): void |
|
70 | + public function postCreateCollection(Collection $parent, Collection $node, bool $clone) : void |
|
71 | 71 | { |
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
75 | 75 | * {@inheritdoc} |
76 | 76 | */ |
77 | - public function preCreateFile(Collection $parent, string &$name, array &$attributes, bool $clone): void |
|
77 | + public function preCreateFile(Collection $parent, string&$name, array &$attributes, bool $clone) : void |
|
78 | 78 | { |
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | 82 | * {@inheritdoc} |
83 | 83 | */ |
84 | - public function postCreateFile(Collection $parent, File $node, bool $clone): void |
|
84 | + public function postCreateFile(Collection $parent, File $node, bool $clone) : void |
|
85 | 85 | { |
86 | 86 | } |
87 | 87 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | int $conflict, |
95 | 95 | ?string $recursion, |
96 | 96 | bool $recursion_first |
97 | - ): void { |
|
97 | + ) : void { |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | int $conflict, |
108 | 108 | ?string $recursion, |
109 | 109 | bool $recursion_first |
110 | - ): void { |
|
110 | + ) : void { |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | int $conflict, |
120 | 120 | ?string $recursion, |
121 | 121 | bool $recursion_first |
122 | - ): void { |
|
122 | + ) : void { |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
@@ -132,62 +132,62 @@ discard block |
||
132 | 132 | int $conflict, |
133 | 133 | ?string $recursion, |
134 | 134 | bool $recursion_first |
135 | - ): void { |
|
135 | + ) : void { |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | /** |
139 | 139 | * {@inheritdoc} |
140 | 140 | */ |
141 | - public function preDeleteCollection(Collection $node, bool $force, ?string $recursion, bool $recursion_first): void |
|
141 | + public function preDeleteCollection(Collection $node, bool $force, ?string $recursion, bool $recursion_first) : void |
|
142 | 142 | { |
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
146 | 146 | * {@inheritdoc} |
147 | 147 | */ |
148 | - public function postDeleteCollection(Collection $node, bool $force, ?string $recursion, bool $recursion_first): void |
|
148 | + public function postDeleteCollection(Collection $node, bool $force, ?string $recursion, bool $recursion_first) : void |
|
149 | 149 | { |
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
153 | 153 | * {@inheritdoc} |
154 | 154 | */ |
155 | - public function preRestoreFile(File $node, int $version): void |
|
155 | + public function preRestoreFile(File $node, int $version) : void |
|
156 | 156 | { |
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
160 | 160 | * {@inheritdoc} |
161 | 161 | */ |
162 | - public function postRestoreFile(File $node, int $version): void |
|
162 | + public function postRestoreFile(File $node, int $version) : void |
|
163 | 163 | { |
164 | 164 | } |
165 | 165 | |
166 | 166 | /** |
167 | 167 | * {@inheritdoc} |
168 | 168 | */ |
169 | - public function prePutFile(File $node, $content, bool $force, array $attributes): void |
|
169 | + public function prePutFile(File $node, $content, bool $force, array $attributes) : void |
|
170 | 170 | { |
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
174 | 174 | * {@inheritdoc} |
175 | 175 | */ |
176 | - public function postPutFile(File $node, $content, bool $force, array $attributes): void |
|
176 | + public function postPutFile(File $node, $content, bool $force, array $attributes) : void |
|
177 | 177 | { |
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
181 | 181 | * {@inheritdoc} |
182 | 182 | */ |
183 | - public function preDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first): void |
|
183 | + public function preDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first) : void |
|
184 | 184 | { |
185 | 185 | } |
186 | 186 | |
187 | 187 | /** |
188 | 188 | * {@inheritdoc} |
189 | 189 | */ |
190 | - public function postDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first): void |
|
190 | + public function postDeleteFile(File $node, bool $force, ?string $recursion, bool $recursion_first) : void |
|
191 | 191 | { |
192 | 192 | } |
193 | 193 | |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | array &$remove_attributes, |
201 | 201 | ?string $recursion, |
202 | 202 | bool $recursion_first |
203 | - ): void { |
|
203 | + ) : void { |
|
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |
@@ -212,6 +212,6 @@ discard block |
||
212 | 212 | array $remove_attributes, |
213 | 213 | ?string $recursion, |
214 | 214 | bool $recursion_first |
215 | - ): void { |
|
215 | + ) : void { |
|
216 | 216 | } |
217 | 217 | } |
@@ -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 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @return HookInterface |
51 | 51 | */ |
52 | - public function setOptions(?Iterable $config = null): HookInterface |
|
52 | + public function setOptions(?Iterable $config = null) : HookInterface |
|
53 | 53 | { |
54 | 54 | if (null === $config) { |
55 | 55 | return $this; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | foreach ($config as $option => $value) { |
59 | 59 | switch ($option) { |
60 | 60 | case 'interval': |
61 | - $this->{$option} = (int) $value; |
|
61 | + $this->{$option} = (int)$value; |
|
62 | 62 | |
63 | 63 | break; |
64 | 64 | default: |
@@ -91,7 +91,7 @@ |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | $this->logger->info('found first time username ['.$identity->getIdentifier().'], auto-create user in mongodb user collection', [ |
94 | - 'category' => get_class($this), |
|
94 | + 'category' => get_class($this), |
|
95 | 95 | ]); |
96 | 96 | |
97 | 97 | $attributes = [ |
@@ -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 |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * |
62 | 62 | * @return HookInterface |
63 | 63 | */ |
64 | - public function setOptions(?Iterable $config): HookInterface |
|
64 | + public function setOptions(?Iterable $config) : HookInterface |
|
65 | 65 | { |
66 | 66 | if (null === $config) { |
67 | 67 | return $this; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | /** |
85 | 85 | * {@inheritdoc} |
86 | 86 | */ |
87 | - public function preServerIdentity(Identity $identity, ?array &$attributes): void |
|
87 | + public function preServerIdentity(Identity $identity, ? array &$attributes) : void |
|
88 | 88 | { |
89 | 89 | if (null !== $attributes) { |
90 | 90 | return; |
@@ -111,15 +111,15 @@ discard block |
||
111 | 111 | |
112 | 112 | switch ($value['type']) { |
113 | 113 | case 'string': |
114 | - $attributes[$attr] = (string) $value['value']; |
|
114 | + $attributes[$attr] = (string)$value['value']; |
|
115 | 115 | |
116 | 116 | break; |
117 | 117 | case 'int': |
118 | - $attributes[$attr] = (int) $value['value']; |
|
118 | + $attributes[$attr] = (int)$value['value']; |
|
119 | 119 | |
120 | 120 | break; |
121 | 121 | case 'bool': |
122 | - $attributes[$attr] = (bool) $value['value']; |
|
122 | + $attributes[$attr] = (bool)$value['value']; |
|
123 | 123 | |
124 | 124 | break; |
125 | 125 | case 'binary': |
@@ -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,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @return HookInterface |
58 | 58 | */ |
59 | - public function setOptions(?Iterable $config = null): HookInterface |
|
59 | + public function setOptions(?Iterable $config = null) : HookInterface |
|
60 | 60 | { |
61 | 61 | if (null === $config) { |
62 | 62 | return $this; |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | switch ($option) { |
67 | 67 | case 'max_age': |
68 | 68 | case 'interval': |
69 | - $this->{$option} = (int) $value; |
|
69 | + $this->{$option} = (int)$value; |
|
70 | 70 | |
71 | 71 | break; |
72 | 72 | default: |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Balloon |