| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 58 | public function deleteAllReports(string $text): string |
||
| 59 | { |
||
| 60 | $pattern = sprintf( |
||
| 61 | '#== Ouvrage avec erreur de paramètre ==(.*)Le robot \[\[Utilisateur:%s\|%s\]\] \(\[\[Discussion utilisateur:%s\|discuter\]\]\) [0-9a-zéà: ]+ \(CET\)[\n]*#s', |
||
| 62 | self::BOTNAME, |
||
| 63 | self::BOTNAME, |
||
| 64 | self::BOTNAME |
||
| 65 | ); |
||
| 66 | // option s : dot matches new lines |
||
| 67 | $text = preg_replace( |
||
| 68 | $pattern, |
||
| 69 | '', |
||
| 70 | $text |
||
| 71 | ); |
||
| 72 | |||
| 73 | return $text; |
||
| 74 | } |
||
| 77 |