@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | use Mediawiki\Api\MediawikiFactory; |
| 17 | 17 | use Normalizer; |
| 18 | 18 | |
| 19 | -include __DIR__ . '/../myBootstrap.php'; |
|
| 19 | +include __DIR__.'/../myBootstrap.php'; |
|
| 20 | 20 | |
| 21 | 21 | $process = new Monitor(); |
| 22 | 22 | $process->run(); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | [ |
| 98 | 98 | 'page' => $title ?? '', |
| 99 | 99 | 'verify' => date("Y-m-d H:i:s"), |
| 100 | - 'altered' => (int)$stat, |
|
| 100 | + 'altered' => (int) $stat, |
|
| 101 | 101 | ] |
| 102 | 102 | ); |
| 103 | 103 | } |
@@ -147,6 +147,6 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | - return (int)round(($count - $found) / count($data) * 100); |
|
| 150 | + return (int) round(($count - $found) / count($data) * 100); |
|
| 151 | 151 | } |
| 152 | 152 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | protected const USER_RC_LIMIT = 100; |
| 28 | 28 | protected const TASK_NAME = ' |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | public const SLEEP_AFTER_EDITION = 15; // 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; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $result = $this->transformer->process($refContent, $this->summary); |
| 62 | 62 | } catch (Throwable $e) { |
| 63 | 63 | echo "** Problème détecté 234242\n"; |
| 64 | - $this->log->critical($e->getMessage() . " " . $e->getFile() . ":" . $e->getLine()); |
|
| 64 | + $this->log->critical($e->getMessage()." ".$e->getFile().":".$e->getLine()); |
|
| 65 | 65 | // TODO : parse $e->message -> variable process, taskName, botflag... |
| 66 | 66 | |
| 67 | 67 | return $refContent; |
@@ -121,10 +121,10 @@ discard block |
||
| 121 | 121 | $prefixSummary = ($this->summary->isBotFlag()) ? 'bot ' : ''; |
| 122 | 122 | $suffix = ''; |
| 123 | 123 | if (isset($this->summary->memo['count article'])) { |
| 124 | - $suffix .= ' ' . $this->summary->memo['count article'] . 'x {article}'; |
|
| 124 | + $suffix .= ' '.$this->summary->memo['count article'].'x {article}'; |
|
| 125 | 125 | } |
| 126 | 126 | if (isset($this->summary->memo['count lien web'])) { |
| 127 | - $suffix .= ' ' . $this->summary->memo['count lien web'] . 'x {lien web}'; |
|
| 127 | + $suffix .= ' '.$this->summary->memo['count lien web'].'x {lien web}'; |
|
| 128 | 128 | } |
| 129 | 129 | if (isset($this->summary->memo['presse'])) { |
| 130 | 130 | $suffix .= ' |
@@ -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 |
|