refactor(core): ♻️ fix various phpcs issues

This commit is contained in:
alistair3149 2024-11-04 18:50:07 -05:00
parent b95b475c91
commit e6538888fe
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -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 ) {

View file

@ -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;
}
}