Deployment\Deployer::loadDeploymentFile PHP Метод

loadDeploymentFile() приватный Метод

Downloads and decodes .htdeployment from the server.
private loadDeploymentFile ( ) : string[] | null
Результат string[] | null relative paths, starts with /
    private function loadDeploymentFile()
    {
        $tempFile = tempnam($this->tempDir, 'deploy');
        try {
            $this->server->readFile($this->remoteDir . '/' . $this->deploymentFile, $tempFile);
        } catch (ServerException $e) {
            return;
        }
        $content = gzinflate(file_get_contents($tempFile));
        $res = [];
        foreach (explode("\n", $content) as $item) {
            if (count($item = explode('=', $item, 2)) === 2) {
                $res[$item[1]] = $item[0] === '1' ? TRUE : $item[0];
            }
        }
        return $res;
    }