@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | if (count($res) >= 2 && empty($auteur2)) { |
| 163 | 163 | // delete author-params |
| 164 | 164 | array_map( |
| 165 | - function ($param) { |
|
| 165 | + function($param) { |
|
| 166 | 166 | $this->unsetParam($param); |
| 167 | 167 | }, |
| 168 | 168 | ['auteur', 'auteurs', 'prénom1', 'nom1'] |
@@ -599,7 +599,7 @@ discard block |
||
| 599 | 599 | // todo detect duplication ouvrage/plume dans externalTemplate ? |
| 600 | 600 | if (!empty($this->getParam('plume'))) { |
| 601 | 601 | $plumeValue = $this->getParam('plume'); |
| 602 | - $this->ouvrage->externalTemplates[] = (object)[ |
|
| 602 | + $this->ouvrage->externalTemplates[] = (object) [ |
|
| 603 | 603 | 'template' => 'plume', |
| 604 | 604 | '1' => $plumeValue, |
| 605 | 605 | 'raw' => '{{nobr|. {{plume}}}}', |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | // todo bug {{citation bloc}} si "=" ou "|" dans texte de citation |
| 615 | 615 | // Legacy : use {{début citation}} ... {{fin citation}} |
| 616 | 616 | if (preg_match('#[=|]#', $extrait) > 0) { |
| 617 | - $this->ouvrage->externalTemplates[] = (object)[ |
|
| 617 | + $this->ouvrage->externalTemplates[] = (object) [ |
|
| 618 | 618 | 'template' => 'début citation', |
| 619 | 619 | '1' => '', |
| 620 | 620 | 'raw' => '{{début citation}}'.$extrait.'{{fin citation}}', |
@@ -623,7 +623,7 @@ discard block |
||
| 623 | 623 | $this->notCosmetic = true; |
| 624 | 624 | } else { |
| 625 | 625 | // StdClass |
| 626 | - $this->ouvrage->externalTemplates[] = (object)[ |
|
| 626 | + $this->ouvrage->externalTemplates[] = (object) [ |
|
| 627 | 627 | 'template' => 'citation bloc', |
| 628 | 628 | '1' => $extrait, |
| 629 | 629 | 'raw' => '{{extrait|'.$extrait.'}}', |
@@ -639,7 +639,7 @@ discard block |
||
| 639 | 639 | // "commentaire=bla" => {{Commentaire biblio|1=bla}} |
| 640 | 640 | if (!empty($this->getParam('commentaire'))) { |
| 641 | 641 | $commentaire = $this->getParam('commentaire'); |
| 642 | - $this->ouvrage->externalTemplates[] = (object)[ |
|
| 642 | + $this->ouvrage->externalTemplates[] = (object) [ |
|
| 643 | 643 | 'template' => 'commentaire biblio', |
| 644 | 644 | '1' => $commentaire, |
| 645 | 645 | 'raw' => '{{commentaire biblio|'.$commentaire.'}}', |