Code Duplication    Length = 3-3 lines in 2 locations

src/JsonDiscovery.php 2 locations

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