Aaron Schulz
b3c80a0ff5
filebackend: Clean up TempFSFile and fix IDEA errors
...
Change-Id: I4e25e3bf906fa3a918f4462fac1a6be5e85696aa
2016-03-03 01:25:37 +00:00
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
umherirrender
70f3afd548
Remove unneeded empty lines at begin of if/else/foreach body
...
An if body must not begin with an empty line
Change-Id: I62b058be337fcc85a120fcd3dadce564db59a271
2015-06-19 20:05:45 +02: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
Aaron Schulz
b86b9a6549
Tweaked TempFSFile::bind() param type docs
...
Change-Id: I53de37b3da756ca42447edd60c14cd6d43b56ee2
2015-05-02 00:13:57 +00:00
Chad Horohoe
aa21e125a3
Remove obvious function-level profiling
...
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
2015-01-07 11:14:24 -08:00
Aaron Schulz
603d8970c3
Made TempFSFile try to purge files on fatals too
...
Change-Id: I3e80bea0d869be989c951dfb35a218bb66c9de17
2014-04-21 11:18:39 -07:00
Siebrand Mazeland
8f90b1cfa8
Fix various type and reference issues
...
Change-Id: Iced174d9f94faf80c5fa21e15fa6c81b6d8fa21c
2013-11-23 20:50:02 +01:00
Siebrand Mazeland
34a4bcbd48
Update documentation of file backend classes
...
Change-Id: I2113aecc53f1b361d9c276113bc0a9f7076cd21c
2013-11-23 19:24:43 +01:00
Siebrand Mazeland
a5c35215e2
Update formatting of file backend classes
...
Change-Id: Ie69c324e2f1ea0b8a654adee06ebda494cebd10c
2013-11-22 22:17:15 +01:00
Aaron Schulz
7242d938f3
Cleaned up variable/type order in docs.
...
* A few other minor doc cleanups and obvious type hints.
Change-Id: I454fad0c1942068b4f3632ebd1b605bfbb9dfe7c
2013-06-13 11:18:52 -07:00
Aaron Schulz
ae7483cb6a
[FileBackend] Added chaining ability to some TempFSFile methods.
...
Change-Id: I2700e4def08e58fc0bcfb709de6ce67569820fa0
2012-10-16 10:30:32 -07:00
Aaron Schulz
e6935da3ce
[FileBackend] Tweaked TempFSFile::bind() to handle __get().
...
Change-Id: I0ce288742bba1335bf26ce38fb3b7e441b2d8b1f
2012-10-05 12:56:44 -07:00
Aaron Schulz
b6f5a2904a
Reduced max TempFSFile::factory() attempts since it uses 12 hex chars.
...
Change-Id: I93dd53f391e74b953c89b4225ab691850ccc66ef
2012-09-08 17:10:12 -07:00
Aaron
40dfe74608
[FileBackend] Made TempFSFile use wfRandomString() and be more random.
...
Change-Id: I5bfff8cfb9d1c786490f7539a6cdb47e36d88cc1
2012-08-30 11:05:52 -07:00
Aaron
06a6e1cd34
Added "autocollect" function to TempFSFile.
...
* This is useful for declaring a temp file not generated via factory() as a temp file.
Change-Id: Iaa24ce3c3b0d1f7b3f492377f5bae40a1dd8869a
2012-08-20 12:15:49 -07:00
Aaron
08ea8adc95
Adding more file profiling.
...
Change-Id: Id45e082966f1ed6105918c0732b450faf039cd96
2012-08-16 18:05:01 -07:00
Aaron Schulz
a47892abef
[FileBackend] Moved filerepo/backend/ up to filebackend
...
Change-Id: I62ba23bd22e0f177fb48acaf6bcc38cbffacd3e7
2012-08-08 18:20:57 -07:00