original_string: public function saveLayoutAsDefault()
      {
          $this->checkTokenInUrl();
  
          if (Piwik::hasUserSuperUserAccess()) {
              $layout = Common::unsanitizeInputValue(Common::getRequestVar('layout'));
              $layout = strip_tags($layout);
              $this->getModel()->createOrUpdateDashboard('', '1', $layout);
          }
      }
code: public function saveLayoutAsDefault()
      {
          $this->checkTokenInUrl();
  
          if (Piwik::hasUserSuperUserAccess()) {
              $layout = Common::unsanitizeInputValue(Common::getRequestVar('layout'));
              $layout = strip_tags($layout);
              $this->getModel()->createOrUpdateDashboard('', '1', $layout);
          }
      }
code_tokens: public function saveLayoutAsDefault ( ) { $ this -> checkTokenInUrl ( ) ; if ( Piwik :: hasUserSuperUserAccess ( ) ) { $ layout = Common :: unsanitizeInputValue ( Common :: getRequestVar ( 'layout' ) ) ; $ layout = strip_tags ( $ layout ) ; $ this -> getModel ( ) -> createOrUpdateDashboard ( '' , '1' , $ layout ) ; } }
docstring: Saves the layout as default
docstring_tokens: Saves the layout as default