Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns canonicalized absolute pathname
<?php realpath(string $path): string|false
<?php             $pathToFile = \str_replace('UnitTest.php', 'UnitTest.inc', $pathToFile);

        }

        $pathToFile = \realpath($pathToFile);



        if (isset(self::$sniffFiles[$pathToFile][$targetPhpVersion])) {

            return self::$sniffFiles[$pathToFile][$targetPhpVersion];
<?php             return;

        }



        $file = realpath(__DIR__) . DIRECTORY_SEPARATOR . strtr($class, '\\', DIRECTORY_SEPARATOR) . '.php';



        if (file_exists($file)) {

            include_once $file;
<?php }



if ($phpcsDir !== false) {

    $phpcsDir = realpath($phpcsDir);

}



if ($phpcsUtilsDir !== false) {
<?php }



if ($phpcsUtilsDir !== false) {

    $phpcsUtilsDir = realpath($phpcsUtilsDir);

}