Passed
Branch dev (6bb8f6)
by Dispositif
03:01
created
src/Domain/Publisher/Tests/ExternalMapperTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $data = $mapper->process($page->getData());
32 32
 
33 33
         if (isset($data['consulté le'])) {
34
-            $data['consulté le'] = '11-04-2020';// unit testing date...
34
+            $data['consulté le'] = '11-04-2020'; // unit testing date...
35 35
         }
36 36
         $this::assertSame($expected, $data);
37 37
     }
Please login to merge, or discard this patch.
src/Domain/Publisher/ExternMapper.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
             return null;
195 195
         }
196 196
         $str = str_replace([''',''', ''', "\n", "
", "|", "é"], ["'","'", "'", '', ' ', '/',
197
-                                                                                          "é"], $str);
197
+                                                                                            "é"], $str);
198 198
 
199 199
         return html_entity_decode($str);
200 200
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                 $page .= '–'.$meta['citation_lastpage'];
182 182
             }
183 183
 
184
-            return (string)$page;
184
+            return (string) $page;
185 185
         }
186 186
 
187 187
         return null;
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
         if ($str === null) {
194 194
             return null;
195 195
         }
196
-        $str = str_replace([''',''', ''', "\n", "
", "|", "é"], ["'","'", "'", '', ' ', '/',
196
+        $str = str_replace([''', ''', ''', "\n", "
", "|", "é"], ["'", "'", "'", '', ' ', '/',
197 197
                                                                                           "é"], $str);
198 198
 
199 199
         return html_entity_decode($str);
Please login to merge, or discard this patch.
src/Domain/Models/Wiki/Tests/AbstractWikiTemplateTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 class AbstractWikiTemplateTest extends TestCase
18 18
 {
19
-    public function testIsValidForEdit(){
19
+    public function testIsValidForEdit() {
20 20
         $article = WikiTemplateFactory::create('article');
21 21
         $article->hydrate(
22 22
             [
Please login to merge, or discard this patch.
src/Domain/Models/Wiki/LienWebTemplate.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     const EDIT_REQUIRED_PARAMETERS = ['titre', 'url'];
22 22
 
23 23
     const MINIMUM_PARAMETERS
24
-                     = [
24
+                        = [
25 25
 //            'langue' => '', // suggéré
26 26
             'titre' => '', // required
27 27
             'url' => '', // required
Please login to merge, or discard this patch.
src/Application/Http/ExternHttpClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             return null;
66 66
         }
67 67
 
68
-        return (string)$response->getBody()->getContents() ?? '';
68
+        return (string) $response->getBody()->getContents() ?? '';
69 69
     }
70 70
 
71 71
     public static function isWebURL(string $url): bool
Please login to merge, or discard this patch.
src/Application/AbstractBotTaskWorker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
         $this->setUpInConstructor();
67 67
 
68
-        $this->run();//todo delete that and use (Worker)->run($duration) or process management
68
+        $this->run(); //todo delete that and use (Worker)->run($duration) or process management
69 69
     }
70 70
 
71 71
     protected function setUpInConstructor(): void
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             new EditInfo($this->taskName, $this->minorFlag, $this->botFlag, $this->maxLag)
190 190
         );
191 191
         dump($result);
192
-        echo "Sleep ".(string)static::SLEEP_AFTER_EDITION."\n";
192
+        echo "Sleep ".(string) static::SLEEP_AFTER_EDITION."\n";
193 193
         sleep(static::SLEEP_AFTER_EDITION);
194 194
     }
195 195
 }
Please login to merge, or discard this patch.