original_string: protected function getControllerTargetModel($controller)
      {
          switch ($controller) {
              case 'respondent':
                  $model = $this->loader->getModels()->getRespondentModel(true);
                  $model->applyEditSettings();
                  return $model;
  
              case 'calendar':
                  $model = $this->loader->getModels()->createAppointmentModel();
                  $this->applySource($model);
                  $model->applyEditSettings();
                  return $model;
  
              default:
                  return null;
          }
      }
code: protected function getControllerTargetModel($controller)
      {
          switch ($controller) {
              case 'respondent':
                  $model = $this->loader->getModels()->getRespondentModel(true);
                  $model->applyEditSettings();
                  return $model;
  
              case 'calendar':
                  $model = $this->loader->getModels()->createAppointmentModel();
                  $this->applySource($model);
                  $model->applyEditSettings();
                  return $model;
  
              default:
                  return null;
          }
      }
code_tokens: protected function getControllerTargetModel ( $ controller ) { switch ( $ controller ) { case 'respondent' : $ model = $ this -> loader -> getModels ( ) -> getRespondentModel ( true ) ; $ model -> applyEditSettings ( ) ; return $ model ; case 'calendar' : $ model = $ this -> loader -> getModels ( ) -> createAppointmentModel ( ) ; $ this -> applySource ( $ model ) ; $ model -> applyEditSettings ( ) ; return $ model ; default : return null ; } }
docstring: The model to use with a controller
  
  @param string $controller Name of controller (or other id)
  @return \MUtil_Model_ModelAbstract or null when not found
docstring_tokens: The model to use with a controller