From ccb1db7cdf7f6f528836cf23ff293b794a8a48bd Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Sat, 25 Feb 2017 15:09:08 +0300 Subject: [PATCH] Beautify code --- Plugin.php | 28 ++++++++++++++-------------- README.md | 6 +++--- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Plugin.php b/Plugin.php index 1539588..8771b84 100644 --- a/Plugin.php +++ b/Plugin.php @@ -22,28 +22,28 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi // Use autoloader for Composer's packages that shipped with the plugin require(__DIR__ . '/vendor/autoload.php'); } - /** - * Initializer - * @return boolean - */ + /** + * Initializer + * @return boolean + */ public function initialized() { return true; } - /** - * This creates the listener that listens for new - * threads to send out slack notifications - */ + /** + * This creates the listener that listens for new + * threads to send out slack notifications + */ public function run() { $dispatcher = EventDispatcher::getInstance(); $dispatcher->attachListener(Events::THREAD_CREATE, $this, 'sendSlackNotification'); } - /** - * Sends notification to slack. - * Sends the date with the username as well - * @return boolean - */ + /** + * Sends notification to slack. + * Sends the date with the username as well + * @return boolean + */ public function sendSlackNotification(&$args) { $settings = [ @@ -57,7 +57,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi $client->send(getlocal('You have a new user waiting for a response. Username: {0}', array($args['thread']->userName))); - return true; + return true; } /** diff --git a/README.md b/README.md index 4f8cd14..7a83f3e 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ Provides Slack notifications when initiate a chat ```yaml plugins: "Mibew:Slack": # Plugin's configurations are described below - username: "Username you will post as" - channel: "Channel to post in" - slack_url: "Webhook URL from Setup Instructions in Slack" + username: "Username you will post as" + channel: "Channel to post in" + slack_url: "Webhook URL from Setup Instructions in Slack" ```