From: Timo Tijhof Date: Sat, 30 Aug 2014 16:51:42 +0000 (+0200) Subject: doxygen: Document problem with slashes and fix a few X-Git-Tag: 1.31.0-rc.0~13872^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=8c34c8ed5e3f581b0d507aa7a4a90ac776aa9a87;p=lhc%2Fweb%2Fwiklou.git doxygen: Document problem with slashes and fix a few Change-Id: I39f8f394e7421fca71e7d26818f7118e85de7e4f --- diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index 4f1414bc5e..57deb00d21 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -35,22 +35,32 @@ class ResourceLoader { /** @var bool */ protected static $debugMode = null; - /** @var array Module name/ResourceLoaderModule object pairs */ + /** + * Module name/ResourceLoaderModule object pairs + * @var array + */ protected $modules = array(); - /** @var array Associative array mapping module name to info associative array */ + /** + * Associative array mapping module name to info associative array + * @var array + */ protected $moduleInfos = array(); /** @var Config $config */ private $config; /** - * @var array Associative array mapping framework ids to a list of names of test suite modules - * like array( 'qunit' => array( 'mediawiki.tests.qunit.suites', 'ext.foo.tests', .. ), .. ) + * Associative array mapping framework ids to a list of names of test suite modules + * like array( 'qunit' => array( 'mediawiki.tests.qunit.suites', 'ext.foo.tests', .. ), .. ) + * @var array */ protected $testModuleNames = array(); - /** @var array E.g. array( 'source-id' => 'http://.../load.php' ) */ + /** + * E.g. array( 'source-id' => 'http://.../load.php' ) + * @var array + */ protected $sources = array(); /** @var bool */ diff --git a/maintenance/mwdoc-filter.php b/maintenance/mwdoc-filter.php index 8650689160..0cc7bde8a4 100644 --- a/maintenance/mwdoc-filter.php +++ b/maintenance/mwdoc-filter.php @@ -23,7 +23,17 @@ $regexp = '#' . '([^\s]+)' . '\s+' // Any text or line(s) between type hint and '/' closing the comment - // (includes the star of "*/") + // (includes the star of "*/"). Descriptions containing a slash + // are not supported. Those will have to to be rewritten to have their + // description *before* the @var: + // /** + // * Description with / in it. + // * @var array + // */ + // instead of: + // /** + // * @var array Description with / in it. + // */ . '([^/]+)' . '/' . '\s+'