Passed
Pull Request — master (#38)
by
unknown
12:23
created
src/CommentsServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             ], 'config');
18 18
 
19 19
 
20
-            if (! class_exists('CreateCommentsTable')) {
20
+            if (!class_exists('CreateCommentsTable')) {
21 21
                 $this->publishes([
22 22
                     __DIR__.'/../database/migrations/create_comments_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_comments_table.php'),
23 23
                 ], 'migrations');
Please login to merge, or discard this patch.
src/Traits/HasComments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
         $comment = new $commentClass([
45 45
             'comment' => $comment,
46
-            'is_approved' => ($user instanceof Commentator) ? ! $user->needsCommentApproval($this) : false,
46
+            'is_approved' => ($user instanceof Commentator) ? !$user->needsCommentApproval($this) : false,
47 47
             'user_id' => is_null($user) ? null : $user->getKey(),
48 48
             'commentable_id' => $this->getKey(),
49 49
             'commentable_type' => get_class(),
Please login to merge, or discard this patch.