Failed Conditions
Push — master ( 45d676...509703 )
by Sébastien
05:56
created

src/Video/ThumbParamsInterface.php (5 issues)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Soluble\MediaTools\Video;
6
7
use Soluble\MediaTools\Common\Service\ActionParamInterface;
8
use Soluble\MediaTools\Video\Exception\InvalidArgumentException;
9
10
interface ThumbParamsInterface extends ActionParamInterface
11
{
12
    public const PARAM_QUALITY_SCALE       = 'QUALITY_SCALE';
0 ignored issues
show
Equals sign not aligned with surrounding assignments; expected 1 space but found 7 spaces

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

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
13
    public const PARAM_VIDEO_FILTER        = 'VIDEO_FILTER';
0 ignored issues
show
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 8 spaces

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

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
14
    public const PARAM_SEEK_TIME           = 'SEEK_TIME';
0 ignored issues
show
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 11 spaces

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

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
15
    public const PARAM_OVERWRITE           = 'OVERWRITE';
0 ignored issues
show
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 11 spaces

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

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
16
    public const PARAM_OUTPUT_FORMAT       = 'OUTPUT_FORMAT';
0 ignored issues
show
Equals sign not aligned with surrounding assignments; expected 1 space but found 7 spaces

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

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
17
18
    /**
19
     * Built-in params.
20
     *
21
     * @var string[]
22
     */
23
    public const BUILTIN_PARAMS = [
24
        self::PARAM_QUALITY_SCALE,
25
        self::PARAM_VIDEO_FILTER,
26
        self::PARAM_SEEK_TIME,
27
        self::PARAM_OVERWRITE,
28
        self::PARAM_OUTPUT_FORMAT,
29
    ];
30
31
    /**
32
     * Set a built-in param...
33
     *
34
     * @param string $paramName  a param that must exist in builtInParams
35
     * @param mixed  $paramValue
36
     *
37
     * @throws InvalidArgumentException in case of unsupported builtin param
38
     */
39
    public function withBuiltInParam(string $paramName, $paramValue): self;
40
}
41