Use __CLASS__ instead of repeating the class name

Change-Id: I97e9d973accd1d3467ed1f04af37e021e55783b3
This commit is contained in:
Thiemo Kreuz 2019-11-11 17:38:03 +01:00 committed by Thiemo Kreuz (WMDE)
parent 7ce10d7539
commit c9310ff7b4

View file

@ -8,8 +8,8 @@ class CiteParserTagHooks {
* @param Parser $parser
*/
public static function initialize( Parser $parser ) {
$parser->setHook( 'ref', 'CiteParserTagHooks::ref' );
$parser->setHook( 'references', 'CiteParserTagHooks::references' );
$parser->setHook( 'ref', __CLASS__ . '::ref' );
$parser->setHook( 'references', __CLASS__ . '::references' );
}
/**