Code Duplication    Length = 11-11 lines in 2 locations

src/Validators/Card/WalletValidator.php 2 locations

@@ 72-82 (lines=11) @@
69
     * @return void
70
     * @throws \InvalidArgumentException
71
     */
72
    public function wallet()
73
    {
74
        $wallet = $this->wallet->wallet;
75
        if (empty($wallet) || !is_string($wallet)) {
76
            throw new \InvalidArgumentException('wallet should be a string');
77
        }
78
79
        if (!in_array($wallet, $this->wallets)) {
80
            throw new \InvalidArgumentException('this wallet is not valid');
81
        }
82
    }
83
84
    /**
85
     * @return void
@@ 88-98 (lines=11) @@
85
     * @return void
86
     * @throws \InvalidArgumentException
87
     */
88
    public function brand()
89
    {
90
        $brand = $this->wallet->brand;
91
        if (empty($brand) || !is_string($brand)) {
92
            throw new \InvalidArgumentException('brand should be a string');
93
        }
94
95
        if (!in_array($brand, $this->brands)) {
96
            throw new \InvalidArgumentException('this brand is not valid');
97
        }
98
    }
99
}
100