Commit graph

32 commits

Author SHA1 Message Date
Kunal Mehta
6e9b4f0e9c Convert all array() syntax to []
Per wikitech-l consensus:
 https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html

Notes:
* Disabled CallTimePassByReference due to false positives (T127163)

Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Kunal Mehta
f6e5079a69 Use mediawiki/at-ease library for suppressing warnings
wfSuppressWarnings() and wfRestoreWarnings() were split out into a
separate library. All usages in core were replaced with the new
functions, and the wf* global functions are marked as deprecated.

Additionally, some uses of @ were replaced due to composer's autoloader
being loaded even earlier.

Ie1234f8c12693408de9b94bf6f84480a90bd4f8e adds the library to
mediawiki/vendor.

Bug: T100923
Change-Id: I5c35079a0a656180852be0ae6b1262d40f6534c4
2015-06-11 18:49:29 +00:00
Ricordisamoa
fc5fd5c37a Typo fixes and non-code tweaks
Skipped replacements:
* prefered → preferred
* prolly → probably

Skipped files:
* resources/lib/jquery.ui/jquery.ui.mouse.js
* resources/lib/jquery/jquery.form.js

Change-Id: Ib7923f362ddfca1b892bf5d601785d6b5aa5d44c
2014-12-12 18:31:15 +00:00
Siebrand Mazeland
5a77286a1e Update formatting in maintenance/ (3/4)
Change-Id: I4390c4ea12a6a626b0e6817b6446635116ca9fe3
2014-04-23 20:09:13 +02:00
Platonides
bd34f36dfc Use the class name with capital letter
Change-Id: I97577cb085a47d58fd3de96ab77da68ebe482d6a
2013-11-23 18:02:40 +00:00
jenkins-bot
35b74b4325 Merge "Use capital as first letter for class names" 2013-11-13 16:09:09 +00:00
jenkins-bot
a3358017b6 Merge changes I296d39be,I67bccf82
* changes:
  Use capital for classes Languages and ExtensionLanguages
  Break long lines
2013-11-13 16:05:53 +00:00
Siebrand Mazeland
f962c5db64 Use suppress/restoreWarnings()
Instead of @

Change-Id: I0c422e452636ae1af664b24c0859d038592e0e8a
2013-11-11 16:00:10 +00:00
Siebrand Mazeland
fcddaf3e65 Use capital as first letter for class names
Searched extensions and there is a follow-up for Translate extension. Because class
names are not case-sensitive, this change is backwards-compatible.

Change-Id: Ice6c8beea4fba5c00278c063e4f6198294efabdc
2013-11-11 15:59:17 +00:00
Siebrand Mazeland
c6f256a8f7 Break long lines
Also:
* Remove an unneeded constant MEDIAWIKI check in a file with all classes.
* Document some variables.

Reduces PHP CodeSniffer errors and warnings.

Change-Id: I67bccf82e90302d13ad8fd04c8a4b75ac5edd984
2013-11-11 15:49:30 +00:00
Siebrand Mazeland
7abb017ad6 Update formatting
Change-Id: Ia730172478f7f73c02ff3ae30c36e73fb929974b
2013-11-11 16:24:24 +01:00
umherirrender
b114f5e1c1 Fixed some spacing in maintenance folder
Added spaces before if, foreach
Added some braces for one line statements

Change-Id: I9657f72996358f8c1c154cea1ea97970d973723c
2013-04-18 20:48:44 +02:00
robin
bf13ec7ccd Replace deprecated HTML attributes
Replace deprecated bgcolor="" with style="background-color:;", and remove deprecated cellpadding and cellspacing (which is not needed since the wikitable class is used).

Change-Id: I0f332fb520ea88e3d3f1abce3c423f95a5c224c8
2012-11-18 03:52:39 +01:00
Robin Pepermans
9184dc83d6 Update core usage of getLanguageName[s]. 2012-03-08 20:56:26 +00:00
Robin Pepermans
7b8240ae5f Follow-up r103640 2011-12-18 19:20:41 +00:00
Antoine Musso
c1f23144e1 using real identity for hashar
Converting my pseudonym to use my real identity instead:
Ashar Voultoiz -> Antoine Musso
2011-10-24 09:08:13 +00:00
Sam Reed
bb1df74f87 Fix numerous undefined variables 2011-07-01 01:42:48 +00:00
Robin Pepermans
7a844a6863 localization statistics (transstat.php) now excludes language codes in $wgDummyLanguageCodes (they have always 0%), with a list of them in the description. 2011-06-24 00:07:57 +00:00
Alexandre Emsenhuber
9f5d06527c Part of bug 26280: added license headers to PHP files in maintenance 2010-12-16 19:15:12 +00:00
Antoine Musso
58ae12601a update my personal email address (following r73779) 2010-09-27 18:46:16 +00:00
Sam Reed
dc360b4cef Change statsOutput to parent, wikiStatsOutput is a subclass of statsOutput 2010-08-06 14:12:41 +00:00
Siebrand Mazeland
062839df85 Weigh reverse with factor 20 so coloring takes effect more quickly. 2010-08-03 18:42:14 +00:00
Platonides
10ed39657b Remove unused global $IP 2010-07-28 12:11:46 +00:00
Siebrand Mazeland
d8f23e62b0 Revert r69841, r69882, r69892, r69896, r69910 in phase3/maintenance/language because rebuildLanguage.php was broken.
This prevented message updates by Raymond from translatewiki.net.

Reported issues:
* Warning: in_array() expects parameter 2 to be array, null given in maintenance\language\languages.inc on line 173
* Warning: in_array() expects parameter 2 to be array, null given in maintenance\language\languages.inc on line 175
* Warning: in_array(): Wrong datatype for second argument in phase3\maintenance\language\languages.inc on line 175
2010-07-26 20:29:55 +00:00
Sam Reed
3a76259f4d Change some more to parent:: 2010-07-25 21:02:56 +00:00
Platonides
df22352a20 Remove unused globals. 2010-07-25 19:36:35 +00:00
Sam Reed
659778619c Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
Alexandre Emsenhuber
dfde2d2232 removed --output=metawiki from maintenance/language/transstat.php; we don't use http://meta.wikimedia.org/wiki/Localization_statistics since ages 2009-12-26 15:11:41 +00:00
Niklas Laxström
8e4b0987ce * Same hack for transstat.php as in r50125 2009-05-07 07:47:46 +00:00
Siebrand Mazeland
7f1016dab8 Remove some unneeded spaces in output 2009-02-10 23:58:16 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Niklas Laxström
894fb23650 * Split Stat outputs to different file for better re-usability 2007-12-23 20:10:50 +00:00