X7ROOT File Manager
Current Path:
/opt/cpanel/ea-wappspector/vendor/doctrine/inflector/src/Rules
opt
/
cpanel
/
ea-wappspector
/
vendor
/
doctrine
/
inflector
/
src
/
Rules
/
??
..
??
English
??
Esperanto
??
French
??
Italian
??
NorwegianBokmal
??
Pattern.php
(788 B)
??
Patterns.php
(602 B)
??
Portuguese
??
Ruleset.php
(777 B)
??
Spanish
??
Substitution.php
(451 B)
??
Substitutions.php
(1.34 KB)
??
Transformation.php
(790 B)
??
Transformations.php
(648 B)
??
Turkish
??
Word.php
(294 B)
Editing: Patterns.php
<?php declare(strict_types=1); namespace Doctrine\Inflector\Rules; use function array_map; use function implode; use function preg_match; class Patterns { /** @var string */ private $regex; public function __construct(Pattern ...$patterns) { $patterns = array_map(static function (Pattern $pattern): string { return $pattern->getPattern(); }, $patterns); $this->regex = '/^(?:' . implode('|', $patterns) . ')$/i'; } public function matches(string $word): bool { return preg_match($this->regex, $word, $regs) === 1; } }
Upload File
Create Folder