PHP 8.2.31
Preview: bootstrap.php Size: 800 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/bootstrap.php

<?php

declare(strict_types = 1);

// inspired by https://github.com/phpstan/phpstan/blob/master/bootstrap.php
spl_autoload_register(function (string $class): void {
    static $composerAutoloader;

    // already loaded in bin/rector.php
    if (defined('__RECTOR_RUNNING__')) {
        return;
    }

    // load prefixed or native class, e.g. for running tests
    if (strpos($class, 'RectorPrefix') === 0 || strpos($class, 'Rector\\') === 0) {
        if ($composerAutoloader === null) {
            // prefixed version autoload
            $composerAutoloader = require __DIR__ . '/vendor/autoload.php';
        }

        // some weird collision with PHPStan custom rule tests
        if (! is_int($composerAutoloader)) {
            $composerAutoloader->loadClass($class);
        }
    }
});

Directory Contents

Dirs: 7 × Files: 5

Name Size Perms Modified Actions
bin DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
config DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
rules DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
src DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
templates DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
vendor DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
800 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
754 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.10 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
30.31 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
6.11 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

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