* @param string $modelId
*/
public function __construct( $modelId = CONTENT_MODEL_CSS ) {
- parent::__construct( $modelId, array( CONTENT_FORMAT_CSS ) );
+ parent::__construct( $modelId, [ CONTENT_FORMAT_CSS ] );
}
protected function getContentClass() {
- return 'CssContent';
+ return CssContent::class;
}
public function supportsRedirects() {
*
* @param Title $destination
* @param string $text ignored
- * @return JavaScriptContent
+ * @return CssContent
*/
public function makeRedirectContent( Title $destination, $text = '' ) {
// The parameters are passed as a string so the / is not url-encoded by wfArrayToCgi