PHP 8.2.31
Preview: Env.php Size: 455 B
//opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/ondram/ci-detector/src/Env.php

<?php

declare (strict_types=1);
namespace RectorPrefix202411\OndraM\CiDetector;

/**
 * Encapsulate access to the environment variables
 */
class Env
{
    /**
     * @return string|false Environment variable value or false if the variable does not exist
     */
    public function get(string $name)
    {
        return \getenv($name);
    }
    public function getString(string $name) : string
    {
        return (string) $this->get($name);
    }
}

Directory Contents

Dirs: 2 × Files: 4

Name Size Perms Modified Actions
Ci DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Exception DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
2.77 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
630 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
455 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
1.83 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

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