src/Controller.php
private static function getActionName(string $action): string
    {
        if ($action === '') {
            return 'index';
        }

        if (in_array(strtolower($action), self::$magicActionMethods)) {
            return '_' . $action;
        }

        return $action;
    }
private static function getActionName(string $action): string
    {
        if ($action === '') {
            return 'index';
        }

        if (in_array(strtolower($action), self::$magicActionMethods)) {
            return '_' . $action;
        }

        return $action;
    }
private static function getActionName ( string $ action ) : string { if ( $ action === '' ) { return 'index' ; } if ( in_array ( strtolower ( $ action ) , self :: $ magicActionMethods ) ) { return '_' . $ action ; } return $ action ; }
Returns the action name for a specific action.

@param string $action The action.

@return string The action name.
Returns the action name for a specific action .