original_string: private function updateRegistries($entities, $from)
      {
          if (count($entities) >= 0) {
              for ($j = $from; $j >= 0; $j--) {
                  /** @var RegistryInterface $registry */
                  $registry = $this->registries[ $j ];
                  /** @var AbstractEntity $entity */
                  foreach ($entities as $entity) {
                      $registry->add($entity->getId(), $entity);
                  }
              }
          }
      }
code: private function updateRegistries($entities, $from)
      {
          if (count($entities) >= 0) {
              for ($j = $from; $j >= 0; $j--) {
                  /** @var RegistryInterface $registry */
                  $registry = $this->registries[ $j ];
                  /** @var AbstractEntity $entity */
                  foreach ($entities as $entity) {
                      $registry->add($entity->getId(), $entity);
                  }
              }
          }
      }
code_tokens: private function updateRegistries ( $ entities , $ from ) { if ( count ( $ entities ) >= 0 ) { for ( $ j = $ from ; $ j >= 0 ; $ j -- ) { /** @var RegistryInterface $registry */ $ registry = $ this -> registries [ $ j ] ; /** @var AbstractEntity $entity */ foreach ( $ entities as $ entity ) { $ registry -> add ( $ entity -> getId ( ) , $ entity ) ; } } } }
docstring: Updates the registries
  
  @param array $entities
  @param int   $from
docstring_tokens: Updates the registries