@@ -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->taskName = ' |
|
@@ -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; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | try { |
| 76 | 76 | $result = $this->transformer->process($refContent, $this->summary); |
| 77 | 77 | } catch (Throwable $e) { |
| 78 | - $this->log->critical('Error patate34 ' . $e->getMessage() . " " . $e->getFile() . ":" . $e->getLine()); |
|
| 78 | + $this->log->critical('Error patate34 '.$e->getMessage()." ".$e->getFile().":".$e->getLine()); |
|
| 79 | 79 | // TODO : parse $e->message -> variable process, taskName, botflag... |
| 80 | 80 | |
| 81 | 81 | return $refContent; |
@@ -133,10 +133,10 @@ discard block |
||
| 133 | 133 | $prefixSummary = ($this->summary->isBotFlag()) ? 'bot ' : ''; |
| 134 | 134 | $suffix = ''; |
| 135 | 135 | if (isset($this->summary->memo['count article'])) { |
| 136 | - $suffix .= ' ' . $this->summary->memo['count article'] . 'x {article}'; |
|
| 136 | + $suffix .= ' '.$this->summary->memo['count article'].'x {article}'; |
|
| 137 | 137 | } |
| 138 | 138 | if (isset($this->summary->memo['count lien web'])) { |
| 139 | - $suffix .= ' ' . $this->summary->memo['count lien web'] . 'x {lien web}'; |
|
| 139 | + $suffix .= ' '.$this->summary->memo['count lien web'].'x {lien web}'; |
|
| 140 | 140 | } |
| 141 | 141 | if (isset($this->summary->memo['presse'])) { |
| 142 | 142 | $suffix .= ' |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | { |
| 32 | 32 | protected const USER_RC_LIMIT = 100; |
| 33 | 33 | protected const TASK_NAME = ' |