Code Duplication    Length = 3-3 lines in 2 locations

src/BlocktrailSDK.php 2 locations

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