Anons79 Mini Shell

Directory : /home/aplikasiposinfo/.trash/vendor.1/league/flysystem-ftp/
Upload File :
Current File : /home/aplikasiposinfo/.trash/vendor.1/league/flysystem-ftp/NoopCommandConnectivityChecker.php

<?php

declare(strict_types=1);

namespace League\Flysystem\Ftp;

use TypeError;
use ValueError;

class NoopCommandConnectivityChecker implements ConnectivityChecker
{
    public function isConnected($connection): bool
    {
        // @codeCoverageIgnoreStart
        try {
            $response = @ftp_raw($connection, 'NOOP');
        } catch (TypeError | ValueError $typeError) {
            return false;
        }
        // @codeCoverageIgnoreEnd

        $responseCode = $response ? (int) preg_replace('/\D/', '', implode('', $response)) : false;

        return $responseCode === 200;
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]