original_string: public function index()
      {
          $view = $this->_getDashboardView('@Dashboard/index');
          $view->dashboardSettingsControl = new DashboardManagerControl();
          $view->hasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess();
          $view->dashboards = array();
          if (!Piwik::isUserIsAnonymous()) {
              $login = Piwik::getCurrentUserLogin();
  
              $view->dashboards = $this->dashboard->getAllDashboards($login);
          }
          return $view->render();
      }
code: public function index()
      {
          $view = $this->_getDashboardView('@Dashboard/index');
          $view->dashboardSettingsControl = new DashboardManagerControl();
          $view->hasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess();
          $view->dashboards = array();
          if (!Piwik::isUserIsAnonymous()) {
              $login = Piwik::getCurrentUserLogin();
  
              $view->dashboards = $this->dashboard->getAllDashboards($login);
          }
          return $view->render();
      }
code_tokens: public function index ( ) { $ view = $ this -> _getDashboardView ( '@Dashboard/index' ) ; $ view -> dashboardSettingsControl = new DashboardManagerControl ( ) ; $ view -> hasSomeAdminAccess = Piwik :: isUserHasSomeAdminAccess ( ) ; $ view -> dashboards = array ( ) ; if ( ! Piwik :: isUserIsAnonymous ( ) ) { $ login = Piwik :: getCurrentUserLogin ( ) ; $ view -> dashboards = $ this -> dashboard -> getAllDashboards ( $ login ) ; } return $ view -> render ( ) ; }
docstring: this is the exported widget
docstring_tokens: this is the exported widget