original_string: protected function getDeprecatedCounter(ProjectDescriptor $project)
      {
          $deprecatedCounter = 0;
  
          /** @var DescriptorAbstract $element */
          foreach ($project->getIndexes()->get('elements') as $element) {
              if ($element->isDeprecated()) {
                  $deprecatedCounter += 1;
              }
          }
  
          return $deprecatedCounter;
      }
code: protected function getDeprecatedCounter(ProjectDescriptor $project)
      {
          $deprecatedCounter = 0;
  
          /** @var DescriptorAbstract $element */
          foreach ($project->getIndexes()->get('elements') as $element) {
              if ($element->isDeprecated()) {
                  $deprecatedCounter += 1;
              }
          }
  
          return $deprecatedCounter;
      }
code_tokens: protected function getDeprecatedCounter ( ProjectDescriptor $ project ) { $ deprecatedCounter = 0 ; /** @var DescriptorAbstract $element */ foreach ( $ project -> getIndexes ( ) -> get ( 'elements' ) as $ element ) { if ( $ element -> isDeprecated ( ) ) { $ deprecatedCounter += 1 ; } } return $ deprecatedCounter ; }
docstring: Get number of deprecated elements.
  
  @param ProjectDescriptor $project
  
  @return int
docstring_tokens: Get number of deprecated elements .