original_string: private static function get_models_with_user_data() {
          $models = \core_analytics\manager::get_all_models();
          foreach ($models as $modelid => $model) {
              $analyser = $model->get_analyser(['notimesplitting' => true]);
              if (!$analyser->processes_user_data()) {
                  unset($models[$modelid]);
              }
          }
          return $models;
      }
code: private static function get_models_with_user_data() {
          $models = \core_analytics\manager::get_all_models();
          foreach ($models as $modelid => $model) {
              $analyser = $model->get_analyser(['notimesplitting' => true]);
              if (!$analyser->processes_user_data()) {
                  unset($models[$modelid]);
              }
          }
          return $models;
      }
code_tokens: private static function get_models_with_user_data ( ) { $ models = \ core_analytics \ manager :: get_all_models ( ) ; foreach ( $ models as $ modelid => $ model ) { $ analyser = $ model -> get_analyser ( [ 'notimesplitting' => true ] ) ; if ( ! $ analyser -> processes_user_data ( ) ) { unset ( $ models [ $ modelid ] ) ; } } return $ models ; }
docstring: Returns a list of models with user data.
  
  @return \core_analytics\model[]
docstring_tokens: Returns a list of models with user data .