if <br /> tag is present after <hr />tag this change replaces both with <hr /> tag. as per Thiemo's patch I8021b2c sugesstions.
Bug: T124144
Change-Id: I9239da4538e189fc825e72668a3cbd8325ac2ca4
* I think the dependency on a more recent PHP version was forgotten.
Notice how the code already contained short array syntax.
* Make the @license more visible in the class itself.
* I'm intentionally only listing the original @author. Copying this
author line was forgotten in Ieea24d5.
* Remove not needed "return true" from the hook handler. This is the
default anyway.
* Use the …::class feature when possible.
* Remove the unwanted &$parser reference. This is only here for legacy
reasons, but does not make any sense any more (Why would a hook
handler want to replace the *parser*?), and can be removed from
callees (not from callers) with no consequence.
* Add strict type hints to function headers for type safety. I checked
the caller in Parser::extensionSubstitution() that will call
Poem::renderPoem(), and it is impossible for the Parser to be null,
and impossible for the frame to be false.
Change-Id: I4b4203bf1cef0c057db5e6a7747d441d0b0e4b54