From c976c0ec3ea6973f5e156672608d1675e144cbc1 Mon Sep 17 00:00:00 2001 From: Darin Wilton Date: Sun, 5 Jun 2016 18:30:47 -0400 Subject: [PATCH] fixed white space --- acp/ajaxchat_module.php | 12 ++++++------ controller/chat.php | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/acp/ajaxchat_module.php b/acp/ajaxchat_module.php index 6a8e126..7ad36a4 100644 --- a/acp/ajaxchat_module.php +++ b/acp/ajaxchat_module.php @@ -61,7 +61,7 @@ public function main($id, $mode) $this->php_ext = $phpEx; $this->phpbb_log = $phpbb_log; $this->root_path = $root_path; - + if (!defined('CHAT_TABLE')) { $chat_table = $table_prefix . 'ajax_chat'; @@ -74,14 +74,14 @@ public function main($id, $mode) } $this->id = $id; $this->mode = $mode; - if($this->request->variable('action', '')) + if ($this->request->variable('action', '')) { $this->action = $this->request->variable('action', '', true); } - + // Add the posting lang file needed by BBCodes $this->user->add_lang(array('posting')); - + $submit = ($this->request->is_set_post('submit')) ? true : false; $this->form_key = 'acp_ajax_chat'; add_form_key($this->form_key); @@ -211,7 +211,7 @@ public function prune_chat($value, $key) } } $this->id = str_replace("\\", "-", $this->id); - + return ''; } @@ -255,7 +255,7 @@ public function truncate_chat($value, $key) } } $this->id = str_replace("\\", "-", $this->id); - + return ''; } diff --git a/controller/chat.php b/controller/chat.php index 8c3a350..a3b9752 100644 --- a/controller/chat.php +++ b/controller/chat.php @@ -11,7 +11,6 @@ namespace spaceace\ajaxchat\controller; -use phpbb\exception\http_exception; use phpbb\user; use phpbb\template\template; use phpbb\db\driver\driver_interface as db_driver;