Test Failed
Push — master ( 5da19e...0ba0ea )
by Dispositif
08:27
created
src/Domain/Utils/TemplateParserTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
             ['{{Ouvrage
54 54
   | langue=fr
55 55
 }}',
56
-             "\n | ",
56
+                "\n | ",
57 57
             ],
58 58
         ];
59 59
     }
Please login to merge, or discard this patch.
src/Infrastructure/BnfAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         }
77 77
 
78 78
         // note : multi-records filtered in BnFMapper
79
-        $nbResults = (int)$xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0;
79
+        $nbResults = (int) $xml->xpath('//srw:numberOfRecords[1]')[0] ?? 0;
80 80
         if (0 === $nbResults) {
81 81
             return null;
82 82
         }
Please login to merge, or discard this patch.
src/Application/Examples/WikiDocument.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
 if (200 !== $response->getStatusCode()) {
24 24
     die('not 200 response');
25 25
 }
26
-try{
26
+try {
27 27
     $newText = $response->getBody()->getContents();
28
-}catch (Throwable $e){
28
+} catch (Throwable $e) {
29 29
     dump($e);
30 30
     die;
31 31
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 }
26 26
 try{
27 27
     $newText = $response->getBody()->getContents();
28
-}catch (Throwable $e){
28
+} catch (Throwable $e){
29 29
     dump($e);
30 30
     die;
31 31
 }
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/ImportOuvrageFromApi.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,14 +60,14 @@
 block discarded – undo
60 60
          */
61 61
         $data = $this->mapping($volume);
62 62
 
63
-        if(isset($data['infos'])) {
63
+        if (isset($data['infos'])) {
64 64
             $infos = $data['infos'];
65 65
             unset($data['infos']);
66 66
         }
67 67
 
68 68
         try {
69 69
             $this->ouvrage->hydrate($data);
70
-            if(isset($infos)) {
70
+            if (isset($infos)) {
71 71
                 $this->ouvrage->setInfos($infos);
72 72
             }
73 73
         } catch (Throwable $e) {
Please login to merge, or discard this patch.
src/Application/Examples/Monitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             [
95 95
                 'page' => $title ?? '',
96 96
                 'verify' => date("Y-m-d H:i:s"),
97
-                'altered' => (int)$stat,
97
+                'altered' => (int) $stat,
98 98
             ]
99 99
         );
100 100
     }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
         }
151 151
 
152
-        return (int)round(($count - $found) / count($data) * 100);
152
+        return (int) round(($count - $found) / count($data) * 100);
153 153
     }
154 154
 
155 155
 }
Please login to merge, or discard this patch.
src/Application/Examples/avancement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
 $db = new Mysql($pdo);
41 41
 
42 42
 $monitor = $db->fetchRow('select count(id) from page_ouvrages where optidate is not null');
43
-$number = (int)$monitor['count(id)'];
43
+$number = (int) $monitor['count(id)'];
44 44
 
45 45
 $monitor = $db->fetchRow('select count(distinct page) as pages from page_ouvrages where optidate is not null and isbn<>""');
46
-$pageNb = (int)$monitor['pages'];
46
+$pageNb = (int) $monitor['pages'];
47 47
 
48 48
 $newText = <<<EOF
49 49
 <div style="background:#EBF6E9;border:2px solid grey;padding:10px;border-radius:10px;">
Please login to merge, or discard this patch.
src/Application/TalkBotConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $editInfo = new EditInfo(static::BOT_TALK_SUMMARY);
64 64
         $success = $page->addToBottomOfThePage($addText, $editInfo);
65 65
 
66
-        return (bool)$success;
66
+        return (bool) $success;
67 67
     }
68 68
 
69 69
     /**
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             throw new ConfigException('Pas de phrases disponibles pour TalkBot');
132 132
         }
133 133
 
134
-        return (string)trim($sentences[array_rand($sentences)]);
134
+        return (string) trim($sentences[array_rand($sentences)]);
135 135
     }
136 136
 
137 137
     /**
Please login to merge, or discard this patch.
src/Application/RefBotWorker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
     public function hasWarning(): bool
25 25
     {
26
-        return (bool)$this->warning;
26
+        return (bool) $this->warning;
27 27
     }
28 28
 
29 29
     /**
Please login to merge, or discard this patch.