Completed
Branch master (5de492)
by Raffael
10:53 queued 05:49
created
src/lib/Filesystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Storage/Adapter/Gridfs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/EventAttributeDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/AttributeDecorator.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -131,20 +131,20 @@  discard block
 block discarded – undo
131 131
             'mime' => (string) $attributes['mime'],
132 132
             'readonly' => (bool) $attributes['readonly'],
133 133
             'directory' => $node instanceof Collection,
134
-            'meta' => function ($node) {
134
+            'meta' => function($node) {
135 135
                 return (object) $node->getMetaAttributes();
136 136
             },
137
-            'size' => function ($node) {
137
+            'size' => function($node) {
138 138
                 return $node->getSize();
139 139
             },
140
-            'path' => function ($node) {
140
+            'path' => function($node) {
141 141
                 try {
142 142
                     return $node->getPath();
143 143
                 } catch (\Exception $e) {
144 144
                     return null;
145 145
                 }
146 146
             },
147
-            'parent' => function ($node) {
147
+            'parent' => function($node) {
148 148
                 $parent = $node->getParent();
149 149
 
150 150
                 if (null === $parent || $parent->isRoot()) {
@@ -153,10 +153,10 @@  discard block
 block discarded – undo
153 153
 
154 154
                 return $this->decorate($node->getParent(), ['id', 'name', '_links']);
155 155
             },
156
-            'access' => function ($node) use ($acl) {
156
+            'access' => function($node) use ($acl) {
157 157
                 return $acl->getAclPrivilege($node);
158 158
             },
159
-            'share' => function ($node) {
159
+            'share' => function($node) {
160 160
                 if ($node->isShared() || !$node->isSpecial()) {
161 161
                     return null;
162 162
                 }
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                     return null;
168 168
                 }
169 169
             },
170
-            'sharename' => function ($node) {
170
+            'sharename' => function($node) {
171 171
                 if (!$node->isShared()) {
172 172
                     return null;
173 173
                 }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                     return null;
179 179
                 }
180 180
             },
181
-            'shareowner' => function ($node) use ($server, $fs, $decorator) {
181
+            'shareowner' => function($node) use ($server, $fs, $decorator) {
182 182
                 if (!$node->isSpecial()) {
183 183
                     return null;
184 184
                 }
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                     return null;
193 193
                 }
194 194
             },
195
-            'owner' => function ($node) use ($server, $decorator) {
195
+            'owner' => function($node) use ($server, $decorator) {
196 196
                 try {
197 197
                     return $decorator->decorate(
198 198
                         $server->getUserById($node->getOwner()),
@@ -216,20 +216,20 @@  discard block
 block discarded – undo
216 216
     protected function getTimeAttributes(NodeInterface $node, array $attributes): array
217 217
     {
218 218
         return [
219
-            'created' => function ($node) use ($attributes) {
219
+            'created' => function($node) use ($attributes) {
220 220
                 return $attributes['created']->toDateTime()->format('c');
221 221
             },
222
-            'changed' => function ($node) use ($attributes) {
222
+            'changed' => function($node) use ($attributes) {
223 223
                 return $attributes['changed']->toDateTime()->format('c');
224 224
             },
225
-            'deleted' => function ($node) use ($attributes) {
225
+            'deleted' => function($node) use ($attributes) {
226 226
                 if (false === $attributes['deleted']) {
227 227
                     return null;
228 228
                 }
229 229
 
230 230
                 return $attributes['deleted']->toDateTime()->format('c');
231 231
             },
232
-            'destroy' => function ($node) use ($attributes) {
232
+            'destroy' => function($node) use ($attributes) {
233 233
                 if (null === $attributes['destroy']) {
234 234
                     return null;
235 235
                 }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
         return [
263 263
             'shared' => $node->isShared(),
264 264
             'reference' => $node->isReference(),
265
-            'filter' => function ($node) use ($attributes) {
265
+            'filter' => function($node) use ($attributes) {
266 266
                 if (null === $attributes['filter']) {
267 267
                     return null;
268 268
                 }
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/File.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -45,14 +45,14 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/Collection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
         $this->deleted = new UTCDateTime();
387 387
 
388 388
         if (!$this->isReference()) {
389
-            $this->doRecursiveAction(function ($node) use ($recursion) {
389
+            $this->doRecursiveAction(function($node) use ($recursion) {
390 390
                 $node->delete(false, $recursion, false);
391 391
             }, NodeInterface::DELETED_EXCLUDE);
392 392
         }
@@ -991,7 +991,7 @@  discard block
 block discarded – undo
991 991
     protected function _forceDelete(?string $recursion = null, bool $recursion_first = true): bool
992 992
     {
993 993
         if (!$this->isReference()) {
994
-            $this->doRecursiveAction(function ($node) use ($recursion) {
994
+            $this->doRecursiveAction(function($node) use ($recursion) {
995 995
                 $node->delete(true, $recursion, false);
996 996
             }, NodeInterface::DELETED_INCLUDE);
997 997
         }
Please login to merge, or discard this patch.
src/lib/Filesystem/Node/AbstractNode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/lib/Filesystem/Acl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Filesystem/Delta.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.