| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public static function addToAdminLinks( ALTree &$admin_links_tree ) { |
||
| 23 | $displaying_data_section = $admin_links_tree->getSection( |
||
| 24 | wfMessage( 'smw_adminlinks_displayingdata' )->text() |
||
| 25 | ); |
||
| 26 | |||
| 27 | // Escape if SMW hasn't added links. |
||
| 28 | if ( is_null( $displaying_data_section ) ) { |
||
| 29 | return true; |
||
| 30 | } |
||
| 31 | |||
| 32 | $smw_docu_row = $displaying_data_section->getRow( 'smw' ); |
||
| 33 | |||
| 34 | $maps_docu_label = wfMessage( 'adminlinks_documentation', 'Maps' )->text(); |
||
| 35 | $smw_docu_row->addItem( |
||
| 36 | AlItem::newFromExternalLink( 'https://www.semantic-mediawiki.org/wiki/Extension:Maps', $maps_docu_label ) |
||
| 37 | ); |
||
| 38 | |||
| 39 | return true; |
||
| 40 | } |
||
| 41 | |||
| 65 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.