Code Duplication    Length = 8-8 lines in 2 locations

src/Serialize/TypeResolver/SerializerTypeDefinitionMap.php 2 locations

@@ 110-117 (lines=8) @@
107
     *
108
     * @return string
109
     */
110
    public function getTypeNameByOperationId(string $operationId): string
111
    {
112
        if (!isset($this->typeNames["_op_$operationId"])) {
113
            throw new \InvalidArgumentException("Operation '$operationId' not in type map");
114
        }
115
116
        return $this->typeNames["_op_$operationId"];
117
    }
118
119
    /**
120
     * @param string $fqdn
@@ 124-131 (lines=8) @@
121
     *
122
     * @return string
123
     */
124
    private function getType(string $fqdn): string
125
    {
126
        if (!isset($this->typeNames[$fqdn])) {
127
            throw new \InvalidArgumentException("Type '$fqdn' not in type map");
128
        }
129
130
        return $this->typeNames[$fqdn];
131
    }
132
}
133