Skip to content

Commit

Permalink
spport for 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Jan 30, 2017
1 parent 37771c0 commit 15ac1b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public function __construct(Filesystem $disk, $path, array $syncPaths)
*/
public function files()
{
$files = Collection::make($this->disk->allFiles($this->path));
$files = Collection::make($this->disk->allFiles($this->path))->filter(function ($file) {
return $this->disk->extension($file) == 'php';
});

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

$languages = array_filter($languages, function ($directory) {
return $directory != 'vendor';
return $directory != 'vendor' && $directory != 'json';
});

sort($languages);

return Arr::except($languages, ['vendor']);
return Arr::except($languages, ['vendor', 'json']);
}

/**
Expand Down

0 comments on commit 15ac1b0

Please sign in to comment.