| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 3 | public function tryToLoadIwMapForExternalRepository( $prefix, &$interwiki ) { |
|
| 46 | |||
| 47 | 3 | if ( !$this->isEnabledPrefixForExternalRepository( $prefix ) ) { |
|
| 48 | 2 | return true; |
|
| 49 | } |
||
| 50 | |||
| 51 | 2 | list( $iw_url, $iw_api, $iw_local ) = $this->enabledExternalRepositoryEndpoints[$prefix]; |
|
| 52 | |||
| 53 | $interwiki = array( |
||
| 54 | 2 | 'iw_prefix' => $prefix, |
|
| 55 | 2 | 'iw_url' => $iw_url, |
|
| 56 | 2 | 'iw_api' => $iw_api, |
|
| 57 | 2 | 'iw_wikiid' => $prefix, |
|
| 58 | 2 | 'iw_local' => $iw_local, |
|
| 59 | 2 | 'iw_trans' => false, |
|
| 60 | 2 | ); |
|
| 61 | |||
| 62 | 2 | return false; |
|
| 63 | } |
||
| 64 | |||
| 66 |