Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
66.67% |
2 / 3 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| ApiFormatNone | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| getMimeType | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| execute | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | /** |
| 3 | * Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@gmail.com" |
| 4 | * |
| 5 | * @license GPL-2.0-or-later |
| 6 | * @file |
| 7 | */ |
| 8 | |
| 9 | namespace MediaWiki\Api; |
| 10 | |
| 11 | /** |
| 12 | * Formatter that outputs nothing, for when you don't care about the response |
| 13 | * at all |
| 14 | * @ingroup API |
| 15 | */ |
| 16 | class ApiFormatNone extends ApiFormatBase { |
| 17 | |
| 18 | /** @inheritDoc */ |
| 19 | public function getMimeType() { |
| 20 | return 'text/plain'; |
| 21 | } |
| 22 | |
| 23 | public function execute() { |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | /** @deprecated class alias since 1.43 */ |
| 28 | class_alias( ApiFormatNone::class, 'ApiFormatNone' ); |