@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | if (count($res) >= 2 && empty($auteur2)) { |
| 187 | 187 | // delete author-params |
| 188 | 188 | array_map( |
| 189 | - function ($param) { |
|
| 189 | + function($param) { |
|
| 190 | 190 | $this->unsetParam($param); |
| 191 | 191 | }, |
| 192 | 192 | ['auteur', 'auteurs', 'prénom1', 'nom1'] |
@@ -723,7 +723,7 @@ discard block |
||
| 723 | 723 | // todo bug {{citation bloc}} si "=" ou "|" dans texte de citation |
| 724 | 724 | // Legacy : use {{début citation}} ... {{fin citation}} |
| 725 | 725 | if (preg_match('#[=|]#', $extrait) > 0) { |
| 726 | - $this->ouvrage->externalTemplates[] = (object)[ |
|
| 726 | + $this->ouvrage->externalTemplates[] = (object) [ |
|
| 727 | 727 | 'template' => 'début citation', |
| 728 | 728 | '1' => '', |
| 729 | 729 | 'raw' => '{{Début citation}}'.$extrait.'{{Fin citation}}', |
@@ -732,7 +732,7 @@ discard block |
||
| 732 | 732 | $this->notCosmetic = true; |
| 733 | 733 | } else { |
| 734 | 734 | // StdClass |
| 735 | - $this->ouvrage->externalTemplates[] = (object)[ |
|
| 735 | + $this->ouvrage->externalTemplates[] = (object) [ |
|
| 736 | 736 | 'template' => 'citation bloc', |
| 737 | 737 | '1' => $extrait, |
| 738 | 738 | 'raw' => '{{Citation bloc|'.$extrait.'}}', |
@@ -748,7 +748,7 @@ discard block |
||
| 748 | 748 | // "commentaire=bla" => {{Commentaire biblio|1=bla}} |
| 749 | 749 | if ($this->hasParamValue('commentaire')) { |
| 750 | 750 | $commentaire = $this->getParam('commentaire'); |
| 751 | - $this->ouvrage->externalTemplates[] = (object)[ |
|
| 751 | + $this->ouvrage->externalTemplates[] = (object) [ |
|
| 752 | 752 | 'template' => 'commentaire biblio', |
| 753 | 753 | '1' => $commentaire, |
| 754 | 754 | 'raw' => '{{Commentaire biblio|'.$commentaire.'}}', |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $res = $this->searchByISNI($infos['ISNIAuteur1']); |
| 42 | 42 | } |
| 43 | 43 | if (isset($infos['isbn'])) { |
| 44 | - if(!empty($res)) { |
|
| 44 | + if (!empty($res)) { |
|
| 45 | 45 | sleep(2); |
| 46 | 46 | } |
| 47 | 47 | $res = array_merge($res ?? [], $this->findArticleByISBN13($infos['isbn'])); |