Skip to content

Commit 15ac1b0

Browse files
committed
spport for 5.4
1 parent 37771c0 commit 15ac1b0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Manager.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ public function __construct(Filesystem $disk, $path, array $syncPaths)
5353
*/
5454
public function files()
5555
{
56-
$files = Collection::make($this->disk->allFiles($this->path));
56+
$files = Collection::make($this->disk->allFiles($this->path))->filter(function ($file) {
57+
return $this->disk->extension($file) == 'php';
58+
});
5759

5860
$filesByFile = $files->groupBy(function ($file) {
5961
$fileName = $file->getBasename('.'.$file->getExtension());
@@ -118,12 +120,12 @@ public function languages()
118120
}, $this->disk->directories($this->path));
119121

120122
$languages = array_filter($languages, function ($directory) {
121-
return $directory != 'vendor';
123+
return $directory != 'vendor' && $directory != 'json';
122124
});
123125

124126
sort($languages);
125127

126-
return Arr::except($languages, ['vendor']);
128+
return Arr::except($languages, ['vendor', 'json']);
127129
}
128130

129131
/**

0 commit comments

Comments
 (0)