Total Complexity | 9 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 94.12% |
Changes | 0 |
1 | <?php |
||
6 | class TablePrefixSubscriber implements \Doctrine\Common\EventSubscriber |
||
7 | { |
||
8 | private $tableprefix; |
||
9 | |||
10 | 50 | public function __construct($tableprefix) |
|
11 | { |
||
12 | 50 | $this->tableprefix = $tableprefix; |
|
13 | 50 | } |
|
14 | |||
15 | 50 | public function getSubscribedEvents() |
|
16 | { |
||
17 | 50 | return array('loadClassMetadata'); |
|
18 | } |
||
19 | |||
20 | 37 | public function loadClassMetadata(LoadClassMetadataEventArgs $args) |
|
36 | } |
||
37 | } |
||
38 | } |
||
41 |
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.