Code Duplication    Length = 3-3 lines in 2 locations

src/JsonDiscovery.php 2 locations

@@ 202-204 (lines=3) @@
199
200
        $key = $this->json['keysByTypeName'][$typeName];
201
202
        if (!isset($this->typesByKey[$key])) {
203
            $this->typesByKey[$key] = unserialize($this->json['typesByKey'][$key]);
204
        }
205
206
        return $this->typesByKey[$key];
207
    }
@@ 231-233 (lines=3) @@
228
        }
229
230
        foreach ($this->json['keysByTypeName'] as $key) {
231
            if (!isset($this->typesByKey[$key])) {
232
                $this->typesByKey[$key] = unserialize($this->json['typesByKey'][$key]);
233
            }
234
        }
235
236
        ksort($this->typesByKey);