Code Duplication    Length = 10-10 lines in 2 locations

src/Amadeus/Client/ResponseHandler/FOP/HandlerCreateFormOfPayment.php 1 location

@@ 135-144 (lines=10) @@
132
     * @param \DOMNode|null $errorCatNode
133
     * @return string
134
     */
135
    protected function makeStatusForPotentiallyNonExistent($errorCatNode)
136
    {
137
        if ($errorCatNode instanceof \DOMNode) {
138
            $status = $this->makeStatusFromErrorQualifier($errorCatNode->nodeValue);
139
        } else {
140
            $status = Result::STATUS_ERROR;
141
        }
142
143
        return $status;
144
    }
145
}
146

src/Amadeus/Client/ResponseHandler/FOP/HandlerValidateFOP.php 1 location

@@ 97-106 (lines=10) @@
94
     * @param \DOMNode|null $errorCatNode
95
     * @return string
96
     */
97
    protected function makeStatusForPotentiallyNonExistent($errorCatNode)
98
    {
99
        if ($errorCatNode instanceof \DOMNode) {
100
            $status = $this->makeStatusFromErrorQualifier($errorCatNode->nodeValue);
101
        } else {
102
            $status = Result::STATUS_ERROR;
103
        }
104
105
        return $status;
106
    }
107
}
108