| Total Complexity | 7 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 86.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class TablePrefixSubscriber implements \Doctrine\Common\EventSubscriber |
||
| 8 | { |
||
| 9 | protected $prefix = ''; |
||
| 10 | |||
| 11 | 64 | public function __construct($prefix) |
|
| 14 | 64 | } |
|
| 15 | |||
| 16 | 64 | public function getSubscribedEvents() |
|
| 17 | { |
||
| 18 | 64 | return array('loadClassMetadata'); |
|
| 19 | } |
||
| 20 | |||
| 21 | 56 | public function loadClassMetadata(LoadClassMetadataEventArgs $args) |
|
| 34 | } |
||
| 35 | 56 | } |
|
| 39 |
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.