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

hls()   A

Complexity

Conditions 4
Paths 14

Size

Total Lines 22
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 6
Bugs 5 Features 6
Metric Value
cc 4
eloc 15
c 6
b 5
f 6
nc 14
nop 4
dl 0
loc 22
rs 9.7666
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
}