Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 349-360 (lines=12) @@
346
     * @throws ConflictException
347
     * @throws UnprocessableEntityException
348
     */
349
    public function record(
350
        $name,
351
        $format,
352
        $maxDurationSeconds = null,
353
        $maxSilenceSeconds = null,
354
        $ifExists = null,
355
        $beep = null,
356
        $terminateOn = null
357
    ) {
358
        return $this->client->bridges()->record($this->id, $name, $format, $maxDurationSeconds, $maxSilenceSeconds,
359
            $ifExists, $beep, $terminateOn);
360
    }
361
362
    /**
363
     * @param AriClient $client

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

@@ 656-667 (lines=12) @@
653
     * @throws ConflictException
654
     * @throws UnprocessableEntityException
655
     */
656
    public function record(
657
        $name,
658
        $format,
659
        $maxDurationSeconds = null,
660
        $maxSilenceSeconds = null,
661
        $ifExists = null,
662
        $beep = null,
663
        $terminateOn = null
664
    )
665
    {
666
        return $this->client->channels()->record($this->id, $name, $format, $maxDurationSeconds, $maxSilenceSeconds,
667
            $ifExists, $beep, $terminateOn);
668
    }
669
670
    /**