@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace App\Http\Controllers\API; |
| 4 | 4 | |
| 5 | 5 | use App\Http\Requests\API\ProfileUpdateRequest; |
| 6 | -use App\Models\User; |
|
| 7 | 6 | use Hash; |
| 8 | 7 | |
| 9 | 8 | class ProfileController extends Controller |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use getID3; |
| 7 | 7 | use getid3_lib; |
| 8 | 8 | use Illuminate\Support\Facades\Log; |
| 9 | -use Media; |
|
| 10 | 9 | use SplFileInfo; |
| 11 | 10 | use Symfony\Component\Finder\Finder; |
| 12 | 11 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Exception; |
| 6 | 6 | use GuzzleHttp\Client; |
| 7 | -use Illuminate\Support\Facades\Cache; |
|
| 8 | 7 | use Log; |
| 9 | 8 | |
| 10 | 9 | class Lastfm extends RESTfulService |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | 'summary' => $this->formatText(array_get($album, 'wiki.summary')), |
| 149 | 149 | 'full' => $this->formatText(array_get($album, 'wiki.content')), |
| 150 | 150 | ], |
| 151 | - 'tracks' => array_map(function ($track) { |
|
| 151 | + 'tracks' => array_map(function($track) { |
|
| 152 | 152 | return [ |
| 153 | 153 | 'title' => $track['name'], |
| 154 | 154 | 'length' => (int) $track['duration'], |
@@ -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 | } |