| Total Lines | 26 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 4 | call_user_func(function (string $extKey) { |
||
|
|
|||
| 5 | if (TYPO3_MODE === 'BE') { |
||
| 6 | //Fetch ExtensionConfiguration |
||
| 7 | \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
||
| 8 | \KamiYang\ProjectVersion\Configuration\ExtensionConfiguration::class |
||
| 9 | ); |
||
| 10 | |||
| 11 | // Register custom icon |
||
| 12 | \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class) |
||
| 13 | ->registerIcon( |
||
| 14 | 'information-project-version', |
||
| 15 | \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class, |
||
| 16 | [ |
||
| 17 | 'source' => 'EXT:project_version/Resources/Public/Icons/ToolbarItem.svg' |
||
| 18 | ] |
||
| 19 | ); |
||
| 20 | |||
| 21 | // Add project version to SystemInformation |
||
| 22 | $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
||
| 23 | \TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class |
||
| 24 | ); |
||
| 25 | $signalSlotDispatcher->connect( |
||
| 26 | \TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::class, |
||
| 27 | 'getSystemInformation', |
||
| 28 | \KamiYang\ProjectVersion\Backend\ToolbarItems\ProjectVersionSlot::class, |
||
| 29 | 'getProjectVersion' |
||
| 30 | ); |
||
| 33 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.