From: <var...@us...> - 2021-08-12 10:22:08
|
Revision: 10500 http://sourceforge.net/p/phpwiki/code/10500 Author: vargenau Date: 2021-08-12 10:22:07 +0000 (Thu, 12 Aug 2021) Log Message: ----------- Remove unnecessary local variables, spelling Modified Paths: -------------- trunk/lib/CachedMarkup.php Modified: trunk/lib/CachedMarkup.php =================================================================== --- trunk/lib/CachedMarkup.php 2021-08-12 10:03:18 UTC (rev 10499) +++ trunk/lib/CachedMarkup.php 2021-08-12 10:22:07 UTC (rev 10500) @@ -60,7 +60,7 @@ return false; // ZLIB format has a five bit checksum in its header. - // Lets check for sanity. + // Let's check for sanity. if (((ord($packed[0]) * 256 + ord($packed[1])) % 31 == 0) and (substr($packed, 0, 2) == "\037\213") or (substr($packed, 0, 2) == "x\332") @@ -82,7 +82,7 @@ return false; } - /** Get names of wikipages linked to. + /** Get names of wiki pages linked to. * * @return array of hashes { linkto=>pagename, relation=>pagename } */ @@ -450,19 +450,18 @@ class Cached_SpellCheck extends Cached_WikiLink { - function __construct($word, $suggs) + function __construct($word, $suggestions) { $this->_page = $word; - $this->suggestions = $suggs; + $this->suggestions = $suggestions; } function expand($basepage, &$markup) { - $link = HTML::a(array('class' => 'spell-wrong', + return HTML::a(array('class' => 'spell-wrong', 'title' => 'SpellCheck: ' . join(', ', $this->suggestions), 'name' => $this->_page), $this->_page); - return $link; } } @@ -853,8 +852,7 @@ global $request; $loader = $this->_getLoader(); - $xml = $loader->expandPI($this->_pi, $request, $markup, $basepage); - return $xml; + return $loader->expandPI($this->_pi, $request, $markup, $basepage); } function asString() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |