🏡 index : ~doyle/koselig.git

author Jordan Doyle <w4@users.noreply.github.com> 2016-11-27 19:21:33.0 +00:00:00
committer GitHub <noreply@github.com> 2016-11-27 19:21:33.0 +00:00:00
commit
7186deceba3ccc4995284120cff4cb7498c05b96 [patch]
tree
377779b6a8276f5a49ca6fc417ed612cca9a74bb
parent
be112582d242da817d57b236c2ae58daff7c828b
download
7186deceba3ccc4995284120cff4cb7498c05b96.tar.gz

Apply fixes from StyleCI (#17)

[ci skip] [skip ci]

Diff

 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)