Code Duplication    Length = 10-10 lines in 2 locations

src/Encoder/EncoderPropertiesTrait.php 2 locations

@@ 441-450 (lines=10) @@
438
     *
439
     * @return self|EncoderInterface
440
     */
441
    public function withRelationshipSelfLink($resource, string $relationshipName): EncoderInterface
442
    {
443
        $link = $this
444
            ->getSchemaContainer()->getSchema($resource)
445
            ->getRelationshipSelfLink($resource, $relationshipName);
446
447
        return $this->withLinks([
448
            LinkInterface::SELF => $link,
449
        ]);
450
    }
451
452
    /**
453
     * @param mixed  $resource
@@ 458-467 (lines=10) @@
455
     *
456
     * @return self|EncoderInterface
457
     */
458
    public function withRelationshipRelatedLink($resource, string $relationshipName): EncoderInterface
459
    {
460
        $link = $this
461
            ->getSchemaContainer()->getSchema($resource)
462
            ->getRelationshipRelatedLink($resource, $relationshipName);
463
464
        return $this->withLinks([
465
            LinkInterface::RELATED => $link,
466
        ]);
467
    }
468
469
    /**
470
     * @param iterable $iterable1