@@ -76,7 +76,7 @@ |
||
| 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 | } |
@@ -151,7 +151,7 @@ |
||
| 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 | } |
@@ -136,8 +136,7 @@ discard block |
||
| 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 |
||
| 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()); |
@@ -40,7 +40,7 @@ |
||
| 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'])); |