@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
| 27 | - app()->singleton('Lastfm', function () { |
|
| 27 | + app()->singleton('Lastfm', function() { |
|
| 28 | 28 | return new Lastfm(); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
| 27 | - app()->singleton('iTunes', function () { |
|
| 27 | + app()->singleton('iTunes', function() { |
|
| 28 | 28 | return new iTunes(); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | Schema::defaultStringLength(191); |
| 20 | 20 | |
| 21 | 21 | // Add some custom validation rules |
| 22 | - Validator::extend('path.valid', function ($attribute, $value, $parameters, $validator) { |
|
| 22 | + Validator::extend('path.valid', function($attribute, $value, $parameters, $validator) { |
|
| 23 | 23 | return is_dir($value) && is_readable($value); |
| 24 | 24 | }); |
| 25 | 25 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
| 27 | - app()->singleton('MediaCache', function () { |
|
| 27 | + app()->singleton('MediaCache', function() { |
|
| 28 | 28 | return new MediaCache(); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
| 27 | - app()->singleton('Util', function () { |
|
| 27 | + app()->singleton('Util', function() { |
|
| 28 | 28 | return new Util(); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
| 27 | - app()->singleton('YouTube', function () { |
|
| 27 | + app()->singleton('YouTube', function() { |
|
| 28 | 28 | return new YouTube(); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
| 27 | - app()->singleton('Download', function () { |
|
| 27 | + app()->singleton('Download', function() { |
|
| 28 | 28 | return new Download(); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
| 27 | - app()->singleton('Media', function () { |
|
| 27 | + app()->singleton('Media', function() { |
|
| 28 | 28 | return new Media(); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -37,12 +37,12 @@ |
||
| 37 | 37 | parent::boot(); |
| 38 | 38 | |
| 39 | 39 | // Generate a unique hash for a song from its path to be the ID |
| 40 | - Song::creating(function ($song) { |
|
| 40 | + Song::creating(function($song) { |
|
| 41 | 41 | $song->id = File::getHash($song->path); |
| 42 | 42 | }); |
| 43 | 43 | |
| 44 | 44 | // Remove the cover file if the album is deleted |
| 45 | - Album::deleted(function ($album) { |
|
| 45 | + Album::deleted(function($album) { |
|
| 46 | 46 | if ($album->hasCover) { |
| 47 | 47 | @unlink(app()->publicPath().'/public/img/covers/'.$album->cover); |
| 48 | 48 | } |