mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-13 17:49:25 +00:00
refactor(core): ♻️ fix various phpcs issues
This commit is contained in:
parent
b95b475c91
commit
e6538888fe
|
@ -121,6 +121,8 @@ class ApiWebappManifest extends ApiBase {
|
|||
/**
|
||||
* Get src, sizes, and type for each icon for the manifest
|
||||
*
|
||||
* @param string $logoPath
|
||||
* @param string $logoContent
|
||||
* @return array|null
|
||||
*/
|
||||
private function getIconData( $logoPath, $logoContent ) {
|
||||
|
|
|
@ -67,15 +67,13 @@ class CitizenComponentSearchBox implements CitizenComponent {
|
|||
* @inheritDoc
|
||||
*/
|
||||
public function getTemplateData(): array {
|
||||
$searchBoxData = $this->searchBoxData;
|
||||
$randompageUrl = SpecialPage::getTitleFor( 'Randompage' )->getLocalURL();
|
||||
|
||||
return $searchBoxData += [
|
||||
$searchBoxData = $this->searchBoxData + [
|
||||
'array-keyboard-hint' => $this->getKeyboardHintData(),
|
||||
'msg-citizen-search-footer' => $this->getFooterMessage(),
|
||||
'msg-citizen-search-toggle-shortcut' => '[/]',
|
||||
// TODO: Replace with SkinComponentUtils on 1.43
|
||||
'html-random-href' => $randompageUrl,
|
||||
'html-random-href' => SpecialPage::getTitleFor( 'Randompage' )->getLocalURL()
|
||||
];
|
||||
return $searchBoxData;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue