Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace FileImporter\Services\Wikitext; |
4 | |
5 | /** |
6 | * Interface for classes processing wikitext links as found by the WikiLinkParser. |
7 | * |
8 | * @license GPL-2.0-or-later |
9 | * @author Thiemo Kreuz |
10 | */ |
11 | interface WikiLinkCleaner { |
12 | |
13 | /** |
14 | * @param string $link The raw, untrimmed substring found between [[…]] in the wikitext. |
15 | * |
16 | * @return string Should return the original $link in case nothing was done. |
17 | */ |
18 | public function process( string $link ): string; |
19 | |
20 | } |