aboutsummaryrefslogtreecommitdiffstats
path: root/includes/diff/DiffFormatter.php
Commit message (Collapse)AuthorAgeFilesLines
* Move DiffEngine and helpers to includes/libs/Diff and put them in a namespaceTim Starling2023-06-201-252/+0
| | | | | | | I will address the dependencies on MW core in a followup. Bug: T339184 Change-Id: I892364b0c9f15c9de4cfc29c683670c172d71764
* Replace usages of deprecated MWExceptionDaimona Eaytoy2023-06-061-3/+1
| | | | | | | Use SPL exceptions instead when the exception is unchecked. Bug: T328220 Change-Id: Ia1e5edc2ef3269a44b670262b78b305d07559829
* Add missing & to @param documentation to match functon callUmherirrender2017-08-111-1/+1
| | | | Change-Id: I81e68310abcbc59964b22e0e74842d509f6b1fb9
* Remove empty lines at begin of function, if, foreach, switchUmherirrender2017-07-011-1/+0
| | | | | | Organize phpcs.xml a bit Change-Id: Ifb767729b481b4b686e6d6444cf48b1f580cc478
* Convert all array() syntax to []Kunal Mehta2016-02-171-2/+2
| | | | | | | | | | 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
* DiffFormatter: Don't mess with PHP output bufferingKevin Israel2016-01-271-6/+18
| | | | | | | | | | | This is a line-by-line conversion to append to a string property rather than print into a PHP output buffer. The changes to the base class break subclasses such as MobileFrontend's InlineDiffFormatter, which is updated in I81dd01cb. Depends-On: I81dd01cbb9ce11b87115fb1fed511027aee436a1 Change-Id: Idf2a6c593b81a152edec923d4db6272ca1f3f545
* Remove obvious function-level profilingChad Horohoe2015-01-071-4/+0
| | | | | | | | | | | Xhprof generates this data now. Custom profiling of various sub-function units are kept. Calls to profiler represented about 3% of page execution time on Special:BlankPage (1.5% in/out); after this change it's down to about 0.98% of page execution time. Change-Id: Id9a1dc9d8f80bbd52e42226b724a1e1213d07af7
* Fixed some @params documentationumherirrender2014-04-141-2/+2
| | | | | | | | 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: I8c9f30128b46086064326708a4878228ba459447
* Added and updated Doxygen comments in content handler and diff namespacesThiemo Mättig2014-03-061-13/+32
| | | | | | | | | | | | | | | | | | | | | | | Reasons for touching this are: * "@param type $var" were mixed in a lot of places. Both works but the MediaWiki coding conventions suggest that specific order. * Things like String and Bool aren't objects and shouldn't be uppercase. * Tried to fill missing types in "@param $var". * Tried to fill missing descriptions in "@return type" when I could. * Removed duplicate descriptions if a @see is sufficend. * Removed useless descriptions ("isUsefull returns true if usefull"). * Removed useless @return void. * Replaces mixed[] with array (does have the exact same meaning). * Tried to find better replacements for "varargs", phpDocumentor suggest $var,... * Order should be @since, @param, @throws, @return, @see. This is the order Doxygen renders this. There is always more to do but I think this is already much better than before. Please feel free to put more change sets on top of mine or request more changes by adding comments. Change-Id: I05262ce06caabf79f68772302524ac91bbead1c6
* Merge "Initialise variables and update documentation"jenkins-bot2013-11-201-4/+7
|\
| * Initialise variables and update documentationSiebrand Mazeland2013-11-201-4/+7
| | | | | | | | Change-Id: Idb242f65801ee79531c2300cf9fcb5b3929f66ab
* | Rename classes DiffOp_* to DiffOp*Siebrand Mazeland2013-11-201-2/+2
|/ | | | | | | | Part of program to remove underscores from class names. Checked core and 600+ extensions for occurrences. All uses are in core in core are updated in this patch. No uses in extensions. Change-Id: I86b8c6f8702e661554c7b794df09892db94a84d1
* Update formatting for includes/diffSiebrand Mazeland2013-11-201-4/+4
| | | | Change-Id: Id032a32ca6ebea3daf5313a05602c5e98603d983
* Refactor diffsMax Semenik2013-10-301-0/+225
* Move some classes to separate files to avoid having a monstrous file with a dozen classes. * Remove weird underscores from class names. * Instead of prefixing members with underscores, specify visibility explicitly. * Rename c_style -> camelCase per coding conventions. * Throw exceptions instead of fataling out with trigger_error(). * Remove pointless constant used only once. Change-Id: Icac23c0f6259c73f5fe07f201b83b9c332ba0469