Completed
Push — master ( afaf42...8ac772 )
by Raffael
20:10 queued 16:21
created
src/lib/Async/WorkerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     protected function setErrorHandler(LoggerInterface $logger): self
56 56
     {
57
-        set_error_handler(function ($severity, $message, $file, $line) use ($logger) {
57
+        set_error_handler(function($severity, $message, $file, $line) use ($logger) {
58 58
             $log = $message.' in '.$file.':'.$line;
59 59
 
60 60
             switch ($severity) {
Please login to merge, or discard this patch.
src/lib/Async/SmbScanner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
     protected function deleteNode(NodeInterface $node, Blackhole $dummy): bool
145 145
     {
146 146
         if ($node instanceof Collection) {
147
-            $node->doRecursiveAction(function (NodeInterface $node) use ($dummy) {
147
+            $node->doRecursiveAction(function(NodeInterface $node) use ($dummy) {
148 148
                 if ($node instanceof Collection) {
149 149
                     $node->setStorage($dummy);
150 150
                 }
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/AttributeDecorator.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -113,20 +113,20 @@  discard block
 block discarded – undo
113 113
             'mime' => (string) $attributes['mime'],
114 114
             'readonly' => (bool) $attributes['readonly'],
115 115
             'directory' => $node instanceof Collection,
116
-            'meta' => function ($node) {
116
+            'meta' => function($node) {
117 117
                 return (object) $node->getMetaAttributes();
118 118
             },
119
-            'size' => function ($node) {
119
+            'size' => function($node) {
120 120
                 return $node->getSize();
121 121
             },
122
-            'path' => function ($node) {
122
+            'path' => function($node) {
123 123
                 try {
124 124
                     return $node->getPath();
125 125
                 } catch (\Exception $e) {
126 126
                     return null;
127 127
                 }
128 128
             },
129
-            'parent' => function ($node) {
129
+            'parent' => function($node) {
130 130
                 $parent = $node->getParent();
131 131
 
132 132
                 if (null === $parent || $parent->isRoot()) {
@@ -135,17 +135,17 @@  discard block
 block discarded – undo
135 135
 
136 136
                 return $this->decorate($node->getParent(), ['id', 'name', '_links']);
137 137
             },
138
-            'access' => function ($node) use ($acl) {
138
+            'access' => function($node) use ($acl) {
139 139
                 return $acl->getAclPrivilege($node);
140 140
             },
141
-            'acl' => function ($node) use ($attributes) {
141
+            'acl' => function($node) use ($attributes) {
142 142
                 if ($node->isShareMember() && count($attributes['acl']) > 0) {
143 143
                     return $node->getAcl();
144 144
                 }
145 145
 
146 146
                 return null;
147 147
             },
148
-            'share' => function ($node) use ($fs) {
148
+            'share' => function($node) use ($fs) {
149 149
                 if ($node->isShared() || !$node->isSpecial()) {
150 150
                     return null;
151 151
                 }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
                     return null;
157 157
                 }
158 158
             },
159
-            'sharename' => function ($node) {
159
+            'sharename' => function($node) {
160 160
                 if (!$node->isShared()) {
161 161
                     return null;
162 162
                 }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                     return null;
168 168
                 }
169 169
             },
170
-            'shareowner' => function ($node) use ($server, $fs, $decorator) {
170
+            'shareowner' => function($node) use ($server, $fs, $decorator) {
171 171
                 if (!$node->isSpecial()) {
172 172
                     return null;
173 173
                 }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                     return null;
182 182
                 }
183 183
             },
184
-            'owner' => function ($node) use ($server, $decorator) {
184
+            'owner' => function($node) use ($server, $decorator) {
185 185
                 try {
186 186
                     return $decorator->decorate(
187 187
                         $server->getUserById($node->getOwner()),
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
                     return null;
192 192
                 }
193 193
             },
194
-            'external_storage' => function ($node) use ($fs, $attributes) {
194
+            'external_storage' => function($node) use ($fs, $attributes) {
195 195
                 if ($node->getMount() === null || $node instanceof Collection && $node->isMounted()) {
196 196
                     return null;
197 197
                 }
@@ -209,20 +209,20 @@  discard block
 block discarded – undo
209 209
     protected function getTimeAttributes(NodeInterface $node, array $attributes): array
210 210
     {
211 211
         return [
212
-            'created' => function ($node) use ($attributes) {
212
+            'created' => function($node) use ($attributes) {
213 213
                 return $attributes['created']->toDateTime()->format('c');
214 214
             },
215
-            'changed' => function ($node) use ($attributes) {
215
+            'changed' => function($node) use ($attributes) {
216 216
                 return $attributes['changed']->toDateTime()->format('c');
217 217
             },
218
-            'deleted' => function ($node) use ($attributes) {
218
+            'deleted' => function($node) use ($attributes) {
219 219
                 if (false === $attributes['deleted']) {
220 220
                     return null;
221 221
                 }
222 222
 
223 223
                 return $attributes['deleted']->toDateTime()->format('c');
224 224
             },
225
-            'destroy' => function ($node) use ($attributes) {
225
+            'destroy' => function($node) use ($attributes) {
226 226
                 if (null === $attributes['destroy']) {
227 227
                     return null;
228 228
                 }
@@ -250,14 +250,14 @@  discard block
 block discarded – undo
250 250
         return [
251 251
             'shared' => $node->isShared(),
252 252
             'reference' => $node->isReference(),
253
-            'filter' => function ($node) use ($attributes) {
253
+            'filter' => function($node) use ($attributes) {
254 254
                 if (null === $attributes['filter']) {
255 255
                     return null;
256 256
                 }
257 257
 
258 258
                 return json_decode($attributes['filter'], true);
259 259
             },
260
-            'mount' => function ($node) use ($fs, $attributes) {
260
+            'mount' => function($node) use ($fs, $attributes) {
261 261
                 $mount = $node->getAttributes()['mount'];
262 262
 
263 263
                 if (!$node->isMounted() && !$node->isReference()) {
Please login to merge, or discard this patch.