File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ public static function scanCode(string $code): array
180
180
public function translationsByFiles (): array
181
181
{
182
182
return collect ($ this ->finder ())
183
- ->mapWithKeys (function (SplFileInfo $ file , string $ path ) {
183
+ ->map (function (SplFileInfo $ file , string $ path ) {
184
184
185
185
$ lastModified = $ file ->getMTime ();
186
186
$ cachedResult = $ this ->cache ?->get($ path );
@@ -207,13 +207,7 @@ public function translationsByFiles(): array
207
207
$ this ->cache ?->put($ path , $ translations );
208
208
}
209
209
210
- $ relativePath = str ($ path )
211
- ->after (base_path ())
212
- ->value ();
213
-
214
- return [
215
- $ relativePath => $ translations ,
216
- ];
210
+ return $ translations ;
217
211
})
218
212
->filter ()
219
213
->sortKeys (SORT_NATURAL )
You can’t perform that action at this time.
0 commit comments