original_string: protected function itemsToValues(IItems $items)
      {
          $values = [];
          foreach ($items as $item) {
              /** @var IItem $item */
              $valueId    = $item->get('id');
              $parsedItem = $item->parseValue();
  
              $values[$valueId] = \array_merge(
                  [self::SELECT_RAW => $parsedItem['raw']],
                  $parsedItem['text']
              );
          }
  
          return $values;
      }
code: protected function itemsToValues(IItems $items)
      {
          $values = [];
          foreach ($items as $item) {
              /** @var IItem $item */
              $valueId    = $item->get('id');
              $parsedItem = $item->parseValue();
  
              $values[$valueId] = \array_merge(
                  [self::SELECT_RAW => $parsedItem['raw']],
                  $parsedItem['text']
              );
          }
  
          return $values;
      }
code_tokens: protected function itemsToValues ( IItems $ items ) { $ values = [ ] ; foreach ( $ items as $ item ) { /** @var IItem $item */ $ valueId = $ item -> get ( 'id' ) ; $ parsedItem = $ item -> parseValue ( ) ; $ values [ $ valueId ] = \ array_merge ( [ self :: SELECT_RAW => $ parsedItem [ 'raw' ] ] , $ parsedItem [ 'text' ] ) ; } return $ values ; }
docstring: Convert the item list to values.
  
  @param IItems $items The items to convert.
  
  @return array
docstring_tokens: Convert the item list to values .