PHP 8.2.31
Preview: Fnmatcher.php Size: 354 B
//opt/cpanel/ea-wappspector/vendor/rector/rector/src/Skipper/Fnmatcher.php

<?php

declare (strict_types=1);
namespace Rector\Skipper;

final class Fnmatcher
{
    public function match(string $matchingPath, string $filePath) : bool
    {
        if (\fnmatch($matchingPath, $filePath)) {
            return \true;
        }
        // in case of relative compare
        return \fnmatch('*/' . $matchingPath, $filePath);
    }
}

Directory Contents

Dirs: 5 × Files: 2

Name Size Perms Modified Actions
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Matcher DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Skipper DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
SkipVoter DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
354 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.21 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

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