From 8de0cb1932d09343ce02a2d52b1962f27d20765e Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Thu, 10 Sep 2015 11:23:12 +0100 Subject: [PATCH] Merge rPFd86028310e5c: Added a Laravel IDE helper and type-hinted the cover art upload method. --- app/Image.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Image.php b/app/Image.php index bd424cfe..65aefc95 100644 --- a/app/Image.php +++ b/app/Image.php @@ -6,6 +6,7 @@ use External; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\URL; +use Symfony\Component\HttpFoundation\File\UploadedFile; class Image extends Model { @@ -34,7 +35,7 @@ class Image extends Model return null; } - public static function upload($file, $user) + public static function upload(UploadedFile $file, $user) { $userId = $user; if ($user instanceof User) {