@@ -43,5 +43,5 @@ |
||
43 | 43 | } |
44 | 44 | unset($process); |
45 | 45 | echo "Sleep 10 min\n"; |
46 | - sleep(60*10); |
|
46 | + sleep(60 * 10); |
|
47 | 47 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | echo "$title \n"; |
35 | 35 | |
36 | 36 | $pageAction = new WikiPageAction($wiki, $title); |
37 | - if($pageAction->getNs() !== 0 ) { |
|
37 | + if ($pageAction->getNs() !== 0) { |
|
38 | 38 | throw new \Exception("La page n'est pas dans Main (ns!==0)"); |
39 | 39 | } |
40 | 40 | $text = $pageAction->getText(); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $editInfo = new EditInfo(static::BOT_TALK_SUMMARY); |
59 | 59 | $success = $page->addToBottomOfThePage($addText, $editInfo); |
60 | 60 | |
61 | - return (bool)$success; |
|
61 | + return (bool) $success; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | return null; |
87 | 87 | } |
88 | 88 | |
89 | - return (string)trim($sentences[array_rand($sentences)]); |
|
89 | + return (string) trim($sentences[array_rand($sentences)]); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -88,7 +88,7 @@ |
||
88 | 88 | // const TRADE = '™'; // ™ |
89 | 89 | // const REG = '®'; // ® |
90 | 90 | // const COPY = '©'; // © |
91 | - const ALL_SPACES = "\xE2\x80\xAF|\xC2\xAD|\xC2\xA0|\\s"; // Used in regexps. Better than \s |
|
91 | + const ALL_SPACES = "\xE2\x80\xAF|\xC2\xAD|\xC2\xA0|\\s"; // Used in regexps. Better than \s |
|
92 | 92 | |
93 | 93 | /** |
94 | 94 | * UTF8 first letter in upper case. |