original_string: public function contains(array $list)
      {
          phpCAS::traceBegin();
          $count = 0;
          foreach ($this->_chains as $chain) {
              phpCAS::trace("Checking chain ". $count++);
              if ($chain->matches($list)) {
                  phpCAS::traceEnd(true);
                  return true;
              }
          }
          phpCAS::trace("No proxy chain matches.");
          phpCAS::traceEnd(false);
          return false;
      }
code: public function contains(array $list)
      {
          phpCAS::traceBegin();
          $count = 0;
          foreach ($this->_chains as $chain) {
              phpCAS::trace("Checking chain ". $count++);
              if ($chain->matches($list)) {
                  phpCAS::traceEnd(true);
                  return true;
              }
          }
          phpCAS::trace("No proxy chain matches.");
          phpCAS::traceEnd(false);
          return false;
      }
code_tokens: public function contains ( array $ list ) { phpCAS :: traceBegin ( ) ; $ count = 0 ; foreach ( $ this -> _chains as $ chain ) { phpCAS :: trace ( "Checking chain " . $ count ++ ) ; if ( $ chain -> matches ( $ list ) ) { phpCAS :: traceEnd ( true ) ; return true ; } } phpCAS :: trace ( "No proxy chain matches." ) ; phpCAS :: traceEnd ( false ) ; return false ; }
docstring: Validate the proxies from the proxy ticket validation against the
  chains that were definded.
  
  @param array $list List of proxies from the proxy ticket validation.
  
  @return if any chain fully matches the supplied list
docstring_tokens: Validate the proxies from the proxy ticket validation against the chains that were definded .