original_string: public function actionCheckname(){
          $request = \Yii::$app->request;
          if ($request->getIsOptions()) {
              return $this->ResponseOptions($this->verbs()['checkname']);
          }
          $model = new BizRule(null);
          $mo =$model->find(Yii::$app->request->post()['BizRule']['name']);
          if($mo==null){
              return ['message'=>true];
          }else{
              return ['message'=>false];
          }
  
      }
code: public function actionCheckname(){
          $request = \Yii::$app->request;
          if ($request->getIsOptions()) {
              return $this->ResponseOptions($this->verbs()['checkname']);
          }
          $model = new BizRule(null);
          $mo =$model->find(Yii::$app->request->post()['BizRule']['name']);
          if($mo==null){
              return ['message'=>true];
          }else{
              return ['message'=>false];
          }
  
      }
code_tokens: public function actionCheckname ( ) { $ request = \ Yii :: $ app -> request ; if ( $ request -> getIsOptions ( ) ) { return $ this -> ResponseOptions ( $ this -> verbs ( ) [ 'checkname' ] ) ; } $ model = new BizRule ( null ) ; $ mo = $ model -> find ( Yii :: $ app -> request -> post ( ) [ 'BizRule' ] [ 'name' ] ) ; if ( $ mo == null ) { return [ 'message' => true ] ; } else { return [ 'message' => false ] ; } }
docstring: check is a new item
  @return boolan
docstring_tokens: check is a new item