| 1 | <?php |
||
| 7 | abstract class AbstractResponse { |
||
| 8 | |||
| 9 | use TwigRenderTrait; |
||
| 10 | |||
| 11 | protected $data = []; |
||
| 12 | |||
| 13 | protected $twig; |
||
| 14 | |||
| 15 | protected $module; |
||
| 16 | |||
| 17 | public function __construct(AbstractModule $module, $format) { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Returns the service container |
||
| 29 | * |
||
| 30 | * @return ServiceContainer |
||
| 31 | */ |
||
| 32 | protected function getServiceContainer() { |
||
| 35 | |||
| 36 | public function setData($data) { |
||
| 39 | |||
| 40 | protected function getTwig() { |
||
| 43 | |||
| 44 | abstract public function run(Request $request, $data = null); |
||
| 45 | } |
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.