@@ -11,5 +11,5 @@ |
||
11 | 11 | |
12 | 12 | interface ExternHttpClientInterface |
13 | 13 | { |
14 | - public function getHTML(string $url, ?bool $normalized=false): ?string; |
|
14 | + public function getHTML(string $url, ?bool $normalized = false): ?string; |
|
15 | 15 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | public const SLEEP_AFTER_EDITION = 15; // sec |
26 | 26 | public const MINUTES_DELAY_AFTER_LAST_HUMAN_EDIT = 10; // minutes |
27 | 27 | public const CHECK_EDIT_CONFLICT = true; |
28 | - public const ARTICLE_ANALYZED_FILENAME = __DIR__ . '/resources/article_externRef_edited.txt'; |
|
28 | + public const ARTICLE_ANALYZED_FILENAME = __DIR__.'/resources/article_externRef_edited.txt'; |
|
29 | 29 | public const SKIP_ADQ = false; |
30 | 30 | public const SKIP_LASTEDIT_BY_BOT = false; |
31 | 31 | public const CITATION_NUMBER_ON_FIRE = 15; |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $result = $this->transformer->process($refContent, $this->summary); |
73 | 73 | } catch (Throwable $e) { |
74 | 74 | echo "** Problème détecté 234242\n"; |
75 | - $this->log->critical($e->getMessage() . " " . $e->getFile() . ":" . $e->getLine()); |
|
75 | + $this->log->critical($e->getMessage()." ".$e->getFile().":".$e->getLine()); |
|
76 | 76 | |
77 | 77 | // TODO : parse $e->message pour traitement, taskName, botflag... |
78 | 78 | return $refContent; |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | |
85 | 85 | // Gestion semi-auto : todo CONDITION POURRI FAUSSE $this->transformer->skipUnauthorised |
86 | 86 | |
87 | - echo Color::BG_LIGHT_RED . "--" . Color::NORMAL . " " . $refContent . "\n"; |
|
88 | - echo Color::BG_LIGHT_GREEN . "++" . Color::NORMAL . " $result \n\n"; |
|
87 | + echo Color::BG_LIGHT_RED."--".Color::NORMAL." ".$refContent."\n"; |
|
88 | + echo Color::BG_LIGHT_GREEN."++".Color::NORMAL." $result \n\n"; |
|
89 | 89 | |
90 | 90 | if (!$this->autoOrYesConfirmation('Conserver cette modif ?')) { |
91 | 91 | return $refContent; |
@@ -116,10 +116,10 @@ discard block |
||
116 | 116 | $prefixSummary = ($this->summary->isBotFlag()) ? 'bot ' : ''; |
117 | 117 | $suffix = ''; |
118 | 118 | if (isset($this->summary->memo['count article'])) { |
119 | - $suffix .= ' ' . $this->summary->memo['count article'] . 'x {article}'; |
|
119 | + $suffix .= ' '.$this->summary->memo['count article'].'x {article}'; |
|
120 | 120 | } |
121 | 121 | if (isset($this->summary->memo['count lien web'])) { |
122 | - $suffix .= ' ' . $this->summary->memo['count lien web'] . 'x {lien web}'; |
|
122 | + $suffix .= ' '.$this->summary->memo['count lien web'].'x {lien web}'; |
|
123 | 123 | } |
124 | 124 | if (isset($this->summary->memo['presse'])) { |
125 | 125 | $suffix .= ' |