original_string: public function model($name, $config = [])
      {
          $modelData = $this->modelMap[ucfirst($name)];
  
          if (!empty($config)) {
              if (is_string($modelData)) {
                  $modelData = ['class' => $modelData];
              }
  
              $modelData = ArrayHelper::merge(
                  $modelData,
                  $config
              );
          }
  
          return $modelData;
      }
code: public function model($name, $config = [])
      {
          $modelData = $this->modelMap[ucfirst($name)];
  
          if (!empty($config)) {
              if (is_string($modelData)) {
                  $modelData = ['class' => $modelData];
              }
  
              $modelData = ArrayHelper::merge(
                  $modelData,
                  $config
              );
          }
  
          return $modelData;
      }
code_tokens: public function model ( $ name , $ config = [ ] ) { $ modelData = $ this -> modelMap [ ucfirst ( $ name ) ] ; if ( ! empty ( $ config ) ) { if ( is_string ( $ modelData ) ) { $ modelData = [ 'class' => $ modelData ] ; } $ modelData = ArrayHelper :: merge ( $ modelData , $ config ) ; } return $ modelData ; }
docstring: Get defined className of model
  
  Returns an string or array compatible
  with the Yii::createObject method.
  
  @param string $name
  @param array $config // You should never send an array with a key defined as "class" since this will
  // overwrite the main className defined by the system.
  @return string|array
docstring_tokens: Get defined className of model