Code Duplication    Length = 3-5 lines in 2 locations

src/Schema/SchemaProvider.php 2 locations

@@ 251-255 (lines=5) @@
248
    protected function readLinks($relationshipName, array $description, $isShowSelf, $isShowRelated)
249
    {
250
        $links = $this->getValue($description, self::LINKS, []);
251
        if ($isShowSelf === true && isset($links[LinkInterface::SELF]) === false) {
252
            $links[LinkInterface::SELF] = $this->factory->createLink(
253
                DocumentInterface::KEYWORD_RELATIONSHIPS. '/'.$relationshipName
254
            );
255
        }
256
        if ($isShowRelated === true && isset($links[LinkInterface::RELATED]) === false) {
257
            $links[LinkInterface::RELATED] = $this->factory->createLink($relationshipName);
258
        }
@@ 256-258 (lines=3) @@
253
                DocumentInterface::KEYWORD_RELATIONSHIPS. '/'.$relationshipName
254
            );
255
        }
256
        if ($isShowRelated === true && isset($links[LinkInterface::RELATED]) === false) {
257
            $links[LinkInterface::RELATED] = $this->factory->createLink($relationshipName);
258
        }
259
260
        return $links;
261
    }