Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function handle() |
||
28 | { |
||
29 | if (in_array($this->template->getParam('auteur1'), ['Rédaction', 'La Rédaction'])) { |
||
30 | $this->template->unsetParam('auteur1'); |
||
31 | } |
||
32 | // doublon auteur - site ou doublon auteur - périodique |
||
33 | if ((WikiTextUtil::unWikify($this->template->getParam('auteur1') ?? '') === WikiTextUtil::unWikify( |
||
34 | $this->template->getParam('site') ?? '' |
||
35 | )) |
||
36 | || (WikiTextUtil::unWikify($this->template->getParam('auteur1') ?? '') === WikiTextUtil::unWikify( |
||
37 | $this->template->getParam('périodique') ?? '' |
||
38 | )) |
||
39 | ) { |
||
40 | $this->template->unsetParam('auteur1'); |
||
41 | } |
||
43 | } |