original_string: public function findByIds(array $ids)
      {
          $entities = [];
  
          for ($i = 0; $i < count($this->registries); $i++) {
              /** @var RegistryInterface $registry */
              $registry = $this->registries[ $i ];
              $found = $registry->findByKeys($ids);
              $entities = array_merge($entities, $found);
  
              $this->updateRegistries($found, $i - 1);
  
              if (count($entities) === count($ids)) {
                  break;
              }
          }
  
          return $entities;
      }
code: public function findByIds(array $ids)
      {
          $entities = [];
  
          for ($i = 0; $i < count($this->registries); $i++) {
              /** @var RegistryInterface $registry */
              $registry = $this->registries[ $i ];
              $found = $registry->findByKeys($ids);
              $entities = array_merge($entities, $found);
  
              $this->updateRegistries($found, $i - 1);
  
              if (count($entities) === count($ids)) {
                  break;
              }
          }
  
          return $entities;
      }
code_tokens: public function findByIds ( array $ ids ) { $ entities = [ ] ; for ( $ i = 0 ; $ i < count ( $ this -> registries ) ; $ i ++ ) { /** @var RegistryInterface $registry */ $ registry = $ this -> registries [ $ i ] ; $ found = $ registry -> findByKeys ( $ ids ) ; $ entities = array_merge ( $ entities , $ found ) ; $ this -> updateRegistries ( $ found , $ i - 1 ) ; if ( count ( $ entities ) === count ( $ ids ) ) { break ; } } return $ entities ; }
docstring: Finds a list of entities by their ids
  
  @param array $ids
  
  @return array
docstring_tokens: Finds a list of entities by their ids