@@ -31,7 +31,7 @@ |
||
| 31 | 31 | { |
| 32 | 32 | protected const USER_RC_LIMIT = 100; |
| 33 | 33 | protected const TASK_NAME = ' |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | public const SLEEP_AFTER_EDITION = 5; // sec |
| 29 | 29 | public const MINUTES_DELAY_AFTER_LAST_HUMAN_EDIT = 10; // minutes |
| 30 | 30 | public const CHECK_EDIT_CONFLICT = true; |
| 31 | - public const ARTICLE_ANALYZED_FILENAME = __DIR__ . '/../resources/article_externRef_edited.txt'; |
|
| 31 | + public const ARTICLE_ANALYZED_FILENAME = __DIR__.'/../resources/article_externRef_edited.txt'; |
|
| 32 | 32 | public const SKIP_ADQ = false; |
| 33 | 33 | public const SKIP_LASTEDIT_BY_BOT = false; |
| 34 | 34 | public const CITATION_NUMBER_ON_FIRE = 15; |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $result = $this->transformer->process($refContent, $this->summary); |
| 78 | 78 | } catch (Throwable $e) { |
| 79 | 79 | $this->log->critical( |
| 80 | - 'Error patate34 ' . $e->getMessage() . " " . $e->getFile() . ":" . $e->getLine(), |
|
| 80 | + 'Error patate34 '.$e->getMessage()." ".$e->getFile().":".$e->getLine(), |
|
| 81 | 81 | ['stats' => 'externref.exception.patate34'] |
| 82 | 82 | ); |
| 83 | 83 | // TODO : parse $e->message -> variable process, taskName, botflag... |
@@ -144,11 +144,11 @@ discard block |
||
| 144 | 144 | $suffix = ''; |
| 145 | 145 | if (isset($this->summary->memo['count article'])) { |
| 146 | 146 | $this->log->stats->increment('externref.count.article'); |
| 147 | - $suffix .= ' ' . $this->summary->memo['count article'] . 'x {article}'; |
|
| 147 | + $suffix .= ' '.$this->summary->memo['count article'].'x {article}'; |
|
| 148 | 148 | } |
| 149 | 149 | if (isset($this->summary->memo['count lien web'])) { |
| 150 | 150 | $this->log->stats->increment('externref.count.lienweb'); |
| 151 | - $suffix .= ' ' . $this->summary->memo['count lien web'] . 'x {lien web}'; |
|
| 151 | + $suffix .= ' '.$this->summary->memo['count lien web'].'x {lien web}'; |
|
| 152 | 152 | } |
| 153 | 153 | if (isset($this->summary->memo['presse'])) { |
| 154 | 154 | $this->log->stats->increment('externref.count.presse'); |
@@ -162,20 +162,20 @@ discard block |
||
| 162 | 162 | $this->log->stats->increment('externref.count.lienbrisé'); |
| 163 | 163 | $suffix .= ' ⚠️️️lien brisé'; //⚠️ |
@@ -54,23 +54,23 @@ |
||
| 54 | 54 | $list = new PageList([trim($argv[1])]); |
| 55 | 55 | |
| 56 | 56 | // delete Title from edited.txt |
| 57 | - $file = __DIR__ . '/../resources/article_externRef_edited.txt'; |
|
| 57 | + $file = __DIR__.'/../resources/article_externRef_edited.txt'; |
|
| 58 | 58 | $text = file_get_contents($file); |
| 59 | - $newText = str_replace(trim($argv[1]) . "\n", '', $text); |
|
| 59 | + $newText = str_replace(trim($argv[1])."\n", '', $text); |
|
| 60 | 60 | if (!empty($text) && $text !== $newText) { |
| 61 | 61 | @file_put_contents($file, $newText); |
| 62 | 62 | } |
| 63 | - $botConfig->setTaskName(' |
|
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | if ($webarchiveDTO->getArchiver() === '[[Internet Archive]]') { |
| 57 | 57 | $this->log->notice(' |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $this->summary->memo['sites'][] = $this->externalPage->getPrettyDomainName(); // ??? |
| 33 | 33 | } |
| 34 | 34 | if (isset($mapData['accès url'])) { |
| 35 | - $this->log->debug('accès |
|