1 | <?php |
||
17 | class SsrRenderSubscriber implements EventSubscriberInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var SsrRenderInterface |
||
21 | */ |
||
22 | protected $ssrRender; |
||
23 | |||
24 | /** |
||
25 | * @var SsrRenderInterface |
||
26 | */ |
||
27 | protected $cacheSsrRender; |
||
28 | |||
29 | /** |
||
30 | * SsrRenderSubscriber constructor. |
||
31 | * |
||
32 | * @param SsrRenderInterface $ssrRender |
||
33 | * @param SsrRenderInterface $cacheSsrRender |
||
34 | */ |
||
35 | public function __construct(SsrRenderInterface $ssrRender, SsrRenderInterface $cacheSsrRender) |
||
40 | |||
41 | public function onKernelView(GetResponseForControllerResultEvent $event) |
||
60 | |||
61 | public static function getSubscribedEvents() |
||
67 | } |
||
68 |
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.