protected function doExclude($modules) {
    if ($modules) {
      $modules = (array) $modules;
      $this->excludeList = array_merge($this->excludeList, $modules);
      $this->installList = array_diff($this->installList, $modules);
    }
  }
protected function doExclude($modules) {
    if ($modules) {
      $modules = (array) $modules;
      $this->excludeList = array_merge($this->excludeList, $modules);
      $this->installList = array_diff($this->installList, $modules);
    }
  }
protected function doExclude ( $ modules ) { if ( $ modules ) { $ modules = ( array ) $ modules ; $ this -> excludeList = array_merge ( $ this -> excludeList , $ modules ) ; $ this -> installList = array_diff ( $ this -> installList , $ modules ) ; } }
Adds a set of modules to the exclude list.

@param string|string[] $modules
The module(s) to exclude.
Adds a set of modules to the exclude list .