original_string: public function delete(){
          if(!($this->id == 1 && $this->module->cantDeleteRoot == true)){
              if ($this->status == self::STATUS_DELETED) {
                  Yii::$app->authManager->revokeAll($this->getId());
                  parent::delete();
              } else {
                  $this->status = self::STATUS_DELETED;
                  $this->save(false); // validation = false
              }
          }
      }
code: public function delete(){
          if(!($this->id == 1 && $this->module->cantDeleteRoot == true)){
              if ($this->status == self::STATUS_DELETED) {
                  Yii::$app->authManager->revokeAll($this->getId());
                  parent::delete();
              } else {
                  $this->status = self::STATUS_DELETED;
                  $this->save(false); // validation = false
              }
          }
      }
code_tokens: public function delete ( ) { if ( ! ( $ this -> id == 1 && $ this -> module -> cantDeleteRoot == true ) ) { if ( $ this -> status == self :: STATUS_DELETED ) { Yii :: $ app -> authManager -> revokeAll ( $ this -> getId ( ) ) ; parent :: delete ( ) ; } else { $ this -> status = self :: STATUS_DELETED ; $ this -> save ( false ) ; // validation = false } } }
docstring: Deside delete user or just set a deleted status
docstring_tokens: Deside delete user or just set a deleted status