Passed
Push — master ( 077fb2...0549f4 )
by Dispositif
08:22
created
src/Application/OuvrageEditWorker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     const EDIT_SIGNALEMENT = true;
40 40
 
41
-    const CITATION_LIMIT         = 150;
41
+    const CITATION_LIMIT = 150;
42 42
     const DELAY_BOTFLAG_SECONDS    = 60;
43 43
     const DELAY_NO_BOTFLAG_SECONDS = 60;
44 44
     const ERROR_MSG_TEMPLATE       = __DIR__.'/templates/message_errors.wiki';
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         }
129 129
 
130 130
         // Page supprimée ?
131
-        if($page->getLastRevision() === null) {
131
+        if ($page->getLastRevision() === null) {
132 132
             $this->log->warning("SKIP : page supprimée !\n");
133 133
             $this->db->deleteArticle($title);
134 134
 
Please login to merge, or discard this patch.
src/Application/Examples/botstats.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,25 +37,25 @@  discard block
 block discarded – undo
37 37
 $data = [];
38 38
 
39 39
 $monitor = $db->fetchRow('select count(id) from page_ouvrages where optidate is null and edited is null and skip=0');
40
-$data['not analyzed citation'] = (int)$monitor['count(id)'];
40
+$data['not analyzed citation'] = (int) $monitor['count(id)'];
41 41
 
42 42
 $monitor = $db->fetchRow('select count(id) from page_ouvrages where optidate is not null');
43
-$data['analyzed citation'] = (int)$monitor['count(id)'];
43
+$data['analyzed citation'] = (int) $monitor['count(id)'];
44 44
 
45 45
 $monitor = $db->fetchRow('select count(distinct page) as n from page_ouvrages where skip=1 and edited is null'); //  ?
46
-$data['skip pages'] = (int)$monitor['n'];
46
+$data['skip pages'] = (int) $monitor['n'];
47 47
 
48 48
 $monitor = $db->fetchRow('select count(distinct page) as n from page_ouvrages where edited is true');
49
-$data['edited pages'] = (int)$monitor['n'];
49
+$data['edited pages'] = (int) $monitor['n'];
50 50
 
51 51
 $monitor = $db->fetchRow('select count(id) from page_ouvrages where optidate > SUBDATE(NOW(),1)');
52
-$data['analyzed citation 24H'] = (int)$monitor['count(id)'];
52
+$data['analyzed citation 24H'] = (int) $monitor['count(id)'];
53 53
 
54 54
 $monitor = $db->fetchRow('select count(id) as n from page_ouvrages where edited > SUBDATE(NOW(),1)');
55
-$data['edited citations 24H'] = (int)$monitor['n'];
55
+$data['edited citations 24H'] = (int) $monitor['n'];
56 56
 
57 57
 $monitor = $db->fetchRow('select count(distinct page) as n from page_ouvrages where edited > SUBDATE(NOW(),1)');
58
-$data['edited pages 24H'] = (int)$monitor['n'];
58
+$data['edited pages 24H'] = (int) $monitor['n'];
59 59
 
60 60
 $monitor = $db->fetchRow(
61 61
     'SELECT count(distinct A.page) FROM page_ouvrages A
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                     AND A.page = B.page
75 75
                     )'
76 76
 );
77
-$data['waiting pages'] = (int)$monitor['count(distinct A.page)'];
77
+$data['waiting pages'] = (int) $monitor['count(distinct A.page)'];
78 78
 
79 79
 $data['currentdate'] = DateUtil::dateEnglish2french((new DateTime())->format('j F Y \à H\:i').' (CEST)');
80 80
 
Please login to merge, or discard this patch.