Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks whether a file or directory exists
<?php file_exists(string $filename): bool
<?php         $file = realpath(__DIR__) . DIRECTORY_SEPARATOR . strtr($class, '\\', DIRECTORY_SEPARATOR) . '.php';



        if (file_exists($file)) {

            include_once $file;

        }

    });
<?php }




if ($phpcsDir !== false && file_exists($phpcsDir . $ds . 'autoload.php')) {


    require_once $phpcsDir . $ds . 'autoload.php';
<?php     require_once $phpcsDir . '/src/Util/Tokens.php';



} elseif ($phpcsDir !== false && file_exists($phpcsDir . $ds . 'CodeSniffer.php')) {


    require_once $phpcsDir . $ds . 'CodeSniffer.php';
<?php     require_once $phpcsDir . $ds . 'CodeSniffer.php';



    if (isset($vendorDir) && file_exists($vendorDir . $ds . 'autoload.php')) {

        require_once $vendorDir . $ds . 'autoload.php';

    }

} else {
<?php }




if ($phpcsUtilsDir !== false && file_exists($phpcsUtilsDir . $ds . 'phpcsutils-autoload.php')) {

    require_once $phpcsUtilsDir . $ds . 'phpcsutils-autoload.php';

} else {

    echo 'Uh oh... can\'t find PHPCSUtils.