Test Failed
Branch master (c8a89b)
by Dispositif
04:54 queued 01:58
created
src/Domain/OuvrageOptimize.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.'}}',
Please login to merge, or discard this patch.
src/Infrastructure/WikidataAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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']));
Please login to merge, or discard this patch.