Code Duplication    Length = 3-3 lines in 2 locations

src/BlocktrailSDK.php 2 locations

@@ 768-770 (lines=3) @@
765
        // create primary public key from the created private key
766
        $options['primary_public_key'] = $options['primary_private_key']->buildKey($walletPath->keyIndexPath()->publicPath());
767
768
        if (!isset($options['backup_public_key'])) {
769
            $options['backup_public_key'] = BIP32Key::create(HierarchicalKeyFactory::fromEntropy(new Buffer($backupSeed)), "m")->buildKey("M");
770
        }
771
772
        // create a checksum of our private key which we'll later use to verify we used the right password
773
        $checksum = $options['primary_private_key']->publicKey()->getAddress()->getAddress();
@@ 906-908 (lines=3) @@
903
        // create primary public key from the created private key
904
        $options['primary_public_key'] = $options['primary_private_key']->buildKey($walletPath->keyIndexPath()->publicPath());
905
906
        if (!isset($options['backup_public_key'])) {
907
            $options['backup_public_key'] = BIP32Key::create(HierarchicalKeyFactory::fromEntropy($backupSeed), "m")->buildKey("M");
908
        }
909
910
        // create a checksum of our private key which we'll later use to verify we used the right password
911
        $checksum = $options['primary_private_key']->publicKey()->getAddress()->getAddress();