original_string: public static function arrayToObjectStorage($entity, $array)
      {
          $storage = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage');
          foreach ($array as $item) {
              $storage->attach(EntityUtility::mergeArrayIntoEntity($entity, $item));
          }
  
          return $storage;
      }
code: public static function arrayToObjectStorage($entity, $array)
      {
          $storage = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage');
          foreach ($array as $item) {
              $storage->attach(EntityUtility::mergeArrayIntoEntity($entity, $item));
          }
  
          return $storage;
      }
code_tokens: public static function arrayToObjectStorage ( $ entity , $ array ) { $ storage = GeneralUtility :: makeInstance ( 'TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage' ) ; foreach ( $ array as $ item ) { $ storage -> attach ( EntityUtility :: mergeArrayIntoEntity ( $ entity , $ item ) ) ; } return $ storage ; }
docstring: Transforms an array into ObjectStorage
  
  @param $entity
  @param $array
  @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage
docstring_tokens: Transforms an array into ObjectStorage