original_string: public function actionUpdate($id)
  {
  $model = $this->findModel($id);
  
  if ($model->load($_POST) && $model->save()) {
  return $this->redirect(Url::previous());
  } else {
  return $this->render('update', [
  'model' => $model,
  ]);
  }
  }
code: public function actionUpdate($id)
  {
  $model = $this->findModel($id);
  
  if ($model->load($_POST) && $model->save()) {
  return $this->redirect(Url::previous());
  } else {
  return $this->render('update', [
  'model' => $model,
  ]);
  }
  }
code_tokens: public function actionUpdate ( $ id ) { $ model = $ this -> findModel ( $ id ) ; if ( $ model -> load ( $ _POST ) && $ model -> save ( ) ) { return $ this -> redirect ( Url :: previous ( ) ) ; } else { return $ this -> render ( 'update' , [ 'model' => $ model , ] ) ; } }
docstring: Updates an existing Country model.
  If update is successful, the browser will be redirected to the 'view' page.
  @param integer $id
  @return mixed
docstring_tokens: Updates an existing Country model . If update is successful the browser will be redirected to the view page .