1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13429] Replace @changed with @change in event docblocks

PHPBB3-13429
This commit is contained in:
Jakub Senko
2016-11-20 17:58:59 +01:00
parent dbd9c1f242
commit c2836725f9
12 changed files with 36 additions and 36 deletions

View File

@@ -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}'");
}