Added a ":" after the second quote so that only strings in the form
'Hook': are matched, otherwise the line 1172 of hooks.txt provoques the
the following message:
Documented and not found: value
because the line starts with 'value'.
Change-Id: I1d603e3fa10dcabf25e31f6a71aad233571738b5
private function getHooksFromLocalDoc( $doc ) {
$m = array();
$content = file_get_contents( $doc );
- preg_match_all( "/\n'(.*?)'/", $content, $m );
+ preg_match_all( "/\n'(.*?)':/", $content, $m );
return array_unique( $m[1] );
}