diff --git a/app/Models/Album.php b/app/Models/Album.php index 4de96ebfda..8796049472 100644 --- a/app/Models/Album.php +++ b/app/Models/Album.php @@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; -use PhpParser\Builder; /** * @property string $cover The album cover's file name @@ -20,6 +19,7 @@ * @property int $artist_id * @property Collection $songs * @property bool $is_unknown + * * @method static self firstOrCreate(array $params) */ class Album extends Model diff --git a/app/Models/Artist.php b/app/Models/Artist.php index 3e9d27fb7c..fff37dbcd9 100644 --- a/app/Models/Artist.php +++ b/app/Models/Artist.php @@ -17,6 +17,7 @@ * @property bool $is_various * @property Collection $songs * @property bool $has_image + * * @method static self find(int $id) * @method static self firstOrCreate(array $where, array $params) */ diff --git a/app/Models/Setting.php b/app/Models/Setting.php index f4e104f041..4e45662f4a 100644 --- a/app/Models/Setting.php +++ b/app/Models/Setting.php @@ -7,6 +7,7 @@ /** * @property string $key * @property mixed $value + * * @method static self find(string $key) * @method static self updateOrCreate(array $where, array $params) */ diff --git a/app/Models/Song.php b/app/Models/Song.php index a5109b190a..9c285dd620 100644 --- a/app/Models/Song.php +++ b/app/Models/Song.php @@ -25,6 +25,7 @@ * @property string $id * @property int $artist_id * @property int $mtime + * * @method static self updateOrCreate(array $where, array $params) * @method static Builder select(string $string) * @method static Builder inDirectory(string $path) diff --git a/app/Models/User.php b/app/Models/User.php index 5a38162af6..6279168ef3 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -11,6 +11,7 @@ * @property int $id * @property bool $is_admin * @property string $lastfm_session_key + * * @method static self create(array $params) * @method static int count() */ diff --git a/app/Traits/SupportsDeleteWhereIDsNotIn.php b/app/Traits/SupportsDeleteWhereIDsNotIn.php index 1236cf9761..44e5f11dc5 100644 --- a/app/Traits/SupportsDeleteWhereIDsNotIn.php +++ b/app/Traits/SupportsDeleteWhereIDsNotIn.php @@ -15,7 +15,6 @@ * @method static Builder whereNotIn($keys, array $values) * @method static Builder select(string $string) */ - trait SupportsDeleteWhereIDsNotIn { /** diff --git a/tests/Unit/Http/Middleware/ForceHttpsTest.php b/tests/Unit/Http/Middleware/ForceHttpsTest.php index 1987b6d788..a4bc171335 100644 --- a/tests/Unit/Http/Middleware/ForceHttpsTest.php +++ b/tests/Unit/Http/Middleware/ForceHttpsTest.php @@ -3,7 +3,6 @@ namespace Tests\Unit\Http\Middleware; use App\Http\Middleware\ForceHttps; -use Closure; use Illuminate\Http\Request; use Illuminate\Routing\UrlGenerator; use Mockery;