diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-12-06 15:11:26 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-12-26 14:19:22 +0100 |
commit | 9a8fb2e1df0d63f46ee0a6e4b64dc8530b8db809 (patch) | |
tree | dfccbd35729a6915ac1cbad37b94f03af2cb6967 /phpBB/phpbb/textformatter | |
parent | 8fe94a19b46c4e33a117c1a040415f2b1c397e7c (diff) | |
download | forums-9a8fb2e1df0d63f46ee0a6e4b64dc8530b8db809.tar forums-9a8fb2e1df0d63f46ee0a6e4b64dc8530b8db809.tar.gz forums-9a8fb2e1df0d63f46ee0a6e4b64dc8530b8db809.tar.bz2 forums-9a8fb2e1df0d63f46ee0a6e4b64dc8530b8db809.tar.xz forums-9a8fb2e1df0d63f46ee0a6e4b64dc8530b8db809.zip |
[ticket/14323] Stylistic change [ci skip]
PHPBB3-14323
Diffstat (limited to 'phpBB/phpbb/textformatter')
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/parser.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/parser.php b/phpBB/phpbb/textformatter/s9e/parser.php index d8a2b8d62c..beb737c816 100644 --- a/phpBB/phpbb/textformatter/s9e/parser.php +++ b/phpBB/phpbb/textformatter/s9e/parser.php @@ -397,18 +397,20 @@ class parser implements \phpbb\textformatter\parser_interface /** * Replace the content displayed inside of a URL tag * - * Will only apply to URL tags that do not use any markup (e.g. not "[url]") on the assumption - * that those tags were created by the Autolink plugin to linkify URLs found in plain text + * Will only apply to URL tags that do not use any markup (e.g. not "[url]") + * on the assumption that those tags were created by the Autolink plugin to + * linkify URLs found in plain text * * @param \s9e\TextFormatter\Parser\Tag $url_tag URL tag (start tag) * @param \s9e\TextFormatter\Parser $parser Parser * @param string $board_url Forum's root URL (with trailing slash) - * @return bool Always TRUE to indicate that the tag is valid + * @return bool Always true to indicate that the tag is valid */ public static function generate_autolink_text(\s9e\TextFormatter\Parser\Tag $url_tag, \s9e\TextFormatter\Parser $parser, $board_url) { - // If the tag consumes any text then we ignore it because it's not a linkified URL. Same if - // it's not paired with an end tag that doesn't consume any text either + // If the tag consumes any text then we ignore it because it's not a + // linkified URL. Same if it's not paired with an end tag that doesn't + // consume any text either if ($url_tag->getLen() > 0 || !$url_tag->getEndTag()) { return true; |