$lines = explode( "\n", $this->msg );
foreach ( $lines as $line ) {
$lines = explode( "\n", $this->msg );
foreach ( $lines as $line ) {
* @return array
*/
protected function trimStars( $str ) {
$numStars = strspn( $str, '*' );
* @return array
*/
protected function trimStars( $str ) {
$numStars = strspn( $str, '*' );
- return array( $numStars, ltrim( substr( $str, $numStars ), ' ' ) );
+ return [ $numStars, ltrim( substr( $str, $numStars ), ' ' ) ];
*/
protected function makeHtml( $tagset, $depth = 0 ) {
foreach ( $tagset as $key => $val ) {
if ( is_array( $val ) ) {
$this->html .= $this->outputOption(
$key, '',
*/
protected function makeHtml( $tagset, $depth = 0 ) {
foreach ( $tagset as $key => $val ) {
if ( is_array( $val ) ) {
$this->html .= $this->outputOption(
$key, '',
'disabled' => 'disabled',
'style' => 'color: GrayText', // for MSIE
'disabled' => 'disabled',
'style' => 'color: GrayText', // for MSIE
$depth
);
$this->makeHtml( $val, $depth + 1 );
} else {
$this->html .= $this->outputOption(
$val->text, $val->template,
$depth
);
$this->makeHtml( $val, $depth + 1 );
} else {
$this->html .= $this->outputOption(
$val->text, $val->template,
* @return string
*/
protected function outputOption( $message, $value, $attribs = null, $depth = 0 ) {
* @return string
*/
protected function outputOption( $message, $value, $attribs = null, $depth = 0 ) {
$this->selected = $value;
$this->html = $this->outputOption( wfMessage( 'nolicense' )->text(), '',
$this->selected = $value;
$this->html = $this->outputOption( wfMessage( 'nolicense' )->text(), '',
*/
function __construct( $str ) {
list( $text, $template ) = explode( '|', strrev( $str ), 2 );
*/
function __construct( $str ) {
list( $text, $template ) = explode( '|', strrev( $str ), 2 );