| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| 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( wfMessage( 'smw_adminlinks_displayingdata' )->text() ); |
||
| 24 | |||
| 25 | // Escape if SMW hasn't added links. |
||
| 26 | if ( is_null( $displaying_data_section ) ) { |
||
| 27 | return true; |
||
| 28 | } |
||
| 29 | |||
| 30 | $smw_docu_row = $displaying_data_section->getRow( 'smw' ); |
||
| 31 | |||
| 32 | $maps_docu_label = wfMessage( 'adminlinks_documentation', 'Maps' )->text(); |
||
| 33 | $smw_docu_row->addItem( AlItem::newFromExternalLink( 'https://semantic-mediawiki.org/wiki/Maps', $maps_docu_label ) ); |
||
| 34 | |||
| 35 | return true; |
||
| 36 | } |
||
| 37 | |||
| 60 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.