original_string: public function findByHashes(array $hashes): array
      {
          $result = [];
          if (count($hashes) > 0) {
              $queryBuilder = $this->entityManager->createQueryBuilder();
              $queryBuilder->select('if')
                           ->from(IconFile::class, 'if')
                           ->andWhere('if.hash IN (:hashes)')
                           ->setParameter('hashes', array_values(array_map('hex2bin', $hashes)));
  
              $result = $queryBuilder->getQuery()->getResult();
          }
          return $result;
      }
code: public function findByHashes(array $hashes): array
      {
          $result = [];
          if (count($hashes) > 0) {
              $queryBuilder = $this->entityManager->createQueryBuilder();
              $queryBuilder->select('if')
                           ->from(IconFile::class, 'if')
                           ->andWhere('if.hash IN (:hashes)')
                           ->setParameter('hashes', array_values(array_map('hex2bin', $hashes)));
  
              $result = $queryBuilder->getQuery()->getResult();
          }
          return $result;
      }
code_tokens: public function findByHashes ( array $ hashes ) : array { $ result = [ ] ; if ( count ( $ hashes ) > 0 ) { $ queryBuilder = $ this -> entityManager -> createQueryBuilder ( ) ; $ queryBuilder -> select ( 'if' ) -> from ( IconFile :: class , 'if' ) -> andWhere ( 'if.hash IN (:hashes)' ) -> setParameter ( 'hashes' , array_values ( array_map ( 'hex2bin' , $ hashes ) ) ) ; $ result = $ queryBuilder -> getQuery ( ) -> getResult ( ) ; } return $ result ; }
docstring: Finds the icon files with the specified hashes.
  @param array|string[] $hashes
  @return array|IconFile[]
docstring_tokens: Finds the icon files with the specified hashes .