X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/ffc1aa873ed8912c1400d83191d2b1485e59fca3..refs/pull/3598/head:/app/Actions/Comment.php diff --git a/app/Actions/Comment.php b/app/Actions/Comment.php index f138ee4a1..885ba6ed1 100644 --- a/app/Actions/Comment.php +++ b/app/Actions/Comment.php @@ -1,32 +1,46 @@ -morphTo('entity'); } /** * Check if a comment has been updated since creation. - * @return bool */ - public function isUpdated() + public function isUpdated(): bool { return $this->updated_at->timestamp > $this->created_at->timestamp; } /** * Get created date as a relative diff. + * * @return mixed */ public function getCreatedAttribute() @@ -36,6 +50,7 @@ class Comment extends Ownable /** * Get updated date as a relative diff. + * * @return mixed */ public function getUpdatedAttribute()