Passed
Push — master ( d0e7a6...44374d )
by Dispositif
02:28
created
src/Infrastructure/BnfAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         }
77 77
 
78 78
         // note : multi-records filtered in BnFMapper
79
-        $nbResults = (int)$xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0;
79
+        $nbResults = (int) $xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0;
80 80
         if (0 === $nbResults) {
81 81
             return null;
82 82
         }
Please login to merge, or discard this patch.
src/Domain/OuvrageComplete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
         if (empty($lienAuteur1)) {
152 152
             return;
153 153
         }
154
-        if(!empty($this->origin->getParam('lien auteur1'))){
154
+        if (!empty($this->origin->getParam('lien auteur1'))) {
155 155
             echo "lien auteur1 existe déjà\n";
156 156
             return;
157 157
         }
Please login to merge, or discard this patch.
src/Application/Examples/CompleteProcess.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,8 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
     private function onlineIsbnSearch(string $isbn, ?string $isbn10 = null)
138 138
     {
139
-        online:
140
-        echo "sleep 10...\n";
139
+        online : echo "sleep 10...\n";
141 140
         sleep(10);
142 141
 
143 142
         try {
@@ -154,7 +153,7 @@  discard block
 block discarded – undo
154 153
                 $this->completeOuvrage($bnfOuvrage);
155 154
 
156 155
                 // Wikidata requests from $infos (ISBN/ISNI)
157
-                if(!empty($bnfOuvrage->getInfos())) {
156
+                if (!empty($bnfOuvrage->getInfos())) {
158 157
                     dump('WIKIDATA...');
159 158
                     $wdComplete = new Wikidata2Ouvrage(clone $bnfOuvrage);
160 159
                     $this->completeOuvrage($wdComplete->getOuvrage());
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
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
             $res = $this->searchByISNI($infos['ISNIAuteur1']);
41 41
         }
42 42
         if (isset($infos['isbn'])) {
43
-            if(!empty($res)) {
43
+            if (!empty($res)) {
44 44
                 sleep(2);
45 45
             }
46 46
             $res = array_merge($res, $this->findArticleByISBN13($infos['isbn']));
Please login to merge, or discard this patch.