original_string: public function addImageConcepts(array $data, array $concepts)
      {
          $data['concepts'] = [];
  
          foreach ($concepts as $concept) {
              $data['concepts'][] = [
                  'id' => $concept->getId(),
                  'value' => $concept->getValue(),
              ];
          }
  
          return $data;
      }
code: public function addImageConcepts(array $data, array $concepts)
      {
          $data['concepts'] = [];
  
          foreach ($concepts as $concept) {
              $data['concepts'][] = [
                  'id' => $concept->getId(),
                  'value' => $concept->getValue(),
              ];
          }
  
          return $data;
      }
code_tokens: public function addImageConcepts ( array $ data , array $ concepts ) { $ data [ 'concepts' ] = [ ] ; foreach ( $ concepts as $ concept ) { $ data [ 'concepts' ] [ ] = [ 'id' => $ concept -> getId ( ) , 'value' => $ concept -> getValue ( ) , ] ; } return $ data ; }
docstring: Adds Image Concepts to Image Data
  
  @param array $data
  @param array $concepts
  
  @return array
docstring_tokens: Adds Image Concepts to Image Data