| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class DetectionService implements DetectionServiceInterface |
||
| 14 | { |
||
| 15 | /** @var FFMpegConfig */ |
||
| 16 | protected $ffmpegConfig; |
||
| 17 | |||
| 18 | 1 | public function __construct(FFMpegConfig $ffmpegConfig) |
|
| 19 | { |
||
| 20 | 1 | $this->ffmpegConfig = $ffmpegConfig; |
|
|
|
|||
| 21 | 1 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @param int $maxFramesToAnalyze interlacement detection can be heavy, limit the number of frames to analyze |
||
| 25 | * |
||
| 26 | * @throws SPRuntimeException |
||
| 27 | * @throws FileNotFoundException |
||
| 28 | */ |
||
| 29 | 1 | public function detectInterlacement(string $file, int $maxFramesToAnalyze = InterlaceDetect::DEFAULT_INTERLACE_MAX_FRAMES): InterlaceGuess |
|
| 34 | } |
||
| 35 | } |
||
| 36 |
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.