src/ImboClient/Helper/PublicKeyFallback.php
public static function fallback($info) {
        $user = isset($info['user']) ? $info['user'] : null;
        $publicKey = isset($info['publicKey']) ? $info['publicKey'] : null;

        if (!$user && $publicKey) {
            $info['user'] = $publicKey;
        } else if (!$publicKey && $user) {
            $info['publicKey'] = $user;
        }

        return $info;
    }
public static function fallback($info) {
        $user = isset($info['user']) ? $info['user'] : null;
        $publicKey = isset($info['publicKey']) ? $info['publicKey'] : null;

        if (!$user && $publicKey) {
            $info['user'] = $publicKey;
        } else if (!$publicKey && $user) {
            $info['publicKey'] = $user;
        }

        return $info;
    }
public static function fallback ( $ info ) { $ user = isset ( $ info [ 'user' ] ) ? $ info [ 'user' ] : null ; $ publicKey = isset ( $ info [ 'publicKey' ] ) ? $ info [ 'publicKey' ] : null ; if ( ! $ user && $ publicKey ) { $ info [ 'user' ] = $ publicKey ; } else if ( ! $ publicKey && $ user ) { $ info [ 'publicKey' ] = $ user ; } return $ info ; }
For backwards-compatibility, we provide both `user` and `publicKey`.
In future version of ImboClient, the `publicKey` will be removed.

@param array $info
@return array
For backwards - compatibility we provide both user and publicKey . In future version of ImboClient the publicKey will be removed .