| Conditions | 3 |
| Paths | 7 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 52 | public function get($alias) { |
||
| 53 | try { |
||
| 54 | list($client_alias, $database) = $this->settings[$alias]; |
||
| 55 | $client = $this->clientFactory->get($client_alias); |
||
|
1 ignored issue
–
show
|
|||
| 56 | $result = $client->selectDatabase($database); |
||
|
1 ignored issue
–
show
|
|||
| 57 | } |
||
| 58 | catch (\InvalidArgumentException $e) { |
||
| 59 | $result = NULL; |
||
| 60 | } |
||
| 61 | catch (\MongoConnectionException $e) { |
||
| 62 | $result = NULL; |
||
| 63 | } |
||
| 64 | |||
| 65 | return $result; |
||
| 66 | } |
||
| 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.