From: <var...@us...> - 2012-10-26 13:41:14
|
Revision: 8421 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8421&view=rev Author: vargenau Date: 2012-10-26 13:41:02 +0000 (Fri, 26 Oct 2012) Log Message: ----------- elseif [PSR-2] The keyword elseif should be used instead of else if so that all control keywords looks like single words. Modified Paths: -------------- trunk/lib/plugin/Calendar.php trunk/lib/plugin/RedirectTo.php Modified: trunk/lib/plugin/Calendar.php =================================================================== --- trunk/lib/plugin/Calendar.php 2012-10-26 13:14:46 UTC (rev 8420) +++ trunk/lib/plugin/Calendar.php 2012-10-26 13:41:02 UTC (rev 8421) @@ -150,7 +150,7 @@ if ($mday == $this->_today) { $mday = HTML::strong($mday); $td->setAttr('class', 'cal-today'); - } else if ($dbi->isWikiPage($page_for_date)) { + } elseif ($dbi->isWikiPage($page_for_date)) { $this->_links[] = $page_for_date; $td->setAttr('class', 'cal-day'); } Modified: trunk/lib/plugin/RedirectTo.php =================================================================== --- trunk/lib/plugin/RedirectTo.php 2012-10-26 13:14:46 UTC (rev 8420) +++ trunk/lib/plugin/RedirectTo.php 2012-10-26 13:41:02 UTC (rev 8421) @@ -75,7 +75,7 @@ if (!$thispage->get('locked')) { return $this->disabled(_("Redirect to an external URL is only allowed in locked pages.")); } - } else if ($page) { + } elseif ($page) { $url = WikiURL($page, array('redirectfrom' => $request->getArg('pagename')), 'abs_path'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |