HOME


5h-3LL 1.0
DIR: /opt/cpanel/ea-wappspector/vendor/rector/rector/src/Skipper
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/Skipper/
Upload File:
Current File : /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);
    }
}