Commit graph

13 commits

Author SHA1 Message Date
kaldari
18ccd7842f Adding and improving function and param descriptions in HtmlFormatter
The change only includes documentation changes, no code changes.

Change-Id: Ie1fdfcc774883882f50fd53d3cb32ade7f0bad34
2014-06-25 14:40:13 -07:00
Siebrand Mazeland
e9eb00b203 Make phpcs-strict pass on includes/ (1/~10)
Change-Id: Ib51381a2261d064988ba2f39b71c0252f2458faf
2014-05-11 19:14:17 +00:00
Max Semenik
591a44ba54 HtmlFormatter: fix check for empty ruleset
This ensures that no unneeded HTML parse will occur

Change-Id: I2fae4bea555f823e5244c1430f9f3f43a3f78b71
2014-05-01 13:54:49 -07:00
Max Semenik
0205678fcf HtmlFormatter::filterContent() should always return an array
Follow-up to 6289f3c48c

Change-Id: Iac9c1440ac19590f778fc50c75b73da04a190f59
2014-04-24 15:09:34 -07:00
Nik Everett
6289f3c48c Make HtmlFormatter return removed elements
This shouldn't cause much overhead and is useful for getting the text of
the removed tags.

Change-Id: I97cf66014719244b8bb2b0509b419c82202bdb01
2014-04-18 09:23:03 -04:00
Max Semenik
c10d5a91e0 HtmlFormatter fixes
* Don't fixup HTML if  it hasn't been ruined by libxml2
* More detailed profiling

Change-Id: Ieabce23819f7563fdf17e3f1dfd621d853dae589
2014-04-14 18:31:20 -07:00
umherirrender
725d9d125d Removed unneeded spaces and colons in @param and friends
Also 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: Ic36c8c7820a6c2d603f1138130670c6bf6a1ca59
2014-04-08 16:02:49 +00:00
umherirrender
0bc583af2c Move closing parenthesis from multi line if and function to own line
The Line continuation Coding conventions prefers the closing parenthesis
on the same line than the beginning curly braces. This is done for ifs
and functions.
Also move some boolean operator from the end of a line to the beginning
and changed some indentation to make the condition hopefully better
readable.

Change-Id: Id0437b06bde86eb5a75bc59eefa19e7edb624426
2013-12-01 21:39:00 +01:00
jenkins-bot
71426647cc Merge "libxml_disable_entity_loader() just in case..." 2013-09-23 19:44:22 +00:00
Max Semenik
6116877eef libxml_disable_entity_loader() just in case...
Change-Id: I5c6394f811f9cd14dc549d005b4583d7575e85aa
2013-09-23 23:25:26 +04:00
Brion Vibber
f6c9c2e044 Fix missing wfProfileOut call in HtmlFormatter
Followup to missing call in Ic276e1604c5718e8568e120ddfb9a8fc13a682fc

Change-Id: I69623d565826aacaa884c1c0a3ffec46ca1fb465
2013-09-23 12:14:45 -07:00
Brion Vibber
d2929102bd Fix doc for HtmlFormatter
Bug: 54473
Change-Id: I96d76eb2d372fb3997c432196e7c4cc4e2984bfb
2013-09-23 17:52:31 +00:00
Max Semenik
19627682ac Move HtmlFormatter from MobileFrontend
This class is needed by CirrusSearch, another application will be API
prop=extracts which doesn't really belong to MobileFrontend and will also
be integrated into core soon.

Change-Id: Ic276e1604c5718e8568e120ddfb9a8fc13a682fc
2013-09-20 11:52:46 -07:00