Code Duplication    Length = 3-3 lines in 2 locations

src/BlocktrailSDK.php 2 locations

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