original_string: public function checkRequirements($module_id)
      {
          $this->checkModuleId($module_id);
          $module = $this->module->getInfo($module_id);
          $this->checkCore($module);
          $this->checkPhpVersion($module);
  
          if ($this->module->isInstaller($module_id)) {
              $error = $this->translation->text('Modules with "installer" type cannot be installed/enabled when system is already set up');
              throw new UnexpectedValueException($error);
          }
  
          $this->checkDependenciesExtensions($module);
          $this->checkDependenciesModule($module_id);
          return true;
      }
code: public function checkRequirements($module_id)
      {
          $this->checkModuleId($module_id);
          $module = $this->module->getInfo($module_id);
          $this->checkCore($module);
          $this->checkPhpVersion($module);
  
          if ($this->module->isInstaller($module_id)) {
              $error = $this->translation->text('Modules with "installer" type cannot be installed/enabled when system is already set up');
              throw new UnexpectedValueException($error);
          }
  
          $this->checkDependenciesExtensions($module);
          $this->checkDependenciesModule($module_id);
          return true;
      }
code_tokens: public function checkRequirements ( $ module_id ) { $ this -> checkModuleId ( $ module_id ) ; $ module = $ this -> module -> getInfo ( $ module_id ) ; $ this -> checkCore ( $ module ) ; $ this -> checkPhpVersion ( $ module ) ; if ( $ this -> module -> isInstaller ( $ module_id ) ) { $ error = $ this -> translation -> text ( 'Modules with "installer" type cannot be installed/enabled when system is already set up' ) ; throw new UnexpectedValueException ( $ error ) ; } $ this -> checkDependenciesExtensions ( $ module ) ; $ this -> checkDependenciesModule ( $ module_id ) ; return true ; }
docstring: Checks all requirements for the module
  @param string $module_id
  @return bool
  @throws UnexpectedValueException
docstring_tokens: Checks all requirements for the module