mirror of
https://github.com/brufdev/many-notes.git
synced 2026-01-26 12:58:51 -06:00
Refactor code
This commit is contained in:
@@ -12,12 +12,12 @@ class VaultFile
|
||||
{
|
||||
public static function extensions(bool $withDots = false): array
|
||||
{
|
||||
return array_merge(
|
||||
Audio::extensions($withDots),
|
||||
Image::extensions($withDots),
|
||||
Note::extensions($withDots),
|
||||
Pdf::extensions($withDots),
|
||||
Video::extensions($withDots),
|
||||
);
|
||||
return [
|
||||
...Audio::extensions($withDots),
|
||||
...Image::extensions($withDots),
|
||||
...Note::extensions($withDots),
|
||||
...Pdf::extensions($withDots),
|
||||
...Video::extensions($withDots),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user