Code Duplication    Length = 3-3 lines in 2 locations

src/BlocktrailSDK.php 2 locations

@@ 744-746 (lines=3) @@
741
        // create primary public key from the created private key
742
        $options['primary_public_key'] = $options['primary_private_key']->buildKey($walletPath->keyIndexPath()->publicPath());
743
744
        if (!isset($options['backup_public_key'])) {
745
            $options['backup_public_key'] = BIP32Key::create(HierarchicalKeyFactory::fromEntropy(new Buffer($backupSeed)), "m")->buildKey("M");
746
        }
747
748
        // create a checksum of our private key which we'll later use to verify we used the right password
749
        $checksum = $options['primary_private_key']->publicKey()->getAddress()->getAddress();
@@ 882-884 (lines=3) @@
879
        // create primary public key from the created private key
880
        $options['primary_public_key'] = $options['primary_private_key']->buildKey($walletPath->keyIndexPath()->publicPath());
881
882
        if (!isset($options['backup_public_key'])) {
883
            $options['backup_public_key'] = BIP32Key::create(HierarchicalKeyFactory::fromEntropy($backupSeed), "m")->buildKey("M");
884
        }
885
886
        // create a checksum of our private key which we'll later use to verify we used the right password
887
        $checksum = $options['primary_private_key']->publicKey()->getAddress()->getAddress();