Add LinkTarget::hasFragment() helper function
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 20 Apr 2016 08:07:58 +0000 (01:07 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 20 Apr 2016 22:51:39 +0000 (15:51 -0700)
commit55ec9f2e4d9a9186879765596013cdcdb775ea4d
treed1491420e9e3fc80b5a4ca506926b5b67dfd9a7b
parentaa21cf32facdb3f7c315bea0a4072d9da450c947
Add LinkTarget::hasFragment() helper function

LinkTarget::hasFragment() is a helper function which returns a boolean
of whether the target has a fragment. Title already had such a function,
and one was added to TitleValue.

Co-Authored-By: addshore <addshorewiki@gmail.com>
Change-Id: I49e607ae5a58c3aef96d0246297740e7d88ac816
includes/LinkTarget.php
includes/title/TitleValue.php
tests/phpunit/includes/title/TitleValueTest.php