original_string: public function getAllDashboards()
      {
          $this->checkTokenInUrl();
  
          if (Piwik::isUserIsAnonymous()) {
              Json::sendHeaderJSON();
              return '[]';
          }
  
          $login      = Piwik::getCurrentUserLogin();
          $dashboards = $this->dashboard->getAllDashboards($login);
  
          Json::sendHeaderJSON();
          return json_encode($dashboards);
      }
code: public function getAllDashboards()
      {
          $this->checkTokenInUrl();
  
          if (Piwik::isUserIsAnonymous()) {
              Json::sendHeaderJSON();
              return '[]';
          }
  
          $login      = Piwik::getCurrentUserLogin();
          $dashboards = $this->dashboard->getAllDashboards($login);
  
          Json::sendHeaderJSON();
          return json_encode($dashboards);
      }
code_tokens: public function getAllDashboards ( ) { $ this -> checkTokenInUrl ( ) ; if ( Piwik :: isUserIsAnonymous ( ) ) { Json :: sendHeaderJSON ( ) ; return '[]' ; } $ login = Piwik :: getCurrentUserLogin ( ) ; $ dashboards = $ this -> dashboard -> getAllDashboards ( $ login ) ; Json :: sendHeaderJSON ( ) ; return json_encode ( $ dashboards ) ; }
docstring: Outputs all available dashboards for the current user as a JSON string
docstring_tokens: Outputs all available dashboards for the current user as a JSON string