@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | * This file contains only the Page class. |
| 4 | 4 | */ |
| 5 | 5 | |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace AppBundle\Model; |
| 9 | 9 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $title = $info['title'] ?? $this->unnormalizedPageName; |
| 114 | 114 | $nsName = $this->getNamespaceName(); |
| 115 | 115 | return $nsName |
| 116 | - ? str_replace($nsName . ':', '', $title) |
|
| 116 | + ? str_replace($nsName.':', '', $title) |
|
| 117 | 117 | : $title; |
| 118 | 118 | } |
| 119 | 119 | |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | { |
| 313 | 313 | $content = $this->getRepository()->getPagesWikitext( |
| 314 | 314 | $this->getProject(), |
| 315 | - [ $this->getTitle() ] |
|
| 315 | + [$this->getTitle()] |
|
| 316 | 316 | ); |
| 317 | 317 | |
| 318 | 318 | return $content[$this->getTitle()] ?? null; |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | |
| 379 | 379 | $wikidataInfo = $this->getRepository()->getWikidataInfo($this); |
| 380 | 380 | |
| 381 | - $terms = array_map(function ($entry) { |
|
| 381 | + $terms = array_map(function($entry) { |
|
| 382 | 382 | return $entry['term']; |
| 383 | 383 | }, $wikidataInfo); |
| 384 | 384 | |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | 'prio' => 2, |
| 390 | 390 | 'name' => 'Wikidata', |
| 391 | 391 | 'notice' => "Label for language <em>$lang</em> is missing", // FIXME: i18n |
| 392 | - 'explanation' => "See: <a target='_blank' " . |
|
| 392 | + 'explanation' => "See: <a target='_blank' ". |
|
| 393 | 393 | "href='//www.wikidata.org/wiki/Help:Label'>Help:Label</a>", |
| 394 | 394 | ]; |
| 395 | 395 | } |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | 'prio' => 3, |
| 400 | 400 | 'name' => 'Wikidata', |
| 401 | 401 | 'notice' => "Description for language <em>$lang</em> is missing", // FIXME: i18n |
| 402 | - 'explanation' => "See: <a target='_blank' " . |
|
| 402 | + 'explanation' => "See: <a target='_blank' ". |
|
| 403 | 403 | "href='//www.wikidata.org/wiki/Help:Description'>Help:Description</a>", |
| 404 | 404 | ]; |
| 405 | 405 | } |
@@ -477,7 +477,7 @@ discard block |
||
| 477 | 477 | return 0; |
| 478 | 478 | } |
| 479 | 479 | |
| 480 | - return array_sum(array_map(function ($item) { |
|
| 480 | + return array_sum(array_map(function($item) { |
|
| 481 | 481 | return (int)$item['views']; |
| 482 | 482 | }, $pageviews['items'])); |
| 483 | 483 | } |