Code Duplication    Length = 7-7 lines in 2 locations

src/Entity/AddressValidationResponse.php 2 locations

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