1 | <?php declare(strict_types=1); |
||
9 | abstract class AbstractServiceAdapter implements VideoAdapterInterface |
||
10 | { |
||
11 | public $rawUrl; |
||
12 | public $videoId; |
||
13 | public $pattern; |
||
14 | public $renderer; |
||
15 | |||
16 | 56 | public function __construct(string $url, string $pattern, EmbedRendererInterface $renderer) |
|
22 | |||
23 | 2 | public function getRawUrl(): string |
|
27 | |||
28 | 1 | public function setRawUrl(string $rawUrl) |
|
32 | |||
33 | 19 | public function getVideoId(): string |
|
37 | |||
38 | 56 | public function setVideoId(string $videoId) |
|
42 | |||
43 | 2 | public function getPattern(): string |
|
47 | |||
48 | 1 | public function setPattern(string $pattern) |
|
52 | |||
53 | 2 | public function getRenderer(): EmbedRendererInterface |
|
57 | |||
58 | 1 | public function setRenderer(EmbedRendererInterface $renderer) |
|
62 | |||
63 | /** |
||
64 | * @throws NotEmbeddableException |
||
65 | */ |
||
66 | 1 | public function getEmbedCode( |
|
84 | |||
85 | /** |
||
86 | * @throws InvalidUrlException |
||
87 | */ |
||
88 | 14 | public function getScheme(bool $forceSecure = false): string |
|
102 | |||
103 | public function isThumbnailSizeAvailable($intendedSize): bool |
||
107 | } |
||
108 |
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.