diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-07-05 13:14:00 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-07-05 13:14:00 -0400 |
commit | afab68b130ccdd97a7575a682683d6df71006748 (patch) | |
tree | d1c00cc280afbf257f1caafa42cb5e39110a2900 /app/Integration/SlackWebhook.php | |
parent | aa2ca3342dc6783c7a0a679c11ac94213a7226bb (diff) |
Add schema migration for Slack channel
Diffstat (limited to 'app/Integration/SlackWebhook.php')
-rw-r--r-- | app/Integration/SlackWebhook.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Integration/SlackWebhook.php b/app/Integration/SlackWebhook.php index a584c132..4f42dca3 100644 --- a/app/Integration/SlackWebhook.php +++ b/app/Integration/SlackWebhook.php @@ -38,7 +38,7 @@ class SlackWebhook extends \Core\Base $options = $this->projectIntegration->getParameters($project_id); return $options['slack_webhook_url']; } - + /** * Get optional Slack channel * @@ -48,10 +48,10 @@ class SlackWebhook extends \Core\Base */ public function getChannel($project_id) { - if (!empty($this->config->get('integration_slack_webhook_channel'))) { + if (! empty($this->config->get('integration_slack_webhook_channel'))) { return $this->config->get('integration_slack_webhook_channel'); } - + $options = $this->projectIntegration->getParameters($project_id); return $options['slack_webhook_channel']; } @@ -85,9 +85,9 @@ class SlackWebhook extends \Core\Base $payload['text'] .= $this->helper->url->href('task', 'show', array('task_id' => $task_id, 'project_id' => $project_id)); $payload['text'] .= '|'.t('view the task on Kanboard').'>'; } - + $channel = $this->getChannel($project_id); - if (!empty($channel)) { + if (! empty($channel)) { $payload['channel'] = $channel; } |