Passed
Push — master ( a73e13...03a489 )
by Dispositif
15:32
created
src/Application/OuvrageEditWorker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     const EDIT_SIGNALEMENT = true;
40 40
 
41
-    const CITATION_LIMIT         = 150;
41
+    const CITATION_LIMIT = 150;
42 42
     const DELAY_BOTFLAG_SECONDS    = 120;
43 43
     const DELAY_NO_BOTFLAG_SECONDS = 120;
44 44
     const ERROR_MSG_TEMPLATE       = __DIR__.'/templates/message_errors.wiki';
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         }
129 129
 
130 130
         // Page supprimée ?
131
-        if($page->getLastRevision() === null) {
131
+        if ($page->getLastRevision() === null) {
132 132
             $this->log->warning("SKIP : page supprimée !\n");
133 133
             $this->db->deleteArticle($title);
134 134
 
Please login to merge, or discard this patch.
src/Application/NotificationWorker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
             $this->processSpecialActions($notif);
112 112
         }
113 113
 
114
-        if(empty($wikilog)) {
114
+        if (empty($wikilog)) {
115 115
             echo "Nothing.";
116 116
             return;
117 117
         }
Please login to merge, or discard this patch.
src/Application/ExternRefWorker.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,8 +122,7 @@
 block discarded – undo
122 122
         }
123 123
         if (isset($this->summary->memo['count lien brisé'])) {
124 124
             $suffix .= ', ⚠️️️lien brisé'; //⚠️
Please login to merge, or discard this patch.
src/Application/WikiBotConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,9 +173,9 @@
 block discarded – undo
173 173
      */
174 174
     public function minutesSinceLastEdit(string $title): int
175 175
     {
176
-        $time = $this->getTimestamp($title);  // 2011-09-02T16:31:13Z
176
+        $time = $this->getTimestamp($title); // 2011-09-02T16:31:13Z
177 177
 
178
-        return (int)round((time() - strtotime($time)) / 60);
178
+        return (int) round((time() - strtotime($time)) / 60);
179 179
     }
180 180
 
181 181
     /**
Please login to merge, or discard this patch.
src/Application/VoteAdmin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             throw new ConfigException('Pas de phrases disponibles');
103 103
         }
104 104
 
105
-        return (string)trim($sentences[array_rand($sentences)]);
105
+        return (string) trim($sentences[array_rand($sentences)]);
106 106
     }
107 107
 
108 108
     private function generateVoteInsertionText(): ?string
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         $html = $this->getAdminScoreHtml();
258 258
 
259 259
         if (!empty($html) && preg_match('#<th>Total</th>[^<]*<th>([0-9]+)</th>#', $html, $matches)) {
260
-            return (int)$matches[1];
260
+            return (int) $matches[1];
261 261
         }
262 262
 
263 263
         return null;
Please login to merge, or discard this patch.