Passed
Push — master ( 52ab0a...3c7939 )
by Caen
04:02 queued 13s
created
packages/framework/src/Support/DataCollections.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         static::needsDirectory(static::$sourceDirectory);
55 55
 
56
-        return new static(static::findFiles($name, 'md')->mapWithKeys(function (string $file): array {
56
+        return new static(static::findFiles($name, 'md')->mapWithKeys(function(string $file): array {
57 57
             return [static::makeIdentifier($file) => MarkdownFileParser::parse($file)];
58 58
         }));
59 59
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     {
70 70
         static::needsDirectory(static::$sourceDirectory);
71 71
 
72
-        return new static(static::findFiles($name, ['yaml', 'yml'])->mapWithKeys(function (string $file): array {
72
+        return new static(static::findFiles($name, ['yaml', 'yml'])->mapWithKeys(function(string $file): array {
73 73
             $content = Filesystem::get($file);
74 74
 
75 75
             if (str_starts_with($content, '---')) {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         static::needsDirectory(static::$sourceDirectory);
96 96
 
97
-        return new static(static::findFiles($name, 'json')->mapWithKeys(function (string $file) use ($asArray): array {
97
+        return new static(static::findFiles($name, 'json')->mapWithKeys(function(string $file) use ($asArray): array {
98 98
             return [static::makeIdentifier($file) => json_decode(Filesystem::get($file), $asArray)];
99 99
         }));
100 100
     }
Please login to merge, or discard this patch.