From: Jeroen De Dauw Date: Thu, 29 Jul 2010 18:25:10 +0000 (+0000) Subject: Style and doc improvements X-Git-Tag: 1.31.0-rc.0~35838 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=ba015d3d7692abb9385c6a7daa39aa0e27e0db74;p=lhc%2Fweb%2Fwiklou.git Style and doc improvements --- diff --git a/includes/installer/CoreInstaller.php b/includes/installer/CoreInstaller.php index 7735e02ea3..09b6d1b8fd 100644 --- a/includes/installer/CoreInstaller.php +++ b/includes/installer/CoreInstaller.php @@ -160,7 +160,7 @@ abstract class CoreInstaller extends Installer { 'icon' => '{$wgStylePath}/common/images/gnu-fdl.png', ), 'cc-choose' => array( - // details will be filled in by the selector + // Details will be filled in by the selector. 'url' => '', 'icon' => '', 'text' => '', diff --git a/includes/installer/LocalSettingsGenerator.php b/includes/installer/LocalSettingsGenerator.php index f5b268feae..84cf2e4a9f 100644 --- a/includes/installer/LocalSettingsGenerator.php +++ b/includes/installer/LocalSettingsGenerator.php @@ -1,6 +1,7 @@ values['wgEmergencyContact'] = $this->values['wgPasswordSender']; } + /** + * Returns the escaped version of a string of php code. + * + * @param $string String + * + * @return String + */ public static function escapePhpString( $string ) { if ( is_array( $string ) || is_object( $string ) ) { return false; @@ -85,7 +93,8 @@ class LocalSettingsGenerator { /** * Return the full text of the generated LocalSettings.php file, * including the extensions - * @returns String + * + * @return String */ public function getText() { $localSettings = $this->getDefaultText(); @@ -101,6 +110,9 @@ class LocalSettingsGenerator { return $localSettings; } + /** + * @return String + */ private function buildMemcachedServerList() { $servers = $this->values['_MemCachedServers']; @@ -119,6 +131,9 @@ class LocalSettingsGenerator { } } + /** + * @return String + */ private function getDefaultText() { if( !$this->values['wgImageMagickConvertCommand'] ) { $this->values['wgImageMagickConvertCommand'] = '/usr/bin/convert';