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
@@ -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]),
@@ -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]),
+2 -2
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());
}
/**
+2 -2
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());
}
/**
+1 -1
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);
}