original_string: public function validateModuleID()
      {
          if (!empty($this->moduleID)) {
              $module = Yii::$app->getModule($this->moduleID);
              if ($module === null) {
                  $this->addError('moduleID', "Module '{$this->moduleID}' does not exist.");
              }
          }
      }
code: public function validateModuleID()
      {
          if (!empty($this->moduleID)) {
              $module = Yii::$app->getModule($this->moduleID);
              if ($module === null) {
                  $this->addError('moduleID', "Module '{$this->moduleID}' does not exist.");
              }
          }
      }
code_tokens: public function validateModuleID ( ) { if ( ! empty ( $ this -> moduleID ) ) { $ module = Yii :: $ app -> getModule ( $ this -> moduleID ) ; if ( $ module === null ) { $ this -> addError ( 'moduleID' , "Module '{$this->moduleID}' does not exist." ) ; } } }
docstring: Checks if model ID is valid
docstring_tokens: Checks if model ID is valid