aboutsummaryrefslogtreecommitdiffstats
path: root/includes/utils/BatchRowUpdate.php
Commit message (Collapse)AuthorAgeFilesLines
* Replace call_user_func with dynamic function callUmherirrender2025-02-131-1/+1
| | | | | | | | Use modern php syntax to call a callable. Reduce the stack trace to improve performance and better IDE and static analyzer support Change-Id: I9ef131032a662a3b8db69aa7079dbd51f88f575a
* Use static closures where safe to useUmherirrender2021-02-111-1/+1
| | | | | | | | | This is micro-optimization of closure code to avoid binding the closure to $this where it is not needed. Created by I25a17fb22b6b669e817317a0f45051ae9c608208 Change-Id: I0ffc6200f6c6693d78a3151cb8cea7dce7c21653
* doxygen: Changed Doxygen tags causing warnings during documentation generationHolger Knust2020-04-141-4/+4
| | | | | | | | | | | Updated Doxygen markup in several .php files triggering warnings when mwdocgen.php is executed. Removed obsolete settings MSCGEN_PATH and TCL_SUBST from Doxyfile. The former would generate a warning in 1.8.16 while TCL support was removed in 1.8.18. Since TCL_SUBST was blank anyway, it was removed prior to getting to .18 in production. Increased DOT_GRAPH_MAX_NODES from 50 to 200 since Doxygen complained about it being too low for API and Maintenance. Bug: T248706 Change-Id: I9c67f0807d1b43089d351263d4f591dee5501f36
* Fix/suppress misc phan errors (#2)Kunal Mehta2019-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | * Title: phan false positive * McrUndoAction: fixed improper use of @param * UploadSourceAdapter: fixed wrong type * XmlTypeCheck: Use null so phan doesn't think we're trying to call the function '' * Database: phan false positive * SpecialBlock: Use phan's advanced type documentation so phan knows specifically what's being returned * ChangesListSpecialPage: phan false positive * BatchRowUpdate: Have default callback take a parameter so phan doesn't think too many arguments are being passed * MimeAnalyzer: left FIXME for relying on PHP 7.1 unpack() signature * LanguageConverter: Specify types for $mTables since phan couldn't determine it automatically * preprocessorFuzzTest: Implement User::load() method signature Change-Id: I08080ab636c5fe67ea6a4e14b2212d7523606e21
* Fix spacing for @param and indent of function commentsUmherirrender2017-08-151-2/+2
| | | | | | | In phpcs.xml rename renamed sniffs and add the failing sniffs, because now the whole sniff is no longer excluded. Change-Id: If5b0bd16028761abc2c47ace9e97d37ad14bb36f
* build: Prepare for mediawiki/mediawiki-codesniffer to 0.9.0Umherirrender2017-06-261-1/+1
| | | | | | | | | | | | The used phpcs has a bug, so the version 0.9.0 could not be enforced at the moment. Will be fixed in next version, see T167168 Changed: - Remove duplicate newline at end of file - Add space between function and ( for closures - and -> &&, or -> || Change-Id: I4172fb08861729bccd55aecbd07e029e2638d311
* Remove some MediaWiki dependencies on utils/BatchRow*Kunal Mehta2016-10-161-8/+1
| | | | Change-Id: I35279875891630157c651e6575770ca4607bc168
* Change "slave" => "replica DB" in /includesAaron Schulz2016-09-051-1/+1
| | | | Change-Id: Icb716219c9335ff8fa447b1733d04b71d9712bf9
* Convert all array() syntax to []Kunal Mehta2016-02-171-3/+3
| | | | | | | | | | 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
* Make lines short to pass phpcs in six files under includes/Amir E. Aharoni2015-09-261-1/+3
| | | | | Bug: T102614 Change-Id: I91a2d4f4bf86a22c8bb466da0e2f95ea27c571a3
* Import BatchRowUpdate classes from EchoErik Bernhardson2015-08-131-0/+133
This is a set of classes written for Echo to simplify writing maintenance scripts that iterate over an entire table and update some of those rows. This has shown to be reusable elsewhere, especially the BatchRowIterator class and will be useful to have generally avilable in core. The Echo classes are all prefixed with the Echo name so there wont be any conflict is both are installed. Change-Id: I64c1751106caf34f41af799dbaf8794115537f06