mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13807] Fix minor coding flaws
PHPBB3-13807
This commit is contained in:
parent
2226043325
commit
34141b576e
1 changed files with 3 additions and 2 deletions
|
@ -242,7 +242,8 @@ class php_exporter
|
|||
$changed_versions = array();
|
||||
if (!empty($changed_line_nums))
|
||||
{
|
||||
foreach ($changed_line_nums as $changed_line_num) {
|
||||
foreach ($changed_line_nums as $changed_line_num)
|
||||
{
|
||||
$changed_versions[] = $this->validate_changed($this->file_lines[$changed_line_num]);
|
||||
}
|
||||
}
|
||||
|
@ -656,7 +657,7 @@ class php_exporter
|
|||
{
|
||||
$match = array();
|
||||
$line = str_replace("\t", ' ', ltrim($line, "\t "));
|
||||
preg_match('#^\* @change(d)? (\d+\.\d+\.\d+(?:-(?:a|b|RC|pl)\d+)?)( (?:.*))?$#', ltrim($line, "\t "), $match);
|
||||
preg_match('#^\* @change(d)? (\d+\.\d+\.\d+(?:-(?:a|b|RC|pl)\d+)?)( (?:.*))?$#', $line, $match);
|
||||
if (!isset($match[2]))
|
||||
{
|
||||
throw new \LogicException("Invalid '@changed' information for event "
|
||||
|
|
Loading…
Add table
Reference in a new issue