Code Duplication    Length = 3-3 lines in 2 locations

src/BlocktrailSDK.php 2 locations

@@ 640-642 (lines=3) @@
637
        $data = $this->storeNewWalletV1($options['identifier'], $primaryPublicKey->tuple(), $backupPublicKey->tuple(), $primaryMnemonic, $checksum, $options['key_index']);
638
639
        // received the blocktrail public keys
640
        $blocktrailPublicKeys = Util::arrayMapWithIndex(function ($keyIndex, $pubKeyTuple) {
641
            return [$keyIndex, BIP32Key::create(HierarchicalKeyFactory::fromExtended($pubKeyTuple[0]), $pubKeyTuple[1])];
642
        }, $data['blocktrail_public_keys']);
643
644
        $wallet = new WalletV1(
645
            $this,
@@ 758-760 (lines=3) @@
755
        );
756
757
        // received the blocktrail public keys
758
        $blocktrailPublicKeys = Util::arrayMapWithIndex(function ($keyIndex, $pubKeyTuple) {
759
            return [$keyIndex, BIP32Key::create(HierarchicalKeyFactory::fromExtended($pubKeyTuple[0]), $pubKeyTuple[1])];
760
        }, $data['blocktrail_public_keys']);
761
762
        $wallet = new WalletV2(
763
            $this,