Passed
Push — master ( c16b3d...220de3 )
by Amin
04:06
created

StreamToFileFilter::StreamToFileFilter()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 1
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
13
namespace Streaming\Filters;
14
15
16
use Streaming\StreamToFile;
17
18
class StreamToFileFilter extends Filter
19
{
20
21
    /**
22
     * @param $media
23
     * @return mixed
24
     */
25
    public function setFilter($media): void
26
    {
27
        $this->filter = $this->StreamToFileFilter($media);
28
    }
29
30
    private function StreamToFileFilter(StreamToFile $media)
0 ignored issues
show
Unused Code introduced by
The parameter $media is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

30
    private function StreamToFileFilter(/** @scrutinizer ignore-unused */ StreamToFile $media)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
31
    {
32
        return ['-c', 'copy'];
33
    }
34
}