Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/Math/src/WikiTexVC/Nodes/LengthSpec.php
Ðазад
<?php namespace MediaWiki\Extension\Math\WikiTexVC\Nodes; use InvalidArgumentException; class LengthSpec extends TexNode { private string $sign; private string $unit; private string $number; public function __construct( ?string $sign, array $number, string $unit ) { $this->sign = $sign ?? ''; $this->unit = $unit; if ( count( $number ) === 3 ) { $this->number = implode( $number[0] ) . ( $number[1] ?? '' ) . implode( $number[2] ); } elseif ( count( $number ) === 2 ) { $this->number = ( $number[0] ?? '' ) . implode( $number[1] ); } else { throw new InvalidArgumentException( 'Invalid number in length spec' ); } parent::__construct(); } /** @inheritDoc */ public function render() { return '[' . $this->sign . $this->number . $this->unit . ']'; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка