Code Duplication    Length = 12-12 lines in 2 locations

src/wormling/phparia/Resources/Channel.php 1 location

@@ 608-619 (lines=12) @@
605
     * @throws ConflictException
606
     * @throws UnprocessableEntityException
607
     */
608
    public function record(
609
        $name,
610
        $format,
611
        $maxDurationSeconds = null,
612
        $maxSilenceSeconds = null,
613
        $ifExists = null,
614
        $beep = null,
615
        $terminateOn = null
616
    ) {
617
        return $this->client->channels()->record($this->id, $name, $format, $maxDurationSeconds, $maxSilenceSeconds,
618
            $ifExists, $beep, $terminateOn);
619
    }
620
621
    /**
622
     * Get the value of a channel variable or function.

src/wormling/phparia/Resources/Bridge.php 1 location

@@ 302-313 (lines=12) @@
299
     * @throws ConflictException
300
     * @throws UnprocessableEntityException
301
     */
302
    public function record(
303
        $name,
304
        $format,
305
        $maxDurationSeconds = null,
306
        $maxSilenceSeconds = null,
307
        $ifExists = null,
308
        $beep = null,
309
        $terminateOn = null
310
    ) {
311
        return $this->client->bridges()->record($this->id, $name, $format, $maxDurationSeconds, $maxSilenceSeconds,
312
            $ifExists, $beep, $terminateOn);
313
    }
314
315
    /**
316
     * @param AriClient $client