X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/4b36df08a80f467c037de3bbdf85e13cd4cef9bc..refs/pull/3598/head:/app/Actions/Comment.php diff --git a/app/Actions/Comment.php b/app/Actions/Comment.php index 655d45221..885ba6ed1 100644 --- a/app/Actions/Comment.php +++ b/app/Actions/Comment.php @@ -1,38 +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() @@ -42,6 +50,7 @@ class Comment extends Ownable /** * Get updated date as a relative diff. + * * @return mixed */ public function getUpdatedAttribute()