Passed
Branch dev3 (71ef0d)
by Dispositif
03:09
created
src/Infrastructure/SMS.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     {
42 42
         $sender = getenv('BOT_NAME') ?? '';
43 43
         $message = sprintf('%s : %s', $sender, $message);
44
-        $url = getenv('FREE_SMS_URL') . urlencode($message);
44
+        $url = getenv('FREE_SMS_URL').urlencode($message);
45 45
 
46 46
         $response = $this->client->get($url, ['timeout' => 120]);
47 47
 
Please login to merge, or discard this patch.
src/Application/WikiBotConfig.php 1 patch
Spacing   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 class WikiBotConfig
32 32
 {
33 33
     public const VERSION = '1.1';
34
-    public const WATCHPAGE_FILENAME = __DIR__ . '/resources/watch_pages.json';
34
+    public const WATCHPAGE_FILENAME = __DIR__.'/resources/watch_pages.json';
35 35
     public const EXIT_ON_CHECK_WATCHPAGE = false;
36 36
     // do not stop if they play with {stop} on bot talk page
37 37
     public const BLACKLIST_EDITOR = ['OrlodrimBot'];
@@ -88,9 +88,8 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $text = WikiTextUtil::removeHTMLcomments($text);
90 90
         $botName = $botName ?: self::getBotName();
91
-        $denyReg = (empty($botName)) ? '' :
92
-            '|\{\{bots ?\| ?(optout|deny)\=[^\}]*' . preg_quote($botName, '#') . '[^\}]*\}\}';
93
-        return preg_match('#({{nobots}}|{{bots ?\| ?(optout|deny) ?= ?all ?}}' . $denyReg . ')#i', $text) > 0;
91
+        $denyReg = (empty($botName)) ? '' : '|\{\{bots ?\| ?(optout|deny)\=[^\}]*'.preg_quote($botName, '#').'[^\}]*\}\}';
92
+        return preg_match('#({{nobots}}|{{bots ?\| ?(optout|deny) ?= ?all ?}}'.$denyReg.')#i', $text) > 0;
94 93
     }
95 94
 
96 95
     protected static function getBotOwner()
@@ -144,7 +143,7 @@  discard block
 block discarded – undo
144 143
 
145 144
     protected function getBotTalkPageTitle(): string
146 145
     {
147
-        return self::TALK_PAGE_PREFIX . $this::getBotName();
146
+        return self::TALK_PAGE_PREFIX.$this::getBotName();
148 147
     }
149 148
 
150 149
     /**
@@ -255,8 +254,8 @@  discard block
 block discarded – undo
255 254
      */
256 255
     public function minutesSinceLastEdit(string $title): int
257 256
     {
258
-        $time = $this->getTimestamp($title);  // 2011-09-02T16:31:13Z
257
+        $time = $this->getTimestamp($title); // 2011-09-02T16:31:13Z
259 258
 
260
-        return (int)round((time() - strtotime($time)) / 60);
259
+        return (int) round((time() - strtotime($time)) / 60);
261 260
     }
262 261
 }
Please login to merge, or discard this patch.
src/Application/CLI/wikiScanProcess.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
 
60 60
 // utilise une liste d'import wstat.fr
61
- echo "Liste d'après wstat.fr\n";
61
+    echo "Liste d'après wstat.fr\n";
62 62
 $list = PageList::FromFile(__DIR__.'/../resources/importISBN_nov.txt');
63 63
 new ScanWiki2DB($wiki, new DbAdapter(), new WikiBotConfig($wiki), $list, 0);
64 64
 
Please login to merge, or discard this patch.