original_string: protected static function approved_contextlist_contains_my_context(approved_contextlist $contextlist) {
          $userid = $contextlist->get_user()->id;
          foreach ($contextlist->get_contexts() as $context) {
              if ($context->contextlevel == CONTEXT_USER && $context->instanceid == $userid) {
                  return true;
              }
          }
          return false;
      }
code: protected static function approved_contextlist_contains_my_context(approved_contextlist $contextlist) {
          $userid = $contextlist->get_user()->id;
          foreach ($contextlist->get_contexts() as $context) {
              if ($context->contextlevel == CONTEXT_USER && $context->instanceid == $userid) {
                  return true;
              }
          }
          return false;
      }
code_tokens: protected static function approved_contextlist_contains_my_context ( approved_contextlist $ contextlist ) { $ userid = $ contextlist -> get_user ( ) -> id ; foreach ( $ contextlist -> get_contexts ( ) as $ context ) { if ( $ context -> contextlevel == CONTEXT_USER && $ context -> instanceid == $ userid ) { return true ; } } return false ; }
docstring: Return whether the contextlist contains our own context.
  
  @param approved_contextlist $contextlist The contextlist
  @return bool
docstring_tokens: Return whether the contextlist contains our own context .