Code cleanup

This commit is contained in:
James Cole
2018-04-28 06:23:13 +02:00
parent 6f0e1c79ac
commit 13b78bdc20
218 changed files with 621 additions and 681 deletions

View File

@@ -29,6 +29,7 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use FireflyIII\Models\Attachment;
/**
* Class Bill.
@@ -88,7 +89,7 @@ class Bill extends Model
*/
public function attachments()
{
return $this->morphMany('FireflyIII\Models\Attachment', 'attachable');
return $this->morphMany(Attachment::class, 'attachable');
}
/**