Code Duplication    Length = 10-10 lines in 2 locations

eZ/Publish/Core/Repository/URLService.php 2 locations

@@ 111-120 (lines=10) @@
108
    /**
109
     * {@inheritdoc}
110
     */
111
    public function loadById($id)
112
    {
113
        if ($this->repository->hasAccess('url', 'view') !== true) {
114
            throw new UnauthorizedException('url', 'view');
115
        }
116
117
        return $this->buildDomainObject(
118
            $this->urlHandler->loadById($id)
119
        );
120
    }
121
122
    /**
123
     * {@inheritdoc}
@@ 125-134 (lines=10) @@
122
    /**
123
     * {@inheritdoc}
124
     */
125
    public function loadByUrl($url)
126
    {
127
        if ($this->repository->hasAccess('url', 'view') !== true) {
128
            throw new UnauthorizedException('url', 'view');
129
        }
130
131
        return $this->buildDomainObject(
132
            $this->urlHandler->loadByUrl($url)
133
        );
134
    }
135
136
    /**
137
     * {@inheritdoc}