Passed
Branch dev3 (ae391d)
by Dispositif
02:29
created
src/Application/OuvrageEdit/OuvrageEditWorker.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public const DELAY_BOTFLAG_SECONDS = 60;
48 48
     public const DELAY_NO_BOTFLAG_SECONDS = 60;
49 49
     public const DELAY_MINUTES_AFTER_HUMAN_EDIT = 10;
50
-    public const ERROR_MSG_TEMPLATE = __DIR__ . '/templates/message_errors.wiki';
50
+    public const ERROR_MSG_TEMPLATE = __DIR__.'/templates/message_errors.wiki';
51 51
 
52 52
     /**
53 53
      * @var PageWorkStatus
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         while (true) {
96 96
             echo "\n-------------------------------------\n\n";
97
-            echo date("Y-m-d H:i:s") . " ";
97
+            echo date("Y-m-d H:i:s")." ";
98 98
             $this->log->info($this->memory->getMemory(true));
99 99
             $this->pageProcess();
100 100
             sleep(2); // précaution boucle infinie
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         try {
129 129
             $this->wikiPageAction = ServiceFactory::wikiPageAction($this->pageWorkStatus->getTitle()); // , true ?
130 130
         } catch (Exception $e) {
131
-            $this->log->warning("*** WikiPageAction error : " . $this->pageWorkStatus->getTitle() . " \n");
131
+            $this->log->warning("*** WikiPageAction error : ".$this->pageWorkStatus->getTitle()." \n");
132 132
             sleep(20);
133 133
 
134 134
             return false;
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
     protected function printTitle(string $title): void
166 166
     {
167
-        echo Color::BG_CYAN . $title . Color::NORMAL . " \n";
167
+        echo Color::BG_CYAN.$title.Color::NORMAL." \n";
168 168
     }
169 169
 
170 170
     protected function checkArticleLabels($title): void
@@ -237,10 +237,10 @@  discard block
 block discarded – undo
237 237
 
238 238
     protected function printDebug(array $data)
239 239
     {
240
-        $this->log->debug('origin: ' . $data['raw']);
241
-        $this->log->debug('completed: ' . $data['opti']);
242
-        $this->log->debug('modifs: ' . $data['modifs']);
243
-        $this->log->debug('version: ' . $data['version']);
240
+        $this->log->debug('origin: '.$data['raw']);
241
+        $this->log->debug('completed: '.$data['opti']);
242
+        $this->log->debug('modifs: '.$data['modifs']);
243
+        $this->log->debug('version: '.$data['version']);
244 244
     }
245 245
 
246 246
     protected function editPage(): bool
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
                 $this->log->alert("*** Invalid CSRF token \n");
262 262
                 throw new Exception('Invalid CSRF token', $e->getCode(), $e);
263 263
             } else {
264
-                $this->log->warning('Exception in editPage() ' . $e->getMessage());
264
+                $this->log->warning('Exception in editPage() '.$e->getMessage());
265 265
                 sleep(10);
266 266
 
267 267
                 return false;
@@ -283,16 +283,16 @@  discard block
 block discarded – undo
283 283
                 $this->sendOuvrageErrorsOnTalkPage($pageOuvrageCollection, $this->log);
284 284
             }
285 285
         } catch (Throwable $e) {
286
-            $this->log->warning('Exception in editPage() ' . $e->getMessage());
286
+            $this->log->warning('Exception in editPage() '.$e->getMessage());
287 287
             unset($e);
288 288
         }
289 289
 
290 290
         if (!$this->pageWorkStatus->botFlag) {
291
-            $this->log->debug("sleep " . self::DELAY_NO_BOTFLAG_SECONDS);
291
+            $this->log->debug("sleep ".self::DELAY_NO_BOTFLAG_SECONDS);
292 292
             sleep(self::DELAY_NO_BOTFLAG_SECONDS);
293 293
         }
294 294
         if ($this->pageWorkStatus->botFlag) {
295
-            $this->log->debug("sleep " . self::DELAY_BOTFLAG_SECONDS);
295
+            $this->log->debug("sleep ".self::DELAY_BOTFLAG_SECONDS);
296 296
             sleep(self::DELAY_BOTFLAG_SECONDS);
297 297
         }
298 298
     }
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
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             $this->summary->memo['sites'][] = $this->externalPage->getPrettyDomainName(); // ???
34 34
         }
35 35
         if (isset($mapData['accès url'])) {
36
-            $this->log->debug('accès 
Please login to merge, or discard this patch.