Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 27.78% |
Changes | 0 |
1 | <?php |
||
12 | class ProbeService implements ProbeServiceInterface |
||
13 | { |
||
14 | use PathAssertionsTrait; |
||
15 | |||
16 | /** @var FFProbeConfig */ |
||
17 | protected $ffprobeConfig; |
||
18 | |||
19 | /** @var FFMpegConfig */ |
||
20 | protected $ffmpegConfig; |
||
21 | |||
22 | 5 | public function __construct(FFProbeConfig $ffProbeConfig, FFMpegConfig $ffmpegConfig) |
|
23 | { |
||
24 | 5 | $this->ffprobeConfig = $ffProbeConfig; |
|
25 | 5 | $this->ffmpegConfig = $ffmpegConfig; |
|
26 | 5 | $this->ffprobeConfig->getProcess()->ensureBinaryExists(); |
|
27 | 5 | } |
|
28 | |||
29 | public function getMediaInfo(string $file): VideoInfo |
||
49 | } |
||
50 | } |
||
51 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.