Page MenuHomeWickedGov Phorge

ParserUtil.php
No OneTemporary

Size
598 B
Referenced Files
None
Subscribers
None

ParserUtil.php

<?php
declare( strict_types = 1 );
namespace MediaWiki\Extension\Math\WikiTexVC;
class ParserUtil {
/**
* @param array|null $options
* @return array
*/
public static function createOptions( $options ) {
# get reference of the options for usage in functions and initialize with default values.
$optionsBase = [
'usemathrm' => false,
'usemhchem' => false,
'usemhchemtexified' => false,
'useintent' => false,
'oldtexvc' => false,
'oldmhchem' => false,
'debug' => false,
'report_required' => false
];
return array_merge( $optionsBase, $options ?? [] );
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 21:13 (1 d, 12 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f6/32/03cf82730a2e925536f6a2af190a
Default Alt Text
ParserUtil.php (598 B)

Event Timeline