@@ -27,7 +27,6 @@ |
||
| 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; |
@@ -11,13 +11,11 @@ |
||
| 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 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 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 |
||
| 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'; |