Completed
Push — master ( e37ca9...d5b8a7 )
by Dispositif
02:39
created
src/Application/Tests/BotTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
         $this::assertTrue(Bot::isEditionRestricted('{{3R}} bla'));
24 24
         $this::assertTrue(Bot::isEditionRestricted('{{nobots}} bla'));
25 25
         $this::assertTrue(Bot::isEditionRestricted('{{bots|deny=Bob,FuBot}} bla', 'FuBot'));
26
-        $this::assertFalse(Bot::isEditionRestricted('{{bots|deny=Bob,FuBot}} bla'));;
26
+        $this::assertFalse(Bot::isEditionRestricted('{{bots|deny=Bob,FuBot}} bla')); ;
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/Infrastructure/DbAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
 
152 152
             // No page to edit
153 153
             $rows = $pageInfo->fetchAll();
154
-            if(empty($rows)){
154
+            if (empty($rows)) {
155 155
                 return "[]";
156 156
             }
157 157
 
Please login to merge, or discard this patch.
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.
src/Domain/Models/Wiki/AbstractWikiTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -414,7 +414,7 @@
 block discarded – undo
414 414
                 if (is_int($param)) {
415 415
 
416 416
                     // erreur "|lire en ligne|"
417
-                    if(in_array($value, $this->getParamsAndAlias())){
417
+                    if (in_array($value, $this->getParamsAndAlias())) {
418 418
                         unset($errorUserData[$param]);
419 419
                         continue;
420 420
                     }
Please login to merge, or discard this patch.