diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-05-02 16:55:35 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-05-02 16:55:35 +0200 |
commit | 34141b576e141050f2a898f93cd1e29295985225 (patch) | |
tree | beba0b493531be35a119215b266a5aee7865dc00 /phpBB/phpbb | |
parent | 222604332539a811907bb18ab89833038f7746b6 (diff) | |
download | forums-34141b576e141050f2a898f93cd1e29295985225.tar forums-34141b576e141050f2a898f93cd1e29295985225.tar.gz forums-34141b576e141050f2a898f93cd1e29295985225.tar.bz2 forums-34141b576e141050f2a898f93cd1e29295985225.tar.xz forums-34141b576e141050f2a898f93cd1e29295985225.zip |
[ticket/13807] Fix minor coding flaws
PHPBB3-13807
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/event/php_exporter.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/phpbb/event/php_exporter.php b/phpBB/phpbb/event/php_exporter.php index 1e0bd4ac67..8cffa4620f 100644 --- a/phpBB/phpbb/event/php_exporter.php +++ b/phpBB/phpbb/event/php_exporter.php @@ -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 " |