Code Duplication    Length = 15-15 lines in 2 locations

eZ/Publish/Core/SignalSlot/LocationService.php 2 locations

@@ 260-274 (lines=15) @@
257
     *
258
     * @return \eZ\Publish\API\Repository\Values\Content\Location $location, with updated hidden value
259
     */
260
    public function hideLocation(Location $location)
261
    {
262
        $returnValue = $this->service->hideLocation($location);
263
        $this->signalDispatcher->emit(
264
            new HideLocationSignal(
265
                array(
266
                    'locationId' => $location->id,
267
                    'contentId' => $location->contentId,
268
                    'currentVersionNo' => $returnValue->getContentInfo()->currentVersionNo,
269
                )
270
            )
271
        );
272
273
        return $returnValue;
274
    }
275
276
    /**
277
     * Unhides the $location.
@@ 288-302 (lines=15) @@
285
     *
286
     * @return \eZ\Publish\API\Repository\Values\Content\Location $location, with updated hidden value
287
     */
288
    public function unhideLocation(Location $location)
289
    {
290
        $returnValue = $this->service->unhideLocation($location);
291
        $this->signalDispatcher->emit(
292
            new UnhideLocationSignal(
293
                array(
294
                    'locationId' => $location->id,
295
                    'contentId' => $location->contentId,
296
                    'currentVersionNo' => $returnValue->getContentInfo()->currentVersionNo,
297
                )
298
            )
299
        );
300
301
        return $returnValue;
302
    }
303
304
    /**
305
     * Moves the subtree to $newParentLocation.