Code Duplication    Length = 12-13 lines in 2 locations

src/Login/MobileCertificate.php 1 location

@@ 63-75 (lines=13) @@
60
     * Validation constraints for fields
61
     * @return Assert\Collection
62
     */
63
    public function getValidationConstraints()
64
    {
65
        return new Assert\Collection([
66
            'phone' => new Assert\Required([
67
                new Assert\NotBlank(),
68
                new Phone(),
69
            ]),
70
            'code' => new Assert\Required([
71
                new Assert\NotBlank(),
72
                new Code()
73
            ])
74
        ]);
75
    }
76
77
    /**
78
     * HTTP method to use

src/Login/AbstractSmartIdQuery.php 1 location

@@ 50-61 (lines=12) @@
47
     * Validation constraints for request data validation
48
     * @return Assert\Collection
49
     */
50
    public function getValidationConstraints()
51
    {
52
        return new Assert\Collection([
53
            'code' => new Assert\Required([
54
                new Assert\NotBlank(),
55
                new Code()
56
            ]),
57
            'country' => new Assert\Required([
58
                new Assert\NotBlank(),
59
            ]),
60
        ]);
61
    }
62
63
    /**
64
     * HTTP method to use