Completed
Pull Request — master (#63)
by Phecho
04:21
created
app/Models/Moment.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
27 27
 
28 28
 namespace Gitamin\Models;
29 29
 
30
-use Gitamin\Presenters\IssuePresenter;
31 30
 use Gitamin\Presenters\MomentPresenter;
32 31
 use Illuminate\Database\Eloquent\Builder;
33 32
 use Illuminate\Database\Eloquent\Model;
Please login to merge, or discard this patch.
app/Presenters/MomentPresenter.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
     public function formattedTarget()
38 38
     {
39
-        if($this->wrappedObject->target instanceof Comment) {
39
+        if ($this->wrappedObject->target instanceof Comment) {
40 40
             return Markdown::convertToHtml($this->wrappedObject->target->message);
41 41
         } elseif ($this->wrappedObject->target instanceof Issue) {
42 42
             return Markdown::convertToHtml($this->wrappedObject->target->description);
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function icon()
66 66
     {
67
-        if($this->wrappedObject->target instanceof Comment) {
67
+        if ($this->wrappedObject->target instanceof Comment) {
68 68
             return 'fa fa-comments-o';
69 69
         } elseif ($this->wrappedObject->target instanceof Issue) {
70 70
             return 'fa fa-exclamation-circle';
Please login to merge, or discard this patch.