Passed
Push — master ( 9f9e2a...75e8d8 )
by Dispositif
02:34
created
src/Domain/ExternLink/DeadLinkTransformer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                 if ($webarchiveDTO->getArchiver() === '[[Internet Archive]]') {
64 64
                     $this->log->notice('
Please login to merge, or discard this patch.
src/Domain/ExternLink/SummaryExternTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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 
Please login to merge, or discard this patch.
src/Infrastructure/WikiBlameAdapter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 {
24 24
     protected HttpClientInterface $client;
25 25
 
26
-    public function __construct(private readonly LoggerInterface|NullLogger $log = new NullLogger())
26
+    public function __construct(private readonly LoggerInterface | NullLogger $log = new NullLogger())
27 27
     {
28 28
         $this->client = ServiceFactory::getHttpClient();
29 29
     }
@@ -38,16 +38,16 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $url = 'http://wikipedia.ramselehof.de/wikiblame.php?project=wikipedia&article='
40 40
             . str_replace(' ', '+', $article)
41
-            . '&needle=' . urlencode($string)
41
+            . '&needle='.urlencode($string)
42 42
             . '&lang=fr&limit=2000&offjahr=2024&offmon=1&offtag=1&offhour=23&offmin=55'
43 43
             . '&searchmethod=int&order=desc'
44
-            . '&force_wikitags=' . ($hasWikicode ? 'on' : 'off')
44
+            . '&force_wikitags='.($hasWikicode ? 'on' : 'off')
45 45
             . '&user_lang=fr&ignorefirst=0';
46 46
 
47 47
         $response = $this->client->get($url);
48 48
 
49 49
         if ($response->getStatusCode() !== 200) {
50
-            $this->log->warning('WikiBlame: ' . $response->getStatusCode() . ' ' . $response->getReasonPhrase());
50
+            $this->log->warning('WikiBlame: '.$response->getStatusCode().' '.$response->getReasonPhrase());
51 51
             return null;
52 52
         }
53 53
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         }
69 69
 
70 70
         return [
71
-            'versionid' => (int)$matches[1],
71
+            'versionid' => (int) $matches[1],
72 72
             'dateraw' => $matches[2],
73 73
             'datetime' => DateUtil::simpleFrench2object($matches[2]),
74 74
         ];
Please login to merge, or discard this patch.
src/Application/CLI/externRefProcess.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,13 +59,13 @@
 block discarded – undo
59 59
     $list = new PageList([trim($options['page'])]);
60 60
 
61 61
     // delete Title from edited.txt
62
-    $file = __DIR__ . '/../resources/article_externRef_edited.txt';
62
+    $file = __DIR__.'/../resources/article_externRef_edited.txt';
63 63
     $text = file_get_contents($file);
64
-    $newText = str_replace(trim($argv[1]) . "\n", '', $text);
64
+    $newText = str_replace(trim($argv[1])."\n", '', $text);
65 65
     if (!empty($text) && $text !== $newText) {
66 66
         @file_put_contents($file, $newText);
67 67
     }
68
-    $botConfig->setTaskName('
Please login to merge, or discard this patch.
src/Application/ExternLink/ExternRefWorker.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
162 162
             $this->log->stats->increment('externref.count.lienbrisé');
163 163
             $suffix .= ' ⚠️️️lien brisé'; //⚠️
Please login to merge, or discard this patch.
src/Application/ExternLink/RecentChangeWorker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 {
32 32
     protected const USER_RC_LIMIT = 100;
33 33
     protected const TASK_NAME = '
Please login to merge, or discard this patch.