Completed
Pull Request — develop (#7)
by Ben
02:10
created
src/Api.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
         $directoryTimestamp = 0000000000;
247 247
 
248
-        array_walk($normalizeTreeMetadata, function (&$entry) use (&$directoryTimestamp) {
248
+        array_walk($normalizeTreeMetadata, function(&$entry) use (&$directoryTimestamp) {
249 249
             if ($this->hasKey($entry, self::KEY_TIMESTAMP) === false
250 250
                 || $entry[self::KEY_TIMESTAMP] === false
251 251
             ) {
@@ -327,8 +327,8 @@  discard block
 block discarded – undo
327 327
     {
328 328
         $metadata = $tree;
329 329
 
330
-        if(empty($path) === false) {
331
-            $metadata = array_filter($tree, function ($entry) use ($path, $recursive) {
330
+        if (empty($path) === false) {
331
+            $metadata = array_filter($tree, function($entry) use ($path, $recursive) {
332 332
                 $match = false;
333 333
 
334 334
                 if (strpos($entry[self::KEY_PATH], $path) === 0) {
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
                 return $match;
343 343
             });
344 344
         } elseif ($recursive === false) {
345
-            $metadata = array_filter($tree, function ($entry) use ($path) {
345
+            $metadata = array_filter($tree, function($entry) use ($path) {
346 346
                 return (strpos($entry[self::KEY_PATH], '/', strlen($path)) === false);
347 347
             });
348 348
         } // ♪♫ and nothing else matters ♩♬
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
     {
359 359
         $visibility = AdapterInterface::VISIBILITY_PUBLIC;
360 360
 
361
-        if (! substr($permissions, -4) & 0044) {
361
+        if (!substr($permissions, -4) & 0044) {
362 362
             $visibility = AdapterInterface::VISIBILITY_PRIVATE;
363 363
         }
364 364
 
Please login to merge, or discard this patch.