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

StreamToFileFilter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
dl 0
loc 15
rs 10
c 1
b 0
f 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setFilter() 0 3 1
A StreamToFileFilter() 0 3 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
}