Code Duplication    Length = 9-9 lines in 2 locations

src/wormling/phparia/Api/Channels.php 1 location

@@ 372-380 (lines=9) @@
369
     * @throws NotFoundException
370
     * @throws ConflictException
371
     */
372
    public function unmute($channelId, $direction)
373
    {
374
        $uri = "channels/$channelId/mute?direction=".\GuzzleHttp\json_encode($direction);
375
        try {
376
            $this->client->getEndpoint()->delete($uri);
377
        } catch (RequestException $e) {
378
            $this->processRequestException($e);
379
        }
380
    }
381
382
    /**
383
     * Hold a channel.

src/wormling/phparia/Api/MediaBase.php 1 location

@@ 73-81 (lines=9) @@
70
     * @throws NotFoundException
71
     * @throws ConflictException
72
     */
73
    public function stopMusicOnHold($id)
74
    {
75
        $uri = "{$this->getType()}/$id/moh";
76
        try {
77
            $this->client->getEndpoint()->delete($uri);
78
        } catch (RequestException $e) {
79
            $this->processRequestException($e);
80
        }
81
    }
82
83
    /**
84
     * Start playback of media. The media URI may be any of a number of URI's. Currently sound:,