Code Duplication    Length = 9-10 lines in 2 locations

src/Role/ReadModel/Search/Projector.php 2 locations

@@ 84-92 (lines=9) @@
81
    /**
82
     * @param ConstraintAdded $constraintAdded
83
     */
84
    protected function applyConstraintAdded(ConstraintAdded $constraintAdded)
85
    {
86
        if ($constraintAdded->getSapiVersion()
87
                ->toNative() === $this->sapiVersion->toNative()) {
88
            $this->repository->updateConstraint(
89
                $constraintAdded->getUuid(),
90
                $constraintAdded->getQuery()
91
            );
92
        }
93
    }
94
95
    /**
@@ 98-107 (lines=10) @@
95
    /**
96
     * @param ConstraintUpdated $constraintUpdated
97
     */
98
    protected function applyConstraintUpdated(ConstraintUpdated $constraintUpdated)
99
    {
100
        if ($constraintUpdated->getSapiVersion()
101
                ->toNative() === $this->sapiVersion->toNative()) {
102
            $this->repository->updateConstraint(
103
                $constraintUpdated->getUuid(),
104
                $constraintUpdated->getQuery()
105
            );
106
        }
107
    }
108
109
    /**
110
     * @param ConstraintRemoved $constraintRemoved