original_string: public function logout()
      {
          Piwik::postEvent('Login.logout', array(Piwik::getCurrentUserLogin()));
  
          self::clearSession();
  
          $logoutUrl = @Config::getInstance()->General['login_logout_url'];
          if (empty($logoutUrl)) {
              Piwik::redirectToModule('CoreHome');
          } else {
              Url::redirectToUrl($logoutUrl);
          }
      }
code: public function logout()
      {
          Piwik::postEvent('Login.logout', array(Piwik::getCurrentUserLogin()));
  
          self::clearSession();
  
          $logoutUrl = @Config::getInstance()->General['login_logout_url'];
          if (empty($logoutUrl)) {
              Piwik::redirectToModule('CoreHome');
          } else {
              Url::redirectToUrl($logoutUrl);
          }
      }
code_tokens: public function logout ( ) { Piwik :: postEvent ( 'Login.logout' , array ( Piwik :: getCurrentUserLogin ( ) ) ) ; self :: clearSession ( ) ; $ logoutUrl = @ Config :: getInstance ( ) -> General [ 'login_logout_url' ] ; if ( empty ( $ logoutUrl ) ) { Piwik :: redirectToModule ( 'CoreHome' ) ; } else { Url :: redirectToUrl ( $ logoutUrl ) ; } }
docstring: Logout current user
  
  @param none
  @return void
docstring_tokens: Logout current user