Code Duplication    Length = 10-10 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/User/Handler.php 2 locations

@@ 599-608 (lines=10) @@
596
     *
597
     * @return \eZ\Publish\SPI\Persistence\User\RoleAssignment[]
598
     */
599
    public function loadRoleAssignmentsByRoleId($roleId)
600
    {
601
        $data = $this->roleGateway->loadRoleAssignmentsByRoleId($roleId);
602
603
        if (empty($data)) {
604
            return array();
605
        }
606
607
        return $this->mapper->mapRoleAssignments($data);
608
    }
609
610
    /**
611
     * Loads roles assignments to a user/group.
@@ 621-630 (lines=10) @@
618
     *
619
     * @return \eZ\Publish\SPI\Persistence\User\RoleAssignment[]
620
     */
621
    public function loadRoleAssignmentsByGroupId($groupId, $inherit = false)
622
    {
623
        $data = $this->roleGateway->loadRoleAssignmentsByGroupId($groupId, $inherit);
624
625
        if (empty($data)) {
626
            return array();
627
        }
628
629
        return $this->mapper->mapRoleAssignments($data);
630
    }
631
}
632