Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| AbuseFilterSuppressLogFormatter | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
| getMessageKey | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
6 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Extension\AbuseFilter\LogFormatter; |
| 4 | |
| 5 | use MediaWiki\Logging\LogFormatter; |
| 6 | |
| 7 | class AbuseFilterSuppressLogFormatter extends LogFormatter { |
| 8 | |
| 9 | /** |
| 10 | * @return string |
| 11 | */ |
| 12 | protected function getMessageKey() { |
| 13 | if ( $this->entry->getSubtype() === 'unhide-afl' ) { |
| 14 | return 'abusefilter-log-entry-unsuppress'; |
| 15 | } else { |
| 16 | return 'abusefilter-log-entry-suppress'; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | } |