Completed
Pull Request — master (#65)
by Phecho
04:59
created
app/Presenters/CommentPresenter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Gitamin\Presenters;
13 13
 
14
-use Gitamin\Facades\Setting;
15 14
 use Gitamin\Presenters\Traits\TimestampsTrait;
16 15
 use GrahamCampbell\Markdown\Facades\Markdown;
17 16
 use Jenssegers\Date\Date;
Please login to merge, or discard this patch.
app/Http/Controllers/Api/CommentController.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @param \Symfony\Component\HttpFoundation\Request $request
33 33
      * @param \Illuminate\Contracts\Auth\Guard          $auth
34 34
      *
35
-     * @return \Illuminate\Http\JsonResponse
35
+     * @return \Illuminate\Http\Response
36 36
      */
37 37
     public function getComments(Request $request, Guard $auth)
38 38
     {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @param \Gitamin\Models\Comment $comment
48 48
      *
49
-     * @return \Illuminate\Http\JsonResponse
49
+     * @return \Illuminate\Http\Response
50 50
      */
51 51
     public function getComment(Comment $comment)
52 52
     {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @param \Illuminate\Contracts\Auth\Guard $auth
60 60
      *
61
-     * @return \Illuminate\Http\JsonResponse
61
+     * @return \Illuminate\Http\Response
62 62
      */
63 63
     public function postComments(Guard $auth)
64 64
     {
@@ -80,9 +80,9 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * Update an existing comment.
82 82
      *
83
-     * @param \Gitamin\Models\Inicdent $comment
83
+     * @param Comment $comment
84 84
      *
85
-     * @return \Illuminate\Http\JsonResponse
85
+     * @return \Illuminate\Http\Response
86 86
      */
87 87
     public function putComment(Comment $comment)
88 88
     {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      *
104 104
      * @param \Gitamin\Models\Comment $comment
105 105
      *
106
-     * @return \Illuminate\Http\JsonResponse
106
+     * @return \Illuminate\Http\Response
107 107
      */
108 108
     public function deleteComment(Comment $comment)
109 109
     {
Please login to merge, or discard this patch.
app/Handlers/Commands/Comment/UpdateCommentCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             'team_id'     => $command->team_id,
55 55
         ];
56 56
 
57
-        return array_filter($params, function ($val) {
57
+        return array_filter($params, function($val) {
58 58
             return $val !== null;
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
app/Handlers/Events/Project/SendProjectMomentHandler.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
      * @param \Gitamin\Models\Project $project
44 44
      * @param int                     $action
45 45
      */
46
-    protected function trigger(Project &$project, $action)
46
+    protected function trigger(Project & $project, $action)
47 47
     {
48 48
         $data = [
49 49
             'target_type' => 'Project',
Please login to merge, or discard this patch.
app/Presenters/MomentPresenter.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,13 +11,11 @@
 block discarded – undo
11 11
 
12 12
 namespace Gitamin\Presenters;
13 13
 
14
-use Gitamin\Facades\Setting;
15 14
 use Gitamin\Models\Moment;
16 15
 use Gitamin\Models\Comment;
17 16
 use Gitamin\Models\Issue;
18 17
 use Gitamin\Presenters\Traits\TimestampsTrait;
19 18
 use GrahamCampbell\Markdown\Facades\Markdown;
20
-use Jenssegers\Date\Date;
21 19
 
22 20
 class MomentPresenter extends AbstractPresenter
23 21
 {
Please login to merge, or discard this patch.