original_string: public function addImageMetadata(array $data, array $metadata)
      {
          $data['metadata'] = [];
  
          foreach ($metadata as $meta_name => $meta_value) {
              $data['metadata'][$meta_name] = $meta_value;
          }
  
          return $data;
      }
code: public function addImageMetadata(array $data, array $metadata)
      {
          $data['metadata'] = [];
  
          foreach ($metadata as $meta_name => $meta_value) {
              $data['metadata'][$meta_name] = $meta_value;
          }
  
          return $data;
      }
code_tokens: public function addImageMetadata ( array $ data , array $ metadata ) { $ data [ 'metadata' ] = [ ] ; foreach ( $ metadata as $ meta_name => $ meta_value ) { $ data [ 'metadata' ] [ $ meta_name ] = $ meta_value ; } return $ data ; }
docstring: Adds Image Metadaya to Image Data
  
  @param array $data
  @param array $metadata
  
  @return array
docstring_tokens: Adds Image Metadaya to Image Data