Passed
Push — master ( 8e077c...e6cc46 )
by Amin
03:50
created

dash()   A

Complexity

Conditions 4
Paths 14

Size

Total Lines 23
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 5
Bugs 4 Features 3
Metric Value
eloc 15
dl 0
loc 23
rs 9.7666
c 5
b 4
f 3
cc 4
nc 14
nop 3
1
<?php
2
3
/**
4
 * This file is part of the PHP-FFmpeg-video-streaming package.
5
 *
6
 * (c) Amin Yazdanpanah <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
use FFMpeg\FFProbe;
13
use Psr\Log\LoggerInterface;
14
use Streaming\FFMpeg;
15
16
17
if (!function_exists('ffmpeg')) {
18
19
    /**
20
     * @param array $config
21
     * @param LoggerInterface|null $logger
22
     * @param FFProbe|null $probe
23
     * @return FFMpeg
24
     */
25
    function ffmpeg($config = array(), LoggerInterface $logger = null, FFProbe $probe = null)
26
    {
27
        return Streaming\FFMpeg::create($config, $logger, $probe);
28
    }
29
}