Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class VideoDetectionService implements DetectionServiceInterface |
||
15 | { |
||
16 | /** @var FFMpegConfig */ |
||
17 | protected $ffmpegConfig; |
||
18 | |||
19 | 2 | public function __construct(FFMpegConfig $ffmpegConfig) |
|
20 | { |
||
21 | 2 | $this->ffmpegConfig = $ffmpegConfig; |
|
|
|||
22 | 2 | } |
|
23 | |||
24 | /** |
||
25 | * @param int $maxFramesToAnalyze interlacement detection can be heavy, limit the number of frames to analyze |
||
26 | * |
||
27 | * @throws SPRuntimeException |
||
28 | * @throws FileNotFoundException |
||
29 | */ |
||
30 | 2 | public function detectInterlacement(string $file, int $maxFramesToAnalyze = InterlaceDetect::DEFAULT_INTERLACE_MAX_FRAMES): InterlaceDetectGuess |
|
35 | } |
||
36 | } |
||
37 |
This check looks for improperly formatted assignments.
Every assignment must have exactly one space before and one space after the equals operator.
To illustrate:
will have no issues, while
will report issues in lines 1 and 2.