From 7186deceba3ccc4995284120cff4cb7498c05b96 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sun, 27 Nov 2016 19:21:33 +0000 Subject: [PATCH] Apply fixes from StyleCI (#17) [ci skip] [skip ci] --- src/Models/Comment.php | 2 +- src/Models/Post.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Models/Comment.php b/src/Models/Comment.php index 42606d1..3fd5210 100644 --- a/src/Models/Comment.php +++ b/src/Models/Comment.php @@ -81,7 +81,7 @@ class Comment extends Model */ public function children() { - return $this->hasMany(Comment::class, 'comment_parent'); + return $this->hasMany(self::class, 'comment_parent'); } /** diff --git a/src/Models/Post.php b/src/Models/Post.php index 230fb30..9fa880f 100644 --- a/src/Models/Post.php +++ b/src/Models/Post.php @@ -86,6 +86,7 @@ class Post extends Model * Get all the comments that belong to this post. * * @param bool $topLevel only get the top level comments for this post + * * @return HasMany */ public function comments(bool $topLevel = true) -- libgit2 1.7.2