Code Duplication    Length = 9-9 lines in 2 locations

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:,

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

@@ 407-415 (lines=9) @@
404
     * @throws NotFoundException
405
     * @throws ConflictException
406
     */
407
    public function unmute($channelId, $direction)
408
    {
409
        $uri = "channels/$channelId/mute?direction=".\GuzzleHttp\json_encode($direction);
410
        try {
411
            $this->client->getEndpoint()->delete($uri);
412
        } catch (RequestException $e) {
413
            $this->processRequestException($e);
414
        }
415
    }
416
417
    /**
418
     * Hold a channel.