Passed
Branch master (712f93)
by Caen
05:16
created
packages/framework/src/Support/DataCollections.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         static::needsDirectory(static::$sourceDirectory);
53 53
 
54
-        return new static(static::findFiles($name, 'md')->mapWithKeys(function (string $file): array {
54
+        return new static(static::findFiles($name, 'md')->mapWithKeys(function(string $file): array {
55 55
             return [static::makeIdentifier($file) => MarkdownFileParser::parse($file)];
56 56
         }));
57 57
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         static::needsDirectory(static::$sourceDirectory);
69 69
 
70
-        return new static(static::findFiles($name, ['yaml', 'yml'])->mapWithKeys(function (string $file): array {
70
+        return new static(static::findFiles($name, ['yaml', 'yml'])->mapWithKeys(function(string $file): array {
71 71
             return [static::makeIdentifier($file) => MarkdownFileParser::parse($file)->matter()];
72 72
         }));
73 73
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         static::needsDirectory(static::$sourceDirectory);
85 85
 
86
-        return new static(static::findFiles($name, 'json')->mapWithKeys(function (string $file) use ($asArray): array {
86
+        return new static(static::findFiles($name, 'json')->mapWithKeys(function(string $file) use ($asArray): array {
87 87
             return [static::makeIdentifier($file) => json_decode(Filesystem::get($file), $asArray)];
88 88
         }));
89 89
     }
Please login to merge, or discard this patch.