Code Duplication    Length = 7-7 lines in 2 locations

src/Validators/VirtualCard/VirtualCardValidator.php 2 locations

@@ 69-75 (lines=7) @@
66
     * @return void
67
     * @throws InvalidArgumentException
68
     */
69
    private function validateCardName()
70
    {
71
        $cardName = $this->virtualCard->cardName;
72
        if (empty($cardName) || !is_string($cardName)) {
73
            throw new \InvalidArgumentException('card name should be a string');
74
        }
75
    }
76
77
    /**
78
     * This validate a virtual card alias
@@ 83-89 (lines=7) @@
80
     * @return void
81
     * @throws InvalidArgumentException
82
     */
83
    private function validateAlias()
84
    {
85
        $alias = $this->virtualCard->alias;
86
        if (empty($alias) || !is_string($alias)) {
87
            throw new \InvalidArgumentException('alias should be a string');
88
        }
89
    }
90
91
    /**
92
     * This validate a virtual card bank agency