Commit 19c7193c authored by Dries's avatar Dries

- Patch #855410 by aspilicious: add missing doc and newlines in updater.inc.

parent 34a7bbcf
......@@ -23,6 +23,7 @@ interface DrupalUpdaterInterface {
/**
* Checks if the project is installed.
*
* @return bool
*/
public function isInstalled();
......@@ -49,6 +50,7 @@ public function getInstallDirectory();
* @param string $directory
*
* @return bool
* TRUE if the project is installed, FALSE if not.
*/
public static function canUpdateDirectory($directory);
......@@ -105,6 +107,7 @@ public static function factory($source) {
*
* @param string $directory
* Extracted Drupal project.
*
* @return string
* The class name which can work with this project type.
*/
......@@ -129,6 +132,7 @@ public static function getUpdaterFromDirectory($directory) {
*
* @param string $directory
* Directory to search in.
*
* @return string
* Path to the info file.
*/
......@@ -155,7 +159,9 @@ public static function findInfoFile($directory) {
* provide their canonical name.
*
* @param string $directory
*
* @return string
* The name of the project.
*/
public static function getProjectName($directory) {
return basename($directory);
......@@ -166,7 +172,9 @@ public static function getProjectName($directory) {
*
* @param string $directory
* Directory to search for the info file.
*
* @return string
* The title of the project.
*/
public static function getProjectTitle($directory) {
$info_file = self::findInfoFile($directory);
......@@ -182,6 +190,7 @@ public static function getProjectTitle($directory) {
*
* @param array $overrides
* An array of overrides for the default parameters.
*
* @return array
* An array of configuration parameters for an update or install operation.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment