@@ -19,7 +19,7 @@ |
||
| 19 | 19 | const MODEL_NAME = 'lien web'; |
| 20 | 20 | |
| 21 | 21 | const REQUIRED_PARAMETERS |
| 22 | - = [ |
|
| 22 | + = [ |
|
| 23 | 23 | // 'langue' => '', // suggéré |
| 24 | 24 | // 'auteur1' => '', // suggéré |
| 25 | 25 | 'titre' => '', // required |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | ['{{Ouvrage |
| 54 | 54 | | langue=fr |
| 55 | 55 | }}', |
| 56 | - "\n | ", |
|
| 56 | + "\n | ", |
|
| 57 | 57 | ], |
| 58 | 58 | ]; |
| 59 | 59 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | } |
| 26 | 26 | try{ |
| 27 | 27 | $newText = $response->getBody()->getContents(); |
| 28 | -}catch (Throwable $e){ |
|
| 28 | +} catch (Throwable $e){ |
|
| 29 | 29 | dump($e); |
| 30 | 30 | die; |
| 31 | 31 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | // { |
| 130 | 130 | // $value = $this->getParam($param); |
| 131 | 131 | // // note : strval() condition because intval('4c') = 4 |
| 132 | - // opti : $number can also be of type double |
|
| 132 | + // opti : $number can also be of type double |
|
| 133 | 133 | // if ($value && intval($value) > 0 && intval($value) <= 10 && strval(intval($value)) === $value) { |
| 134 | 134 | // $number = abs(intval($value)); |
| 135 | 135 | // $roman = NumberUtil::arab2roman($number); |
@@ -473,8 +473,8 @@ discard block |
||
| 473 | 473 | $this->log('°titre'); |
| 474 | 474 | } |
| 475 | 475 | |
| 476 | - // desactivé à cause de l'exception décrite ci-dessus |
|
| 477 | - // si langue=VIDE : ajout langue= à partir de langue titre |
|
| 476 | + // desactivé à cause de l'exception décrite ci-dessus |
|
| 477 | + // si langue=VIDE : ajout langue= à partir de langue titre |
|
| 478 | 478 | // if (self::WIKI_LANGUAGE !== $lang && empty($this->getParam('langue'))) { |
| 479 | 479 | // $this->setParam('langue', $lang); |
| 480 | 480 | // $this->log('+langue='.$lang); |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $replacement = str_replace('{{extrait', '{{Citation bloc', $template); |
| 44 | 44 | echo ">".$replacement."\n"; |
| 45 | 45 | $newText = str_replace($template, $replacement, $newText); |
| 46 | - }else{ |
|
| 46 | + } else{ |
|
| 47 | 47 | // {Début citation} et {{Fin citation}} |
| 48 | 48 | $replacement = str_replace('{{extrait|', '{{Début citation}}', $template.'{{Fin citation}}'); |
| 49 | 49 | echo ">".$replacement."\n"; |