Code Duplication    Length = 3-3 lines in 2 locations

eZ/Publish/Core/REST/Server/Output/PathExpansion/ExpansionGenerator.php 2 locations

@@ 174-176 (lines=3) @@
171
     */
172
    public function startAttribute($name, $value)
173
    {
174
        if (!in_array($name, ['href', 'media-type']) || count($this->stack) > 1) {
175
            $this->innerGenerator->startAttribute($name, $value);
176
        }
177
    }
178
179
    /**
@@ 186-188 (lines=3) @@
183
     */
184
    public function endAttribute($name)
185
    {
186
        if (!in_array($name, ['href', 'media-type']) || count($this->stack) > 1) {
187
            $this->innerGenerator->endAttribute($name);
188
        }
189
    }
190
191
    /**