@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | */ |
| 37 | 37 | private $options = []; |
| 38 | 38 | |
| 39 | - public function __construct(LoggerInterface $log, ?array $options=[]) |
|
| 39 | + public function __construct(LoggerInterface $log, ?array $options = []) |
|
| 40 | 40 | { |
| 41 | 41 | $this->log = $log; |
| 42 | 42 | $this->options = $options; |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $mapJson['DATA-TYPE'] = 'JSON-LD+META'; |
| 74 | 74 | } |
| 75 | 75 | // récupère "accès url" de OpenGraph (prévaut sur JSON:'isAccessibleForFree' |
| 76 | - if(isset($mapMeta['accès url']) ){ |
|
| 76 | + if (isset($mapMeta['accès url'])) { |
|
| 77 | 77 | $mapJson['accès url'] = $mapMeta['accès url']; |
| 78 | 78 | $mapJson['DATA-TYPE'] = 'JSON-LD+META'; |
| 79 | 79 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $row['id'], |
| 111 | 111 | $this->raw |
| 112 | 112 | ) |
| 113 | - );; |
|
| 113 | + ); ; |
|
| 114 | 114 | $this->queueAdapter->skipRow(intval($row['id'])); |
| 115 | 115 | sleep(10); |
| 116 | 116 | continue; |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | private function sendCompleted() |
| 325 | 325 | { |
| 326 | 326 | $isbn13 = $this->ouvrage->getParam('isbn'); |
| 327 | - if(!empty($isbn)) { |
|
| 327 | + if (!empty($isbn)) { |
|
| 328 | 328 | $isbn13 = substr($isbn13, 0, 19); |
| 329 | 329 | } |
| 330 | 330 | |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | 'modifs' => mb_substr(implode(',', $this->getSummaryLog()), 0, 250), |
| 337 | 337 | 'notcosmetic' => ($this->notCosmetic) ? 1 : 0, |
| 338 | 338 | 'major' => ($this->major) ? 1 : 0, |
| 339 | - 'isbn' => substr($isbn13,0,19), |
|
| 339 | + 'isbn' => substr($isbn13, 0, 19), |
|
| 340 | 340 | 'version' => WikiBotConfig::VERSION ?? null, |
| 341 | 341 | ]; |
| 342 | 342 | $this->log->info('finalData', $finalData); |
@@ -124,8 +124,7 @@ |
||
| 124 | 124 | } |
| 125 | 125 | if (isset($this->summary->memo['count lien brisé'])) { |
| 126 | 126 | $suffix .= ', ⚠️️️lien brisé'; //⚠️ |