mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-15 03:34:10 +00:00
Remove non-helpful comments
Documenting protected members as protected members is not really helpful. One can see this by looking at the code. Same for documenting a variable named "$html…" as "HTML". This does not add anything. Change-Id: I72364b6857166d77b9c85aa884cd139dc163c6bb
This commit is contained in:
parent
82e4283f02
commit
3f0398e031
|
@ -10,13 +10,9 @@
|
|||
|
||||
class MathChemSymbolsDataModule extends ResourceLoaderModule {
|
||||
|
||||
/* Protected Members */
|
||||
|
||||
protected $origin = self::ORIGIN_USER_SITEWIDE;
|
||||
protected $targets = [ 'desktop', 'mobile' ];
|
||||
|
||||
/* Methods */
|
||||
|
||||
public function getScript( ResourceLoaderContext $context ) {
|
||||
return 've.ui.MWChemDialog.static.setSymbols(' .
|
||||
file_get_contents( __DIR__ . '/modules/ve-math/chemSymbols.json' ) .
|
||||
|
|
|
@ -80,8 +80,8 @@ class MathFormatter implements ValueFormatter {
|
|||
/**
|
||||
* Constructs a detailed HTML rendering for use in diff views.
|
||||
*
|
||||
* @param string $valueHtml HTML
|
||||
* @param string $tex TeX
|
||||
* @param string $valueHtml
|
||||
* @param string $tex
|
||||
*
|
||||
* @return string HTML
|
||||
*/
|
||||
|
|
|
@ -10,13 +10,9 @@
|
|||
|
||||
class MathMathSymbolsDataModule extends ResourceLoaderModule {
|
||||
|
||||
/* Protected Members */
|
||||
|
||||
protected $origin = self::ORIGIN_USER_SITEWIDE;
|
||||
protected $targets = [ 'desktop', 'mobile' ];
|
||||
|
||||
/* Methods */
|
||||
|
||||
public function getScript( ResourceLoaderContext $context ) {
|
||||
return 've.ui.MWMathDialog.static.setSymbols(' .
|
||||
file_get_contents( __DIR__ . '/modules/ve-math/mathSymbols.json' ) .
|
||||
|
|
|
@ -121,7 +121,6 @@ abstract class MathRenderer {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $md5
|
||||
* @return MathRenderer the MathRenderer generated from md5
|
||||
*/
|
||||
|
@ -555,7 +554,6 @@ abstract class MathRenderer {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $mathStyle ('inlineDisplaystyle'|'display'|'inline')
|
||||
*/
|
||||
public function setMathStyle( $mathStyle = 'display' ) {
|
||||
|
|
|
@ -34,7 +34,6 @@ class MathMLRdfBuilderTest extends MediaWikiTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $test
|
||||
* @return string
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue