@@ -152,7 +152,7 @@ |
||
| 152 | 152 | $page .= '–'.$meta['citation_lastpage']; |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | - return (string)$page; |
|
| 155 | + return (string) $page; |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | return null; |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | $mapper = new WebMapper(new Logger()); |
| 32 | 32 | $data = $mapper->process($htmlData); |
| 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 | } |
@@ -53,9 +53,9 @@ discard block |
||
| 53 | 53 | /** |
| 54 | 54 | * @var AbstractWikiTemplate |
| 55 | 55 | */ |
| 56 | - try{ |
|
| 56 | + try { |
|
| 57 | 57 | $tplObject = WikiTemplateFactory::create($tplName); |
| 58 | - }catch (Throwable $e){ |
|
| 58 | + } catch (Throwable $e) { |
|
| 59 | 59 | unset($e); |
| 60 | 60 | continue; |
| 61 | 61 | } |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | ) { |
| 191 | 191 | array_walk( |
| 192 | 192 | $matches, |
| 193 | - function (&$value) { |
|
| 193 | + function(&$value) { |
|
| 194 | 194 | $value = str_replace(['CURLYBRACKETO', 'CURLYBRACKETC'], ['{', '}'], $value); |
| 195 | 195 | } |
| 196 | 196 | ); |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | try{ |
| 57 | 57 | $tplObject = WikiTemplateFactory::create($tplName); |
| 58 | - }catch (Throwable $e){ |
|
| 58 | + } catch (Throwable $e){ |
|
| 59 | 59 | unset($e); |
| 60 | 60 | continue; |
| 61 | 61 | } |
@@ -185,7 +185,7 @@ |
||
| 185 | 185 | new EditInfo($this->taskName, $this->minorFlag, $this->botFlag, $this->maxLag) |
| 186 | 186 | ); |
| 187 | 187 | dump($result); |
| 188 | - echo "Sleep ".(string)static::SLEEP_AFTER_EDITION."\n"; |
|
| 188 | + echo "Sleep ".(string) static::SLEEP_AFTER_EDITION."\n"; |
|
| 189 | 189 | sleep(static::SLEEP_AFTER_EDITION); |
| 190 | 190 | } |
| 191 | 191 | |
@@ -74,6 +74,6 @@ |
||
| 74 | 74 | |
| 75 | 75 | public function hasWarning(): bool |
| 76 | 76 | { |
| 77 | - return (bool)$this->warning; |
|
| 77 | + return (bool) $this->warning; |
|
| 78 | 78 | } |
| 79 | 79 | } |