[dev] add return type to SkinMinerva.getSkinStyles()

Specify the return type for getSkinStyles() and add some documentation.

Change-Id: I06a77d3015ed77c2aa38d31fe8422fcb8bcaf9fd
This commit is contained in:
Stephen Niedzielski 2019-08-06 09:28:47 -06:00
parent b836141c9f
commit 0a2099930b

View file

@ -897,10 +897,15 @@ class SkinMinerva extends SkinTemplate {
} }
/** /**
* Get the needed styles for this skin * Provide styles required to present the server rendered page in this skin. Additional styles
* may be loaded dynamically by the client.
*
* Any styles returned by this method are loaded on the critical rendering path as linked
* stylesheets. I.e., they are required to load on the client before first paint.
*
* @return array * @return array
*/ */
protected function getSkinStyles() { protected function getSkinStyles(): array {
$title = $this->getTitle(); $title = $this->getTitle();
$styles = [ $styles = [
'skins.minerva.base.styles', 'skins.minerva.base.styles',