Skip to content
Snippets Groups Projects
Commit d5d08c05 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fixed some style errors found by scrutinizer

parent cd6ed79f
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ use dokuwiki\Action\Exception\FatalException;
abstract class AbstractAliasAction extends AbstractAction {
/** @inheritdoc */
function minimumPermission() {
public function minimumPermission() {
return AUTH_NONE;
}
......
......@@ -51,7 +51,7 @@ class Resendpwd extends AbstractAclAction {
* @fixme this should be split up into multiple methods
* @return bool true on success, false on any error
*/
function resendpwd() {
protected function resendpwd() {
global $lang;
global $conf;
/* @var \DokuWiki_Auth_Plugin $auth */
......
......@@ -177,7 +177,7 @@ class ActionRouter {
public function loadAction($actionname) {
$actionname = strtolower($actionname); // FIXME is this needed here? should we run a cleanup somewhere else?
$parts = explode('_', $actionname);
while($parts) {
while(!empty($parts)) {
$load = join('_', $parts);
$class = 'dokuwiki\\Action\\' . str_replace('_', '', ucwords($load, '_'));
if(class_exists($class)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment