| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 41 | public function getSpanInitial(): string |
||
| 42 | { |
||
| 43 | // Identifiant paramétré |
||
| 44 | if (!empty($this->getParam('id'))) { |
||
|
1 ignored issue
–
show
|
|||
| 45 | return $this->getParam('id'); |
||
| 46 | } |
||
| 47 | |||
| 48 | // Identifiant déduit : auteur1,2,3,4,année |
||
| 49 | $id = ''; |
||
| 50 | for ($i = 1; $i < 4; ++$i) { |
||
| 51 | $id .= ($this->getParam('nom'.$i)) ?? $this->getParam('auteur'.$i) ?? ''; |
||
| 52 | } |
||
| 53 | $id .= $this->getParam('année') ?? ''; |
||
| 54 | |||
| 55 | return $id; |
||
| 56 | } |
||
| 59 |