Файловый менеджер - Редактировать - /home/infrafs/INFRABIKEUS/wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Parser/Check/Dom/Placeholder.php
Назад
<?php namespace Weglot\Parser\Check\Dom; use Weglot\Client\Api\Enum\WordType; use Weglot\Util\Text as TextUtil; /** * Class Placeholder * @package Weglot\Parser\Check\Dom */ class Placeholder extends AbstractDomChecker { /** * {@inheritdoc} */ const DOM = 'input[type="text"],input[type="password"],input[type="search"],input[type="email"],textarea, input[type="tel"], input[type="number"]'; /** * {@inheritdoc} */ const PROPERTY = 'placeholder'; /** * {@inheritdoc} */ const WORD_TYPE = WordType::PLACEHOLDER; /** * {@inheritdoc} */ protected function check() { return (!is_numeric(TextUtil::fullTrim($this->node->placeholder)) && !preg_match('/^\d+%$/', TextUtil::fullTrim($this->node->placeholder))); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка