| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function __construct(AbstractModule $module, $format) { |
||
| 18 | $this->module = $module; |
||
| 19 | $templatePath = sprintf('%s/%s/templates/%s', KEEKO_PATH_MODULES, $module->getModel()->getName(), $format); |
||
| 20 | |||
| 21 | if (file_exists($templatePath)) { |
||
| 22 | $loader = new \Twig_Loader_Filesystem($templatePath); |
||
|
|
|||
| 23 | $this->twig = new \Twig_Environment($loader); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 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.