Skip to content

Commit 4bb7d3b

Browse files
committed
[TASK] code format
1 parent 2284333 commit 4bb7d3b

File tree

4 files changed

+417
-415
lines changed

4 files changed

+417
-415
lines changed

Configuration/TCA/Overrides/page.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
use \TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
55

6-
$extensionKey = 'hh_slider';
6+
call_user_func(function(string $extensionKey) {
7+
// Typo3 extension manager gearwheel icon (ext_conf_template.txt)
8+
$extensionConfiguration = isset($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extensionKey]) ? $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extensionKey] : [];
9+
$extensionConfig = isset($extensionConfiguration['config']) ? $extensionConfiguration['config'] : [];
710

8-
// Typo3 extension manager gearwheel icon (ext_conf_template.txt)
9-
$extensionConfiguration = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extensionKey];
10-
$extensionConfig = $extensionConfiguration['config'];
11-
12-
// If automatically include of TypoScript is disabled, then you can include it in the (BE) static-template select-box
13-
if ($extensionConfig['typoScript'] === '0') {
14-
ExtensionManagementUtility::registerPageTSConfigFile(
15-
$extensionKey,
16-
'Configuration/TsConfig/AllPage.typoscript',
17-
'Hauer-Heinrich - Slider Page TS'
18-
);
19-
}
11+
// If automatically include of TypoScript is disabled, then you can include it in the (BE) static-template select-box
12+
if ($extensionConfig['typoScript'] === '0') {
13+
ExtensionManagementUtility::registerPageTSConfigFile(
14+
$extensionKey,
15+
'Configuration/TsConfig/AllPage.typoscript',
16+
'Hauer-Heinrich - Slider Page TS'
17+
);
18+
}
19+
}, 'hh_slider');

Configuration/TCA/Overrides/sys_template.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
use \TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
55

6-
$extensionKey = 'hh_slider';
6+
call_user_func(function(string $extensionKey) {
7+
// Typo3 extension manager gearwheel icon (ext_conf_template.txt)
8+
$extensionConfiguration = isset($GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extensionKey]) ? $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extensionKey] : [];
9+
$extensionConfig = isset($extensionConfiguration['config']) ? $extensionConfiguration['config'] : [];
710

8-
// Typo3 extension manager gearwheel icon (ext_conf_template.txt)
9-
$extensionConfiguration = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][$extensionKey];
10-
$extensionConfig = $extensionConfiguration['config'];
11-
12-
// If automatically include of TypoScript is disabled, then you can include it in the (BE) static-template select-box
13-
if ($extensionConfig['typoScript'] === '0') {
14-
ExtensionManagementUtility::addStaticFile(
15-
$extensionKey,
16-
'Configuration/TypoScript',
17-
'Hauer-Heinrich - Slider'
18-
);
19-
}
11+
// If automatically include of TypoScript is disabled, then you can include it in the (BE) static-template select-box
12+
if ($extensionConfig['typoScript'] === '0') {
13+
ExtensionManagementUtility::addStaticFile(
14+
$extensionKey,
15+
'Configuration/TypoScript',
16+
'Hauer-Heinrich - Slider'
17+
);
18+
}
19+
}, 'hh_slider');

0 commit comments

Comments
 (0)