original_string: public function include_after_restore($restoreid, $courseid, \base_logger $logger,
              $name, \base_task $task) {
          return !$this->groupid || $task->get_setting_value('groups');
      }
code: public function include_after_restore($restoreid, $courseid, \base_logger $logger,
              $name, \base_task $task) {
          return !$this->groupid || $task->get_setting_value('groups');
      }
code_tokens: public function include_after_restore ( $ restoreid , $ courseid , \ base_logger $ logger , $ name , \ base_task $ task ) { return ! $ this -> groupid || $ task -> get_setting_value ( 'groups' ) ; }
docstring: Include this condition only if we are including groups in restore, or
  if it's a generic 'same activity' one.
  
  @param int $restoreid The restore Id.
  @param int $courseid The ID of the course.
  @param base_logger $logger The logger being used.
  @param string $name Name of item being restored.
  @param base_task $task The task being performed.
  
  @return Integer groupid
docstring_tokens: Include this condition only if we are including groups in restore or if it s a generic same activity one .