Rename formattedMessage into snake_case for consistency

This commit is contained in:
James Brooks 2016-11-25 20:34:58 +00:00
parent 0af195af86
commit 72056e2ac5
9 changed files with 12 additions and 12 deletions

View File

@ -116,7 +116,7 @@ class SendIncidentEmailNotificationHandler
'name' => $incident->name,
'timestamp' => $incident->occurred_at_formatted,
'status' => $incident->human_status,
'html_content' => $incident->formattedMessage,
'html_content' => $incident->formatted_message,
'text_content' => $incident->message,
'token' => $subscriber->token,
'manage_link' => cachet_route('subscribe.manage', [$subscriber->verify_code]),

View File

@ -105,7 +105,7 @@ class SendScheduleEmailNotificationHandler
'name' => $incident->name,
'timestamp' => $incident->scheduled_at_formatted,
'status' => $incident->human_status,
'html_content' => $incident->formattedMessage,
'html_content' => $incident->formatted_message,
'text_content' => $incident->message,
'token' => $subscriber->token,
'manage_link' => cachet_route('subscribe.manage', [$subscriber->verify_code]),

View File

@ -62,7 +62,7 @@ class IncidentPresenter extends BasePresenter implements Arrayable
*
* @return string
*/
public function formattedMessage()
public function formatted_message()
{
return Markdown::convertToHtml($this->wrappedObject->message);
}
@ -74,7 +74,7 @@ class IncidentPresenter extends BasePresenter implements Arrayable
*/
public function raw_message()
{
return strip_tags($this->formattedMessage());
return strip_tags($this->formatted_message());
}
/**

View File

@ -32,7 +32,7 @@ class IncidentUpdatePresenter extends BasePresenter implements Arrayable
*
* @return string
*/
public function formattedMessage()
public function formatted_message()
{
return Markdown::convertToHtml($this->wrappedObject->message);
}
@ -44,7 +44,7 @@ class IncidentUpdatePresenter extends BasePresenter implements Arrayable
*/
public function raw_message()
{
return strip_tags($this->formattedMessage());
return strip_tags($this->formatted_message());
}
/**

View File

@ -54,7 +54,7 @@ class SchedulePresenter extends BasePresenter implements Arrayable
*
* @return string
*/
public function formattedMessage()
public function formatted_message()
{
return Markdown::convertToHtml($this->wrappedObject->message);
}

View File

@ -20,7 +20,7 @@
</small>
</div>
<div class="panel-body markdown-body">
{!! $incident->formattedMessage !!}
{!! $incident->formatted_message !!}
</div>
@if($incident->updates->count())
<div class="list-group">

View File

@ -7,7 +7,7 @@
@foreach($scheduled_maintenance as $schedule)
<a href="{{ cachet_route('schedule', $schedule) }}" class="list-group-item">
<strong>{{ $schedule->name }}</strong> <small class="date"><abbr class="timeago" data-toggle="tooltip" data-placement="right" title="{{ $schedule->scheduled_at_formatted }}" data-timeago="{{ $schedule->scheduled_at_iso }}"></abbr></small>
{!! $schedule->formattedMessage !!}
{!! $schedule->formatted_message !!}
@if($schedule->components->count() > 0)
<hr>
@foreach($schedule->components as $affected_component)

View File

@ -12,7 +12,7 @@
<hr>
<div class="markdown-body">
{!! $incident->formattedMessage !!}
{!! $incident->formatted_message !!}
</div>
@if($incident->updates)
@ -30,7 +30,7 @@
<div class="panel panel-message incident">
<div class="panel-body">
<div class="markdown-body">
{!! $update->formattedMessage !!}
{!! $update->formatted_message !!}
</div>
</div>
<div class="panel-footer"><small>{{ trans('cachet.incidents.posted', ['timestamp' => $update->created_at_diff]) }}</small></div>

View File

@ -24,7 +24,7 @@
<strong>{{ $schedule->name }}</strong>{{ trans("cachet.incidents.scheduled_at", ["timestamp" => $schedule->scheduled_at_diff]) }}
</div>
<div class="panel-body">
{!! $schedule->formattedMessage !!}
{!! $schedule->formatted_message !!}
</div>
</div>
</div>