Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
60 | 25 | public function getConnection() { |
|
61 | 25 | if ( $this->connection === null ) { |
|
62 | 25 | $this->connection = wfGetLB( $this->wiki )->getConnection( $this->connectionId, $this->groups, $this->wiki ); |
|
63 | } |
||
64 | |||
65 | 25 | assert( $this->connection instanceof DatabaseBase ); |
|
|
|||
66 | |||
67 | 25 | return $this->connection; |
|
68 | } |
||
69 | |||
81 | } |