Commit graph

35 commits

Author SHA1 Message Date
Ladsgroup
16a5102765 Change URLs to mediawiki.org in comments to HTTPS
These are only documentation fixes
http://www.mediawiki.org --> https://www.mediawiki.org

Change-Id: I62ad42be1a3aac410cc53e98ce79389ceddd8988
2014-03-20 16:59:46 +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
bd36998440 Use capital for classes Languages and ExtensionLanguages
Searched core and 600+ extensions for uses. Found no more.

Class names are case-insensitive anyway.

Change-Id: I296d39be9aa3a2690f80a23691b34394aa1c6637
2013-11-11 15:51:29 +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
Timo Tijhof
beb1c4a0ec phpcs: More require/include is not a function
Follows-up I1343872de7, Ia533aedf63 and I2df2f80b81.

Also updated usage in text in documentation and the
installer LocalSettingsGenerator.

Most of them were handled by this regex:
- find: (require|include|require_once|include_once)\s*\(\s*(.+?)\s*\)\s*;$
- replace: $1 $2;

Change-Id: I6b38aad9a5149c9c43ce18bd8edbab14b8ce43fa
2013-05-21 23:26:28 +02:00
Timo Tijhof
50e7985d4d phpcs: Fix WhiteSpace.LanguageConstructSpacing warnings
Squiz.WhiteSpace.LanguageConstructSpacing:
   Language constructs must be followed by a single space;
   expected "require_once expression" but found
   "require_once(expression)"

It is a keyword (e.g. like `new`, `return` and `print`). As
such the parentheses don't make sense.

Per our code conventions, we use a space after keywords like
these. We appeared to have an unwritten exception for `require`
that doesn't make sense. About 60% of require/include usage
was missing the space and/or had superfluous parentheses.

It is as silly as print("foo") or return("foo"), it works
because keywords have no significance for whitespace between
it and the expression that follows, and since experessions can
be wrapped in parentheses for clarity (e.g. when doing string
concatenation or mathematical operations) the parenthesis
before and after basiclaly just ignored.

Change-Id: I2df2f80b8123714bea7e0771bf94b51ad5bb4b87
2013-05-09 05:56:26 +02:00
umherirrender
bfb75bc8e2 Fixed spacing around parenthesis in languages/tests/maintenance
Change-Id: Idd4299d17f1fcf98ab1d635484cb4e880f35ee24
2013-04-28 15:57:34 +00:00
jeroendedauw
38c7f444e1 Use __DIR__ instead of dirname( __FILE__ )
We can now do this since we finally switched to PHP 5.3 for MW 1.20 and get rid of the silly dirname(__FILE__) stuff :)

Change-Id: Id9b2c9cd2e678197aa81c78adced5d1d31ff57b1
2012-08-27 21:45:00 +02:00
Robin Pepermans
9184dc83d6 Update core usage of getLanguageName[s]. 2012-03-08 20:56:26 +00:00
Siebrand Mazeland
997ebb67a7 Remove trailing newlines. 2012-02-20 09:57:23 +00:00
Robin Pepermans
4775997ec4 Make $wgDummyLanguageCodes an associative array so it maps to the correct codes; and use it in WikimediaIncubator to check whether the wiki exists (so e.g. Wx/sgs recognizes that the wiki corresponding to Wx/bat-smg exists). The extension is compatible with the old $wgDummyLanguageCodes array. 2011-11-19 05:18:32 +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
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
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
Tim Starling
c5fc589257 Replaced all instances of <<<END (which breaks vim syntax highlighting), with a type-specific end token. For HTML and SQL, this causes vim to highlight the embedded text with the HTML or SQL file type plugins respectively, which is very neat. 2009-12-07 08:51:52 +00:00
Max Semenik
a6cda4b42b Updated links for pages moved from Meta to mw.org, tweaked doc a bit in one case (extensions/ConfirmEdit/MathCaptcha) 2009-12-05 15:03:20 +00:00
Shinjiman
ee08cdf2a8 added fallback code display on the translation statistics. 2009-05-23 18:02:34 +00:00
Niklas Laxström
0b822cd05c Rename $wgOut to $output to avoid collision, wfDebug expects $wgOut to be OutputPage object 2009-05-02 09:56:51 +00:00
Chad Horohoe
221967100c (bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate 2009-04-06 14:41:33 +00:00
Rotem Liss
8a4f563606 Recommiting r47578, fixed. 2009-02-21 10:18:45 +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
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Niklas Laxström
7e9320a0b3 * Added clear: both; to the style 2007-03-07 13:21:08 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Aryeh Gregor
ee78b1f7d6 Move language code to its own column in transstat.php for better sortability 2007-01-01 18:26:02 +00:00
Antoine Musso
6328b5b5c5 Update to use sortable tables (patch from meta.wikimedia.org) 2006-12-16 21:28:57 +00:00
Rotem Liss
a8c01562d5 Fixing the commandLine.inc inclusion to be like the other files. 2006-11-12 16:33:29 +00:00
Rotem Liss
26ac68a5ac Fixes. 2006-10-10 20:26:28 +00:00
Rotem Liss
e5d021b97c Fixes for the translation statistics script - HTML, organisation, etc. 2006-10-08 06:40:37 +00:00
Jimmy Collins
8d66c4d82b moved transstat.php to maintenance/language/ 2006-10-04 19:18:31 +00:00
Renamed from maintenance/transstat.php (Browse further)