Platformsh\Cli\Command\SshKey\SshKeyAddCommand::keyExistsByFingerprint PHP Метод

keyExistsByFingerprint() защищенный Метод

Check whether the SSH key already exists in the user's account.
protected keyExistsByFingerprint ( string $fingerprint ) : boolean
$fingerprint string The public key fingerprint (as an MD5 hash).
Результат boolean
    protected function keyExistsByFingerprint($fingerprint)
    {
        foreach ($this->api()->getClient()->getSshKeys() as $existingKey) {
            if ($existingKey->fingerprint === $fingerprint) {
                return true;
            }
        }
        return false;
    }