original_string: public function findModNamesByIds(array $modCombinationIds): array
      {
          $result = [];
          if (count($modCombinationIds) > 0) {
              $queryBuilder = $this->entityManager->createQueryBuilder();
              $queryBuilder->select('m.name')
                           ->from(ModCombination::class, 'mc')
                           ->innerJoin('mc.mod', 'm')
                           ->andWhere('mc.id IN (:modCombinationIds)')
                           ->addGroupBy('m.name')
                           ->setParameter('modCombinationIds', array_values($modCombinationIds));
  
              foreach ($queryBuilder->getQuery()->getResult() as $row) {
                  $result[] = $row['name'];
              }
          }
          return $result;
      }
code: public function findModNamesByIds(array $modCombinationIds): array
      {
          $result = [];
          if (count($modCombinationIds) > 0) {
              $queryBuilder = $this->entityManager->createQueryBuilder();
              $queryBuilder->select('m.name')
                           ->from(ModCombination::class, 'mc')
                           ->innerJoin('mc.mod', 'm')
                           ->andWhere('mc.id IN (:modCombinationIds)')
                           ->addGroupBy('m.name')
                           ->setParameter('modCombinationIds', array_values($modCombinationIds));
  
              foreach ($queryBuilder->getQuery()->getResult() as $row) {
                  $result[] = $row['name'];
              }
          }
          return $result;
      }
code_tokens: public function findModNamesByIds ( array $ modCombinationIds ) : array { $ result = [ ] ; if ( count ( $ modCombinationIds ) > 0 ) { $ queryBuilder = $ this -> entityManager -> createQueryBuilder ( ) ; $ queryBuilder -> select ( 'm.name' ) -> from ( ModCombination :: class , 'mc' ) -> innerJoin ( 'mc.mod' , 'm' ) -> andWhere ( 'mc.id IN (:modCombinationIds)' ) -> addGroupBy ( 'm.name' ) -> setParameter ( 'modCombinationIds' , array_values ( $ modCombinationIds ) ) ; foreach ( $ queryBuilder -> getQuery ( ) -> getResult ( ) as $ row ) { $ result [ ] = $ row [ 'name' ] ; } } return $ result ; }
docstring: Finds the mod names of the specified combination ids.
  @param array|int[] $modCombinationIds
  @return array|string[]
docstring_tokens: Finds the mod names of the specified combination ids .