original_string: public function actionImport()
      {
          $result = ['error' => Yii::t('podium/view', 'Error')];
  
          if (Yii::$app->request->isPost) {
              $drop = Yii::$app->request->post('drop');
              if ($drop !== null) {
                  $installation = new Installation();
                  if ((is_bool($drop) && $drop) || $drop === 'true') {
                      $result = $installation->nextDrop();
                  } else {
                      $result = $installation->nextStep();
                  }
              }
          }
  
          return Json::encode($result);
      }
code: public function actionImport()
      {
          $result = ['error' => Yii::t('podium/view', 'Error')];
  
          if (Yii::$app->request->isPost) {
              $drop = Yii::$app->request->post('drop');
              if ($drop !== null) {
                  $installation = new Installation();
                  if ((is_bool($drop) && $drop) || $drop === 'true') {
                      $result = $installation->nextDrop();
                  } else {
                      $result = $installation->nextStep();
                  }
              }
          }
  
          return Json::encode($result);
      }
code_tokens: public function actionImport ( ) { $ result = [ 'error' => Yii :: t ( 'podium/view' , 'Error' ) ] ; if ( Yii :: $ app -> request -> isPost ) { $ drop = Yii :: $ app -> request -> post ( 'drop' ) ; if ( $ drop !== null ) { $ installation = new Installation ( ) ; if ( ( is_bool ( $ drop ) && $ drop ) || $ drop === 'true' ) { $ result = $ installation -> nextDrop ( ) ; } else { $ result = $ installation -> nextStep ( ) ; } } } return Json :: encode ( $ result ) ; }
docstring: Importing the databases structures.
  @return string
docstring_tokens: Importing the databases structures .