Code Duplication    Length = 3-3 lines in 2 locations

src/BlocktrailSDK.php 2 locations

@@ 644-646 (lines=3) @@
641
        $data = $this->storeNewWalletV1($options['identifier'], $primaryPublicKey->tuple(), $backupPublicKey->tuple(), $primaryMnemonic, $checksum, $options['key_index']);
642
643
        // received the blocktrail public keys
644
        $blocktrailPublicKeys = Util::arrayMapWithIndex(function ($keyIndex, $pubKeyTuple) {
645
            return [$keyIndex, BIP32Key::create(HierarchicalKeyFactory::fromExtended($pubKeyTuple[0]), $pubKeyTuple[1])];
646
        }, $data['blocktrail_public_keys']);
647
648
        $wallet = new WalletV1(
649
            $this,
@@ 762-764 (lines=3) @@
759
        );
760
761
        // received the blocktrail public keys
762
        $blocktrailPublicKeys = Util::arrayMapWithIndex(function ($keyIndex, $pubKeyTuple) {
763
            return [$keyIndex, BIP32Key::create(HierarchicalKeyFactory::fromExtended($pubKeyTuple[0]), $pubKeyTuple[1])];
764
        }, $data['blocktrail_public_keys']);
765
766
        $wallet = new WalletV2(
767
            $this,