original_string: public function updateInputConcepts(array $conceptsArray, $action)
      {
          $data['inputs'] = [];
  
          foreach ($conceptsArray as $inputId => $inputConcepts) {
              $input = [];
              $input['id'] = (string)$inputId;
              $input['data'] = [];
              $input['data'] = $this->addImageConcepts($input['data'], $inputConcepts);
  
              $data['inputs'][] = $input;
          }
          $data['action'] = $action;
  
          $updateResult = $this->getRequest()->request(
              'PATCH',
              $this->getRequestUrl('inputs'),
              $data
          );
  
          return $this->getInputsFromResult($updateResult);
      }
code: public function updateInputConcepts(array $conceptsArray, $action)
      {
          $data['inputs'] = [];
  
          foreach ($conceptsArray as $inputId => $inputConcepts) {
              $input = [];
              $input['id'] = (string)$inputId;
              $input['data'] = [];
              $input['data'] = $this->addImageConcepts($input['data'], $inputConcepts);
  
              $data['inputs'][] = $input;
          }
          $data['action'] = $action;
  
          $updateResult = $this->getRequest()->request(
              'PATCH',
              $this->getRequestUrl('inputs'),
              $data
          );
  
          return $this->getInputsFromResult($updateResult);
      }
code_tokens: public function updateInputConcepts ( array $ conceptsArray , $ action ) { $ data [ 'inputs' ] = [ ] ; foreach ( $ conceptsArray as $ inputId => $ inputConcepts ) { $ input = [ ] ; $ input [ 'id' ] = ( string ) $ inputId ; $ input [ 'data' ] = [ ] ; $ input [ 'data' ] = $ this -> addImageConcepts ( $ input [ 'data' ] , $ inputConcepts ) ; $ data [ 'inputs' ] [ ] = $ input ; } $ data [ 'action' ] = $ action ; $ updateResult = $ this -> getRequest ( ) -> request ( 'PATCH' , $ this -> getRequestUrl ( 'inputs' ) , $ data ) ; return $ this -> getInputsFromResult ( $ updateResult ) ; }
docstring: Common Input's Concepts Update Method
  
  @param  array $conceptsArray
  @param $action
  
  @return array
docstring_tokens: Common Input s Concepts Update Method