From 1a913d6e0f9f1e0f5df2acbfdc5a5f43a0c83be0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 18 Apr 2014 14:05:38 +0200 Subject: [PATCH] [ticket/12273] Do not use Inline control structures PHPBB3-12273 --- phpBB/phpbb/event/md_exporter.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/phpBB/phpbb/event/md_exporter.php b/phpBB/phpbb/event/md_exporter.php index 6a8a9b1adb..44b990c5ed 100644 --- a/phpBB/phpbb/event/md_exporter.php +++ b/phpBB/phpbb/event/md_exporter.php @@ -59,7 +59,10 @@ class md_exporter foreach ($events as $event) { // Last row of the file - if (strpos($event, "\n===\n") === false) continue; + if (strpos($event, "\n===\n") === false) + { + continue; + } list($event_name, $details) = explode("\n===\n", $event, 2); $this->validate_event_name($event_name); @@ -70,8 +73,11 @@ class md_exporter throw new \LogicException('The event "' . $this->current_event . '" is defined multiple times'); } - if ($this->filter == 'adm' && strpos($this->current_event, 'acp_') !== 0) continue; - if ($this->filter == 'styles' && strpos($this->current_event, 'acp_') === 0) continue; + if (($this->filter == 'adm' && strpos($this->current_event, 'acp_') !== 0) + || ($this->filter == 'styles' && strpos($this->current_event, 'acp_') === 0)) + { + continue; + } list($file_details, $details) = explode("\n* Since: ", $details, 2); list($since, $description) = explode("\n* Purpose: ", $details, 2);