Code Duplication    Length = 7-7 lines in 2 locations

src/Validators/Billet/DepositBilletValidator.php 1 location

@@ 55-61 (lines=7) @@
52
     * @return void
53
     * @throws \InvalidArgumentException
54
     */
55
    private function validateAlias()
56
    {
57
        $alias = $this->depositBillet->alias;
58
        if (empty($alias) || !is_string($alias)) {
59
            throw new \InvalidArgumentException('alias should be a string');
60
        }
61
    }
62
63
    /**
64
     * This validates the document number

src/Validators/Card/CardValidator.php 1 location

@@ 83-89 (lines=7) @@
80
     * @return void
81
     * @throws \InvalidArgumentException
82
     */
83
    private function validateAlias()
84
    {
85
        $alias = $this->card->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