Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class DetectionService implements DetectionServiceInterface |
||
17 | { |
||
18 | /** @var FFMpegConfigInterface */ |
||
19 | protected $ffmpegConfig; |
||
20 | |||
21 | public function __construct(FFMpegConfigInterface $ffmpegConfig) |
||
22 | { |
||
23 | $this->ffmpegConfig = $ffmpegConfig; |
||
|
|||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param int $maxFramesToAnalyze interlacement detection can be heavy, limit the number of frames to analyze |
||
28 | * |
||
29 | * @throws DetectionExceptionInterface |
||
30 | * @throws DetectionProcessExceptionInterface |
||
31 | * @throws ProcessFailedException |
||
32 | * @throws MissingInputFileException |
||
33 | * @throws RuntimeException |
||
34 | */ |
||
35 | public function detectInterlacement(string $file, int $maxFramesToAnalyze = InterlaceDetect::DEFAULT_INTERLACE_MAX_FRAMES): InterlaceDetectGuess |
||
40 | } |
||
41 | } |
||
42 |
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.