original_string: public function createModelData(Model $model)
      {
          $data = [];
  
          if ($model->getId()) {
              $data['id'] = $model->getId();
          }
          if ($model->getName()) {
              $data['name'] = $model->getName();
          }
          if ($model->getConcepts()) {
              $data['output_info']['data'] = [];
              $data['output_info']['data'] = $this->addModelConcepts($data['output_info']['data'], $model->getConcepts());
          }
          $data['output_info']['output_config'] = $model->getOutputConfig();
  
          return $data;
      }
code: public function createModelData(Model $model)
      {
          $data = [];
  
          if ($model->getId()) {
              $data['id'] = $model->getId();
          }
          if ($model->getName()) {
              $data['name'] = $model->getName();
          }
          if ($model->getConcepts()) {
              $data['output_info']['data'] = [];
              $data['output_info']['data'] = $this->addModelConcepts($data['output_info']['data'], $model->getConcepts());
          }
          $data['output_info']['output_config'] = $model->getOutputConfig();
  
          return $data;
      }
code_tokens: public function createModelData ( Model $ model ) { $ data = [ ] ; if ( $ model -> getId ( ) ) { $ data [ 'id' ] = $ model -> getId ( ) ; } if ( $ model -> getName ( ) ) { $ data [ 'name' ] = $ model -> getName ( ) ; } if ( $ model -> getConcepts ( ) ) { $ data [ 'output_info' ] [ 'data' ] = [ ] ; $ data [ 'output_info' ] [ 'data' ] = $ this -> addModelConcepts ( $ data [ 'output_info' ] [ 'data' ] , $ model -> getConcepts ( ) ) ; } $ data [ 'output_info' ] [ 'output_config' ] = $ model -> getOutputConfig ( ) ; return $ data ; }
docstring: Create Model data for Request
  
  @param Model $model
  
  @return array
docstring_tokens: Create Model data for Request