diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2016-11-20 17:58:59 +0100 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2016-11-20 17:58:59 +0100 |
commit | c2836725f9692e907d77edce7c609142661af6c1 (patch) | |
tree | 1a1c9d9c41b2771b61a6df9d8c381e1648aca1ec /phpBB/phpbb/event | |
parent | dbd9c1f242ae7c7660feddf2677d41aa82bd21b4 (diff) | |
download | forums-c2836725f9692e907d77edce7c609142661af6c1.tar forums-c2836725f9692e907d77edce7c609142661af6c1.tar.gz forums-c2836725f9692e907d77edce7c609142661af6c1.tar.bz2 forums-c2836725f9692e907d77edce7c609142661af6c1.tar.xz forums-c2836725f9692e907d77edce7c609142661af6c1.zip |
[ticket/13429] Replace @changed with @change in event docblocks
PHPBB3-13429
Diffstat (limited to 'phpBB/phpbb/event')
-rw-r--r-- | phpBB/phpbb/event/php_exporter.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/phpbb/event/php_exporter.php b/phpBB/phpbb/event/php_exporter.php index d2ab0595c0..8923d35f6d 100644 --- a/phpBB/phpbb/event/php_exporter.php +++ b/phpBB/phpbb/event/php_exporter.php @@ -508,9 +508,9 @@ class php_exporter } /** - * Find the "@changed" Information lines + * Find the "@change" Information lines * - * @param string $tag_name Should be 'changed' or 'change' + * @param string $tag_name Should be 'change', not 'changed' * @return array Absolute line numbers * @throws \LogicException */ @@ -648,7 +648,7 @@ class php_exporter } /** - * Validate "@changed" Information + * Validate "@change" Information * * @param string $line * @return string @@ -658,10 +658,10 @@ class php_exporter { $match = array(); $line = str_replace("\t", ' ', ltrim($line, "\t ")); - preg_match('#^\* @change(d)? (\d+\.\d+\.\d+(?:-(?:a|b|RC|pl)\d+)?)( (?:.*))?$#', $line, $match); + preg_match('#^\* @change (\d+\.\d+\.\d+(?:-(?:a|b|RC|pl)\d+)?)( (?:.*))?$#', $line, $match); if (!isset($match[2])) { - throw new \LogicException("Invalid '@changed' information for event " + throw new \LogicException("Invalid '@change' information for event " . "'{$this->current_event}' in file '{$this->current_file}:{$this->current_event_line}'"); } |