@@ -23,6 +23,6 @@ |
||
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 | } |
@@ -151,7 +151,7 @@ |
||
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 |
@@ -34,11 +34,11 @@ |
||
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 | } |
@@ -123,7 +123,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -414,7 +414,7 @@ |
||
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 | } |