Completed
Push — master ( 0349ad...e37ca9 )
by Dispositif
02:28
created
src/Application/Examples/plumeBot.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,11 +34,11 @@
 block discarded – undo
34 34
 
35 35
     // {{Google Livres|=
36 36
     // {{Google Livres|https://books.google.fr/books?id=
37
-    $newText = str_replace('{{Google Livres|https://books.google.fr/books?id=','{{Google Livres|id=',$text);
37
+    $newText = str_replace('{{Google Livres|https://books.google.fr/books?id=', '{{Google Livres|id=', $text);
38 38
 
39 39
     sleep(7);
40 40
 
41
-    if($newText === $text) {
41
+    if ($newText === $text) {
42 42
         echo "Skip identique\n";
43 43
         continue;
44 44
     }
Please login to merge, or discard this patch.
src/Application/WikiPageAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     public function getRedirect(): ?string
124 124
     {
125 125
         if ($this->getText() && preg_match('/^#REDIRECT(?:ION)? ?\[\[([^]]+)]]/i', $this->getText(), $matches)) {
126
-            return (string)trim($matches[1]);
126
+            return (string) trim($matches[1]);
127 127
         }
128 128
 
129 129
         return null;
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
         $parser = new TagParser(); // todo ParserFactory
302 302
         $refs = $parser->importHtml($text)->getRefValues(); // []
303 303
 
304
-        return (array)$refs;
304
+        return (array) $refs;
305 305
     }
306 306
 
307 307
     /**
Please login to merge, or discard this patch.