original_string: protected function addElementToCounter($classCounters, $element)
      {
          if (!isset($classCounters[get_class($element)])) {
              $classCounters[get_class($element)] = 0;
          }
          $classCounters[get_class($element)]++;
  
          return $classCounters;
      }
code: protected function addElementToCounter($classCounters, $element)
      {
          if (!isset($classCounters[get_class($element)])) {
              $classCounters[get_class($element)] = 0;
          }
          $classCounters[get_class($element)]++;
  
          return $classCounters;
      }
code_tokens: protected function addElementToCounter ( $ classCounters , $ element ) { if ( ! isset ( $ classCounters [ get_class ( $ element ) ] ) ) { $ classCounters [ get_class ( $ element ) ] = 0 ; } $ classCounters [ get_class ( $ element ) ] ++ ; return $ classCounters ; }
docstring: Increments the counter for element's class in the class counters.
  
  @param array              $classCounters
  @param DescriptorAbstract $element
  
  @return array
docstring_tokens: Increments the counter for element s class in the class counters .