diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-04 16:31:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-04 16:31:04 +0000 |
commit | 1b01b241aeec9fd7688a8263cbb00a972e894652 (patch) | |
tree | 8cc6ece5b812a42d2d939aea0f887b4302d8a9ca /includes/updater.inc | |
parent | 99128df8d030061a94e093a0a6da91e11f8453cd (diff) | |
download | brdo-1b01b241aeec9fd7688a8263cbb00a972e894652.tar.gz brdo-1b01b241aeec9fd7688a8263cbb00a972e894652.tar.bz2 |
- Patch #648744 by Crell: specified more @return type definitions for auto-completion in IDEs.
Diffstat (limited to 'includes/updater.inc')
-rw-r--r-- | includes/updater.inc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/includes/updater.inc b/includes/updater.inc index e11f8e1af..76a04ccc9 100644 --- a/includes/updater.inc +++ b/includes/updater.inc @@ -8,7 +8,7 @@ * Normally, the FileTransfer is provided when the site owner is redirected to * authorize.php as part of a multistep process. */ - + /** * Interface for a class which can update a Drupal project. * @@ -36,7 +36,8 @@ interface DrupalUpdaterInterface { public static function getProjectName($directory); /** - * @return string an absolute path to the default install location. + * @return string + * An absolute path to the default install location. */ public function getInstallDirectory(); @@ -71,7 +72,7 @@ class Updater { * @var string $source Directory to install from. */ public $source; - + public function __construct($source) { $this->source = $source; $this->name = self::getProjectName($source); @@ -87,7 +88,7 @@ class Updater { * @param string $source * Directory of a Drupal project. * - * @return object Updater + * @return Updater */ public static function factory($source) { if (is_dir($source)) { @@ -214,7 +215,7 @@ class Updater { if ($args['make_backup']) { $this->makeBackup($args['install_dir'], $args['backup_dir']); } - + if (!$this->name) { // This is bad, don't want to delete the install directory. throw new UpdaterException(t('Fatal error in update, cowardly refusing to wipe out the install directory.')); |