Code Duplication    Length = 7-7 lines in 2 locations

src/Entity/AddressValidationResponse.php 2 locations

@@ 31-37 (lines=7) @@
28
     *
29
     * @return bool
30
     */
31
    public function noCandidates()
32
    {
33
        if(AddressValidation::REQUEST_OPTION_ADDRESS_CLASSIFICATION == $this->requestAction) {
34
            throw new \BadMethodCallException(__METHOD__.' should not be called on Address Classification only requests.');
35
        }
36
        return isset($this->response->NoCandidatesIndicator);
37
    }
38
39
    /**
40
     * Tells whether or not the ValidAddressIndicator is present on the XML document.
@@ 61-67 (lines=7) @@
58
     * @throws \BadMethodCallException
59
     * @return bool
60
     */
61
    public function isAmbiguous()
62
    {
63
        if(AddressValidation::REQUEST_OPTION_ADDRESS_CLASSIFICATION == $this->requestAction) {
64
            throw new \BadMethodCallException(__METHOD__.' should not be called on Address Classification only requests.');
65
        }
66
        return isset($this->response->AmbiguousAddressIndicator);
67
    }
68
69
    /**
70
     * @throws \BadMethodCallException