Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function addReleations(&$config, &$obj) |
||
|
|||
25 | { |
||
26 | /** @var DatabaseConnection $databaseConnection */ |
||
27 | $databaseConnection = $GLOBALS['TYPO3_DB']; |
||
28 | $rows = $databaseConnection->exec_SELECTgetRows( |
||
29 | 'tablenames', |
||
30 | 'tx_tagger_tag_mm', |
||
31 | '1=1', |
||
32 | 'tablenames', |
||
33 | 'tablenames DESC' |
||
34 | ); |
||
35 | foreach ($rows as $row) { |
||
36 | $table = $row['tablenames']; |
||
37 | $icon = IconUtility::getSpriteIconForRecord($table, []); |
||
38 | if (substr($icon, 0, 4) == 'gfx/') { |
||
39 | $icon = str_replace('gfx/', '', $icon); |
||
40 | } |
||
41 | $config['items'][] = [$table, $table, $icon]; |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.