PHP 8.2.31
Preview: Patterns.php Size: 602 B
/opt/cpanel/ea-wappspector/vendor/doctrine/inflector/src/Rules/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;
    }
}

Directory Contents

Dirs: 8 × Files: 8

Name Size Perms Modified Actions
English DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
Esperanto DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
French DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
Italian DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
Spanish DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
Turkish DIR
- drwxr-xr-x 2025-08-10 19:31:58
Edit Download
788 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
602 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
777 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
451 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
1.34 KB lrw-r--r-- 2025-08-10 19:31:58
Edit Download
790 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
648 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download
294 B lrw-r--r-- 2025-08-10 19:31:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).