Fix spelling (#454)

This commit is contained in:
bdgold 2016-09-18 22:08:50 -04:00 committed by Phan An
parent 8fb5031dc3
commit 1d7a7602c9
3 changed files with 4 additions and 4 deletions

View file

@ -119,7 +119,7 @@ class Media
{
return Finder::create()
->ignoreUnreadableDirs()
->ignoreDotFiles((bool) config('koel.ingore_dot_files')) // https://github.com/phanan/koel/issues/450
->ignoreDotFiles((bool) config('koel.ignore_dot_files')) // https://github.com/phanan/koel/issues/450
->files()
->followLinks()
->name('/\.(mp3|ogg|m4a|flac)$/i')

View file

@ -108,6 +108,6 @@ return [
| Ignore dot files and folders when scanning for media files.
|
*/
'ingore_dot_files' => env('IGNORE_DOT_FILES', true),
'ignore_dot_files' => env('IGNORE_DOT_FILES', true),
];

View file

@ -216,12 +216,12 @@ class MediaTest extends TestCase
public function testDotDirectories()
{
config(['koel.ingore_dot_files' => false]);
config(['koel.ignore_dot_files' => false]);
$media = new Media();
$media->sync($this->mediaPath);
$this->seeInDatabase('albums', ['name' => 'Hidden Album']);
config(['koel.ingore_dot_files' => true]);
config(['koel.ignore_dot_files' => true]);
$media->sync($this->mediaPath);
$this->notSeeInDatabase('albums', ['name' => 'Hidden Album']);
}