| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 3 | public function getFFmpegCLIValue(): string |
|
| 49 | { |
||
| 50 | 3 | $scaleArg = sprintf( |
|
| 51 | 3 | 'scale=w=%s:h=%s', |
|
| 52 | 3 | $this->width, |
|
| 53 | 3 | $this->height |
|
| 54 | ); |
||
| 55 | |||
| 56 | 3 | if ($this->aspect_ratio_mode !== null) { |
|
| 57 | 2 | $scaleArg .= sprintf( |
|
| 58 | 2 | ':force_original_aspect_ratio=%s', |
|
| 59 | 2 | $this->aspect_ratio_mode |
|
| 60 | ); |
||
| 61 | } |
||
| 62 | |||
| 63 | 3 | return $scaleArg; |
|
| 64 | } |
||
| 66 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.