From 44f1445bbe0f5636f5d33b6180cf6a0b6c0cef61 Mon Sep 17 00:00:00 2001 From: Stephen Ball Date: Tue, 23 Dec 2014 15:30:09 +0000 Subject: [PATCH] Fixing issue with status overwriting message --- PHPCI/Plugin/SlackNotify.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PHPCI/Plugin/SlackNotify.php b/PHPCI/Plugin/SlackNotify.php index cff30e5a..229715ea 100644 --- a/PHPCI/Plugin/SlackNotify.php +++ b/PHPCI/Plugin/SlackNotify.php @@ -81,10 +81,10 @@ class SlackNotify implements \PHPCI\Plugin $successfulBuild = $this->build->isSuccessful(); if ($successfulBuild) { - $message = 'Success'; + $status = 'Success'; $color = 'good'; } else { - $message = 'Failed'; + $status = 'Failed'; $color = 'danger'; } @@ -96,7 +96,7 @@ class SlackNotify implements \PHPCI\Plugin 'fields' => array( new \Maknz\Slack\AttachmentField(array( 'title' => 'Status', - 'value' => $message, + 'value' => $status, 'short' => false )) )