Completed
Branch master (865dd4)
by Phan
09:51
created
app/Http/Controllers/API/ProfileController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Controllers/API/SongController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @param null|int  $bitRate   The target bit rate to transcode, defaults to OUTPUT_BIT_RATE.
26 26
      *                             Only taken into account if $transcode is truthy.
27 27
      *
28
-     * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
28
+     * @return \Illuminate\Http\RedirectResponse|null
29 29
      */
30 30
     public function play(Request $request, Song $song, $transcode = null, $bitRate = null)
31 31
     {
Please login to merge, or discard this patch.
app/Models/File.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@
 block discarded – undo
343 343
      *
344 344
      * @throws \InvalidArgumentException
345 345
      *
346
-     * @return string|false The cover file's full path, or false if none found
346
+     * @return string The cover file's full path, or false if none found
347 347
      */
348 348
     private function getCoverFileUnderSameDirectory()
349 349
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Models/Setting.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
     /**
32 32
      * Set a setting (no pun) value.
33 33
      *
34
-     * @param string|array $key   The key of the setting, or an associative array of settings,
34
+     * @param string $key   The key of the setting, or an associative array of settings,
35 35
      *                            in which case $value will be discarded.
36
-     * @param mixed        $value
36
+     * @param string        $value
37 37
      */
38 38
     public static function set($key, $value = null)
39 39
     {
Please login to merge, or discard this patch.
app/Services/Lastfm.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@
 block discarded – undo
250 250
      * @param string    $artist   Name of the artist
251 251
      * @param string    $track    Name of the track
252 252
      * @param string    $album    Name of the album
253
-     * @param int|float $duration Duration of the track, in seconds
253
+     * @param double $duration Duration of the track, in seconds
254 254
      * @param string    $sk       The session key
255 255
      *
256 256
      * @return bool
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
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'],
Please login to merge, or discard this patch.
app/Services/RESTfulService.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@
 block discarded – undo
57 57
      */
58 58
     protected $secret;
59 59
 
60
+    /**
61
+     * @param string $endpoint
62
+     */
60 63
     public function __construct($key, $secret, $endpoint, Client $client)
61 64
     {
62 65
         $this->setKey($key);
Please login to merge, or discard this patch.
app/Providers/LastfmServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Providers/iTunesServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,8 +48,8 @@
 block discarded – undo
48 48
     protected function mapWebRoutes()
49 49
     {
50 50
         Route::middleware('web')
51
-             ->namespace($this->namespace)
52
-             ->group(base_path('routes/web.php'));
51
+                ->namespace($this->namespace)
52
+                ->group(base_path('routes/web.php'));
53 53
     }
54 54
 
55 55
     /**
Please login to merge, or discard this patch.