mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12273] Do not use Inline control structures
PHPBB3-12273
This commit is contained in:
parent
be48d12583
commit
1a913d6e0f
1 changed files with 9 additions and 3 deletions
|
@ -59,7 +59,10 @@ class md_exporter
|
||||||
foreach ($events as $event)
|
foreach ($events as $event)
|
||||||
{
|
{
|
||||||
// Last row of the file
|
// 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);
|
list($event_name, $details) = explode("\n===\n", $event, 2);
|
||||||
$this->validate_event_name($event_name);
|
$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');
|
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 == 'adm' && strpos($this->current_event, 'acp_') !== 0)
|
||||||
if ($this->filter == 'styles' && strpos($this->current_event, 'acp_') === 0) continue;
|
|| ($this->filter == 'styles' && strpos($this->current_event, 'acp_') === 0))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
list($file_details, $details) = explode("\n* Since: ", $details, 2);
|
list($file_details, $details) = explode("\n* Since: ", $details, 2);
|
||||||
list($since, $description) = explode("\n* Purpose: ", $details, 2);
|
list($since, $description) = explode("\n* Purpose: ", $details, 2);
|
||||||
|
|
Loading…
Add table
Reference in a new issue