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
Aaron Schulz
e369f66d00
Replace wfRunHooks calls with direct Hooks::run calls
...
* This avoids the overhead of an extra function call
Change-Id: I8ee996f237fd111873ab51965bded3d91e61e4dd
2014-12-10 12:26:59 -08:00
umherirrender
829886b10a
Fixed some @params documentation
...
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Change-Id: I64e8cfe478cb0ba438f40b0631d6e9049cdab567
2014-04-14 12:59:19 +00:00
addshore
e3c0ab20bf
Split Title and User ArrayFromResult classes to own files
...
Change-Id: I8744627330eb9c8f183a8d418d6eb168e6c5407b
2014-01-26 18:32:43 +00:00
Niklas Laxström
1a3f73dd8c
Make (Title|User)Array implements Countable
...
count( $results ) always returned 1, now expected number
Bug: 58377
Change-Id: I7d6b3bc1b09b46fe60cb5a74c25f9b28fffa5b73
2013-12-12 09:19:19 +00:00
Yuri Astrakhan
9506e3d812
Spellchecked /includes directory
...
* Ran spell-checker over code comments in /includes/
* A few spellchecking fixes for wfDebug() calls
Found one very strange (NOOP?) line in Linker.php - see "TODO: BUG?"
Change-Id: Ibb86b51073b980eda9ecce2cf0b8dd33f058adbf
2013-03-13 03:42:41 -04:00
Alexandre Emsenhuber
2040d1337e
Added missing GPLv2 headers in some places.
...
Also made file/class documentation more consistent.
Change-Id: Ib46e50da4ec649a6a06cbeed00752effb79ed06e
2012-05-09 20:11:36 +02:00
Aaron Schulz
5a6559d8b1
Reverted r108743 per CR comment. This should at least be discussed first.
2012-01-12 19:41:18 +00:00
Sam Reed
a5c200a25b
Kill "* @return void"
2012-01-12 19:12:24 +00:00
Sam Reed
ba0cbdeeff
More parameter documentation!!
2011-05-28 15:59:57 +00:00
Sam Reed
8775ac3b20
Type hinting
...
Braces
Remove extra whitespace
2011-04-25 21:25:45 +00:00
Aryeh Gregor
a42e23da22
Revert r38165 for now, breaks CentralAuth and I don't have that installed anywhere to debug.
2008-07-29 14:53:10 +00:00
Aryeh Gregor
c51f8ce69d
Merge TitleArray and UserArray into one unified class, ObjectArray. Adding support for a new type of object will now just take a few lines.
2008-07-29 00:51:08 +00:00
Aryeh Gregor
7452677213
* Add count() method to TitleArray and UserArray.
...
* Change PageHistory::fetchRevisions() to return a result object instead of an array of rows.
* Stylistic issues: use foreach( $res as $row ) instead of while( $row = $dbr->fetchObject( $res ) ), change a couple of variable names, use __METHOD__.
There should be no functional changes.
2008-07-27 18:59:46 +00:00
Aryeh Gregor
38473966ea
Add TitleArray, a straight rip-off of UserArray. I couldn't figure out how to make them both inherit from ObjectArray or anything, so code duplication works for now.
2008-07-25 19:03:53 +00:00