From ddbd8e7becf35e37ea31be681ab730b40b664454 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 28 Feb 2015 20:32:15 +0000 Subject: [PATCH] Remove check for hasMessage, closes #482 --- app/views/partials/incidents.blade.php | 2 -- src/Models/Incident.php | 10 ---------- 2 files changed, 12 deletions(-) diff --git a/app/views/partials/incidents.blade.php b/app/views/partials/incidents.blade.php index c0d9e55b..7213cb10 100644 --- a/app/views/partials/incidents.blade.php +++ b/app/views/partials/incidents.blade.php @@ -19,11 +19,9 @@ - @if($incident->hasMessage())

{{ $incident->formattedMessage }}

- @endif diff --git a/src/Models/Incident.php b/src/Models/Incident.php index 3fe803aa..081b6c11 100644 --- a/src/Models/Incident.php +++ b/src/Models/Incident.php @@ -93,14 +93,4 @@ class Incident extends Model implements TransformableInterface, PresenterInterfa { return new IncidentTransformer(); } - - /** - * Check if Incident has message. - * - * @return bool - */ - public function hasMessage() - { - return (trim($this->message) !== ''); - } }