@@ -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 | } |
@@ -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"; |