@@ -84,12 +84,12 @@ discard block |
||
| 84 | 84 | $extensionKeys = $this->configurationService->getVariantExtensionKeysForContentType($parameters['row']['CType']); |
| 85 | 85 | $defaults = $this->configurationService->getDefaults(); |
| 86 | 86 | $preSelected = $parameters['row']['content_variant']; |
| 87 | - if (CoreContentProvider::MODE_PRESELECT === $defaults['mode'] && TRUE === empty($preSelected)) { |
|
| 87 | + if (CoreContentProvider::MODE_PRESELECT===$defaults['mode'] && TRUE===empty($preSelected)) { |
|
| 88 | 88 | $preSelected = $defaults['variant']; |
| 89 | 89 | } |
| 90 | - if (TRUE === is_array($extensionKeys) && 0 < count($extensionKeys)) { |
|
| 90 | + if (TRUE===is_array($extensionKeys) && 0<count($extensionKeys)) { |
|
| 91 | 91 | $options = $this->renderOptions($extensionKeys); |
| 92 | - } else { |
|
| 92 | + }else { |
|
| 93 | 93 | $options = array(); |
| 94 | 94 | } |
| 95 | 95 | return $this->renderSelectField($parameters, $options, $preSelected); |
@@ -104,10 +104,10 @@ discard block |
||
| 104 | 104 | foreach ($variants as $variantSetup) { |
| 105 | 105 | list ($extensionKey, $labelReference, $icon) = $variantSetup; |
| 106 | 106 | $translatedLabel = $this->translateLabel($labelReference, $extensionKey); |
| 107 | - if (NULL === $translatedLabel) { |
|
| 107 | + if (NULL===$translatedLabel) { |
|
| 108 | 108 | $translatedLabel = $extensionKey; |
| 109 | 109 | } |
| 110 | - $optionsIcon = '<img src="' . $icon . '" alt="' . $extensionKey . '" /> '; |
|
| 110 | + $optionsIcon = '<img src="'.$icon.'" alt="'.$extensionKey.'" /> '; |
|
| 111 | 111 | $options[$extensionKey] = array($optionsIcon, $translatedLabel); |
| 112 | 112 | } |
| 113 | 113 | return $options; |
@@ -126,24 +126,24 @@ discard block |
||
| 126 | 126 | foreach ($options as $extensionKey => $optionsSetup) { |
| 127 | 127 | list($optionsIcons[$extensionKey], $optionsLabels[$extensionKey]) = $optionsSetup; |
| 128 | 128 | } |
| 129 | - $hasSelectedValue = (TRUE === empty($selectedValue) || TRUE === array_key_exists($selectedValue, $optionsLabels)); |
|
| 130 | - $selected = (TRUE === empty($selectedValue) ? ' selected="selected"' : NULL); |
|
| 129 | + $hasSelectedValue = (TRUE===empty($selectedValue) || TRUE===array_key_exists($selectedValue, $optionsLabels)); |
|
| 130 | + $selected = (TRUE===empty($selectedValue) ? ' selected="selected"' : NULL); |
|
| 131 | 131 | foreach ($optionsIcons as $value => $img) { |
| 132 | - if ($value === $selectedValue) { |
|
| 132 | + if ($value===$selectedValue) { |
|
| 133 | 133 | $selectedIcon = $img; |
| 134 | 134 | break; |
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | $html = array( |
| 138 | - '<div class="form-control-wrap"><div class="input-group"><div class="input-group-addon input-group-icon">' . $selectedIcon . '</div><select class="select form-control" name="' . $parameters['itemFormElName'] . '" onchange="' . $parameters['fieldChangeFunc']['TBE_EDITOR_fieldChanged'] . ';' . $parameters['fieldChangeFunc']['alert'] . '">', |
|
| 139 | - '<option' . $selected . ' value="">' . $this->translateLabel('tt_content.nativeLabel', 'MooxCore') . '</option>' |
|
| 138 | + '<div class="form-control-wrap"><div class="input-group"><div class="input-group-addon input-group-icon">'.$selectedIcon.'</div><select class="select form-control" name="'.$parameters['itemFormElName'].'" onchange="'.$parameters['fieldChangeFunc']['TBE_EDITOR_fieldChanged'].';'.$parameters['fieldChangeFunc']['alert'].'">', |
|
| 139 | + '<option'.$selected.' value="">'.$this->translateLabel('tt_content.nativeLabel', 'MooxCore').'</option>' |
|
| 140 | 140 | ); |
| 141 | 141 | foreach ($optionsLabels as $value => $label) { |
| 142 | - $selected = $value === $selectedValue ? ' selected="selected"' : NULL; |
|
| 143 | - $html[] = '<option' . $selected . ' value="' . $value . '">' . $label . '</option>'; |
|
| 142 | + $selected = $value===$selectedValue ? ' selected="selected"' : NULL; |
|
| 143 | + $html[] = '<option'.$selected.' value="'.$value.'">'.$label.'</option>'; |
|
| 144 | 144 | } |
| 145 | - if (FALSE === $hasSelectedValue) { |
|
| 146 | - $html[] = '<option selected="selected">INVALID: ' . $selectedValue . '</option>'; |
|
| 145 | + if (FALSE===$hasSelectedValue) { |
|
| 146 | + $html[] = '<option selected="selected">INVALID: '.$selectedValue.'</option>'; |
|
| 147 | 147 | } |
| 148 | 148 | $html[] = '</select></div></div>'; |
| 149 | 149 | return implode(LF, $html); |
@@ -159,20 +159,20 @@ discard block |
||
| 159 | 159 | $defaults = $this->configurationService->getDefaults(); |
| 160 | 160 | $preSelectedVariant = $parameters['row']['content_variant']; |
| 161 | 161 | $preSelectedVersion = $parameters['row']['content_version']; |
| 162 | - if (CoreContentProvider::MODE_PRESELECT === $defaults['mode']) { |
|
| 163 | - if (TRUE === empty($preSelectedVariant)) { |
|
| 162 | + if (CoreContentProvider::MODE_PRESELECT===$defaults['mode']) { |
|
| 163 | + if (TRUE===empty($preSelectedVariant)) { |
|
| 164 | 164 | $preSelectedVariant = $defaults['variant']; |
| 165 | 165 | } |
| 166 | - if (TRUE === empty($preSelectedVersion)) { |
|
| 166 | + if (TRUE===empty($preSelectedVersion)) { |
|
| 167 | 167 | $preSelectedVersion = $defaults['version']; |
| 168 | 168 | } |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | $versions = $this->configurationService->getVariantVersions($parameters['row']['CType'], $preSelectedVariant); |
| 172 | - if (TRUE === is_array($versions) && 0 < count($versions)) { |
|
| 172 | + if (TRUE===is_array($versions) && 0<count($versions)) { |
|
| 173 | 173 | foreach ($versions as $version) { |
| 174 | 174 | $icon = $this->configurationService->getIconFromVersion($preSelectedVariant, $parameters['row']['CType'], $version); |
| 175 | - $versionIcon = '<img src="' . $icon . '" alt="" /> '; |
|
| 175 | + $versionIcon = '<img src="'.$icon.'" alt="" /> '; |
|
| 176 | 176 | $options[$version] = array($versionIcon, $version); |
| 177 | 177 | } |
| 178 | 178 | } |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | * @codeCoverageIgnore |
| 196 | 196 | */ |
| 197 | 197 | protected function loadRecord($table, $uid) { |
| 198 | - return \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord($table, (integer) $uid); |
|
| 198 | + return \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord($table, (integer)$uid); |
|
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | } |
| 202 | 202 | \ No newline at end of file |
@@ -7,11 +7,11 @@ |
||
| 7 | 7 | * InstallSignalSlot |
| 8 | 8 | */ |
| 9 | 9 | class InstallSignalSlot implements SingletonInterface { |
| 10 | - /** |
|
| 11 | - * Install AddionalConfiguration |
|
| 12 | - */ |
|
| 13 | - public function installAdditionalConfiguration() { |
|
| 14 | - $updateService = new UpdateService(); |
|
| 15 | - $updateService->main(); |
|
| 16 | - } |
|
| 10 | + /** |
|
| 11 | + * Install AddionalConfiguration |
|
| 12 | + */ |
|
| 13 | + public function installAdditionalConfiguration() { |
|
| 14 | + $updateService = new UpdateService(); |
|
| 15 | + $updateService->main(); |
|
| 16 | + } |
|
| 17 | 17 | } |
| 18 | 18 | \ No newline at end of file |
@@ -65,22 +65,22 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | $settings = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]); |
| 67 | 67 | if($settings['UseRealUrlConfig'] == 1){ |
| 68 | - @include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY,'Configuration/RealURL/Default.php')); |
|
| 68 | + @include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY,'Configuration/RealURL/Default.php')); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | if (TYPO3_MODE === 'BE') { |
| 72 | 72 | // enable SignalSlot |
| 73 | 73 | /** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */ |
| 74 | - $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher'); |
|
| 75 | - /** |
|
| 76 | - * Provides an example .htaccess file for Apache after extension is installed and shows a warning if TYPO3 is not running on Apache. |
|
| 77 | - */ |
|
| 78 | - $signalSlotDispatcher->connect( |
|
| 79 | - 'TYPO3\\CMS\\Extensionmanager\\Service\\ExtensionManagementService', |
|
| 80 | - 'hasInstalledExtensions', |
|
| 81 | - 'DCNGmbH\\MooxCore\\Service\\InstallService', |
|
| 82 | - 'generateApacheHtaccess' |
|
| 83 | - ); |
|
| 74 | + $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher'); |
|
| 75 | + /** |
|
| 76 | + * Provides an example .htaccess file for Apache after extension is installed and shows a warning if TYPO3 is not running on Apache. |
|
| 77 | + */ |
|
| 78 | + $signalSlotDispatcher->connect( |
|
| 79 | + 'TYPO3\\CMS\\Extensionmanager\\Service\\ExtensionManagementService', |
|
| 80 | + 'hasInstalledExtensions', |
|
| 81 | + 'DCNGmbH\\MooxCore\\Service\\InstallService', |
|
| 82 | + 'generateApacheHtaccess' |
|
| 83 | + ); |
|
| 84 | 84 | /** |
| 85 | 85 | * Provides an example robots.txt file after extension is installed and shows a warning if TYPO3 is not running with moox_core robots.txt. |
| 86 | 86 | */ |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | // mod.moox_MooxCoreDashboard.sideBarEnable = 0 |
| 10 | 10 | // '); |
| 11 | 11 | |
| 12 | -if (FALSE === isset($GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'])) { |
|
| 12 | +if (FALSE===isset($GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'])) { |
|
| 13 | 13 | \TYPO3\CMS\Core\Utility\GeneralUtility::sysLog('MooxCore requires an additional configuration file in typo3conf/AdditionalConfiguration.php - ' |
| 14 | 14 | . 'you can have MooxCore generate this file for you from the extension manager by running the MooxCore update script. A dummy ' |
| 15 | 15 | . 'has been created, but you will only be able to render content (not plugins!) until the file is created', |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | ); |
| 38 | 38 | |
| 39 | 39 | $types = count($GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['types']); |
| 40 | -for ($i = 0; $i < $types; $i++) { |
|
| 40 | +for ($i = 0; $i<$types; $i++) { |
|
| 41 | 41 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( |
| 42 | 42 | 'DCNGmbH.MooxCore', |
| 43 | 43 | ucfirst($GLOBALS['TYPO3_CONF_VARS']['DCNGmbH.MooxCore']['types'][$i]), |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | // Include new content elements to modWizards |
| 50 | 50 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:moox_core/Configuration/PageTS/modWizards.ts">'); |
| 51 | 51 | // If the form extension is loaded, then include the mailform element to modWizards |
| 52 | -if (TRUE === \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) { |
|
| 52 | +if (TRUE===\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) { |
|
| 53 | 53 | \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:moox_core/Configuration/PageTS/modWizardsMailform.ts">'); |
| 54 | 54 | } |
| 55 | 55 | |
@@ -64,11 +64,11 @@ discard block |
||
| 64 | 64 | * Use RealUrl Config from MOOX Core |
| 65 | 65 | */ |
| 66 | 66 | $settings = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]); |
| 67 | -if($settings['UseRealUrlConfig'] == 1){ |
|
| 68 | - @include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY,'Configuration/RealURL/Default.php')); |
|
| 67 | +if ($settings['UseRealUrlConfig']==1) { |
|
| 68 | + @include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY, 'Configuration/RealURL/Default.php')); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | -if (TYPO3_MODE === 'BE') { |
|
| 71 | +if (TYPO3_MODE==='BE') { |
|
| 72 | 72 | // enable SignalSlot |
| 73 | 73 | /** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */ |
| 74 | 74 | $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher'); |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | /*************** |
| 106 | 106 | * Register hook for processing less files |
| 107 | 107 | */ |
| 108 | -if (TYPO3_MODE === 'FE') { |
|
| 109 | - require_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('moox_core') . '/Contrib/less.php/Less.php'); |
|
| 108 | +if (TYPO3_MODE==='FE') { |
|
| 109 | + require_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('moox_core').'/Contrib/less.php/Less.php'); |
|
| 110 | 110 | |
| 111 | 111 | $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'][] = 'DCNGmbH\\MooxCore\\Hooks\\PageRendererRender\\PreProcessHook->execute'; |
| 112 | 112 | |
@@ -36,14 +36,14 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | class GetVimeoIdViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * @param string $url |
|
| 41 | - * @return string |
|
| 42 | - */ |
|
| 43 | - public function render($url) {
|
|
| 44 | - if (preg_match("/https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/", $url, $match)) {
|
|
| 45 | - $videoId = $match[3]; |
|
| 46 | - } |
|
| 47 | - return $videoId; |
|
| 48 | - } |
|
| 39 | + /** |
|
| 40 | + * @param string $url |
|
| 41 | + * @return string |
|
| 42 | + */ |
|
| 43 | + public function render($url) {
|
|
| 44 | + if (preg_match("/https?:\/\/(?:www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|)(\d+)(?:$|\/|\?)/", $url, $match)) {
|
|
| 45 | + $videoId = $match[3]; |
|
| 46 | + } |
|
| 47 | + return $videoId; |
|
| 48 | + } |
|
| 49 | 49 | } |
@@ -36,14 +36,14 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | class GetYoutubeIdViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * @param string $url |
|
| 41 | - * @return string |
|
| 42 | - */ |
|
| 43 | - public function render($url) {
|
|
| 44 | - if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $url, $match)) {
|
|
| 45 | - $videoId = $match[1]; |
|
| 46 | - } |
|
| 47 | - return $videoId; |
|
| 48 | - } |
|
| 39 | + /** |
|
| 40 | + * @param string $url |
|
| 41 | + * @return string |
|
| 42 | + */ |
|
| 43 | + public function render($url) {
|
|
| 44 | + if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $url, $match)) {
|
|
| 45 | + $videoId = $match[1]; |
|
| 46 | + } |
|
| 47 | + return $videoId; |
|
| 48 | + } |
|
| 49 | 49 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | 'text' => 'mimetypes-x-content-text' |
| 29 | 29 | ) |
| 30 | 30 | ); |
| 31 | -if (TRUE === isset($GLOBALS['TCA']['tt_content']['ctrl']['typeicons'])) { |
|
| 31 | +if (TRUE===isset($GLOBALS['TCA']['tt_content']['ctrl']['typeicons'])) { |
|
| 32 | 32 | $GLOBALS['TCA']['tt_content']['ctrl']['typeicons'] = array_merge( |
| 33 | 33 | $GLOBALS['TCA']['tt_content']['ctrl']['typeicons'], |
| 34 | 34 | array( |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['fileExtensionToMimeType']['ogv'] = 'video/ogv'; |
| 59 | 59 | $GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'] .= ',ogv'; |
| 60 | 60 | |
| 61 | -$additionalColumns = Array ( |
|
| 61 | +$additionalColumns = Array( |
|
| 62 | 62 | 'assets' => Array( |
| 63 | 63 | 'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.asset_references', |
| 64 | 64 | 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('assets', Array( |
@@ -68,52 +68,52 @@ discard block |
||
| 68 | 68 | 'foreign_types' => $GLOBALS['TCA']['tt_content']['columns']['image']['config']['foreign_types'] |
| 69 | 69 | ), $GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext']) |
| 70 | 70 | ), |
| 71 | - 'tx_mooxcore_hide_desktop' => Array ( |
|
| 71 | + 'tx_mooxcore_hide_desktop' => Array( |
|
| 72 | 72 | 'exclude' => 1, |
| 73 | 73 | 'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_desktop', |
| 74 | - 'config' => Array ( |
|
| 74 | + 'config' => Array( |
|
| 75 | 75 | 'type' => 'check', |
| 76 | 76 | ) |
| 77 | 77 | ), |
| 78 | - 'tx_mooxcore_hide_laptop' => Array ( |
|
| 78 | + 'tx_mooxcore_hide_laptop' => Array( |
|
| 79 | 79 | 'exclude' => 1, |
| 80 | 80 | 'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_laptop', |
| 81 | - 'config' => Array ( |
|
| 81 | + 'config' => Array( |
|
| 82 | 82 | 'type' => 'check', |
| 83 | 83 | ) |
| 84 | 84 | ), |
| 85 | - 'tx_mooxcore_hide_tablet' => Array ( |
|
| 85 | + 'tx_mooxcore_hide_tablet' => Array( |
|
| 86 | 86 | 'exclude' => 1, |
| 87 | 87 | 'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_tablet', |
| 88 | - 'config' => Array ( |
|
| 88 | + 'config' => Array( |
|
| 89 | 89 | 'type' => 'check', |
| 90 | 90 | ) |
| 91 | 91 | ), |
| 92 | - 'tx_mooxcore_hide_phone' => Array ( |
|
| 92 | + 'tx_mooxcore_hide_phone' => Array( |
|
| 93 | 93 | 'exclude' => 1, |
| 94 | 94 | 'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_phone', |
| 95 | - 'config' => Array ( |
|
| 95 | + 'config' => Array( |
|
| 96 | 96 | 'type' => 'check', |
| 97 | 97 | ) |
| 98 | 98 | ), |
| 99 | - 'tx_mooxcore_hide_print' => Array ( |
|
| 99 | + 'tx_mooxcore_hide_print' => Array( |
|
| 100 | 100 | 'exclude' => 1, |
| 101 | 101 | 'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_print', |
| 102 | - 'config' => Array ( |
|
| 102 | + 'config' => Array( |
|
| 103 | 103 | 'type' => 'check', |
| 104 | 104 | ) |
| 105 | 105 | ), |
| 106 | - 'tx_mooxcore_hide_barrierfree' => Array ( |
|
| 106 | + 'tx_mooxcore_hide_barrierfree' => Array( |
|
| 107 | 107 | 'exclude' => 1, |
| 108 | 108 | 'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_barrierfree', |
| 109 | - 'config' => Array ( |
|
| 109 | + 'config' => Array( |
|
| 110 | 110 | 'type' => 'check', |
| 111 | 111 | ) |
| 112 | 112 | ), |
| 113 | - 'tx_mooxcore_hide_oldbrowser' => Array ( |
|
| 113 | + 'tx_mooxcore_hide_oldbrowser' => Array( |
|
| 114 | 114 | 'exclude' => 1, |
| 115 | 115 | 'label' => 'LLL:EXT:moox_core/Resources/Private/Language/Database.xlf:tt_content.tx_mooxcore_hide_oldbrowser', |
| 116 | - 'config' => Array ( |
|
| 116 | + 'config' => Array( |
|
| 117 | 117 | 'type' => 'check', |
| 118 | 118 | ) |
| 119 | 119 | ), |
@@ -419,12 +419,12 @@ discard block |
||
| 419 | 419 | $GLOBALS['TCA']['tt_content']['palettes']['table'] |
| 420 | 420 | ); |
| 421 | 421 | |
| 422 | -if (FALSE === \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) { |
|
| 423 | - unset( $GLOBALS['TCA']['tt_content']['types']['mailform'] ); |
|
| 422 | +if (FALSE===\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('form')) { |
|
| 423 | + unset($GLOBALS['TCA']['tt_content']['types']['mailform']); |
|
| 424 | 424 | } |
| 425 | 425 | |
| 426 | 426 | foreach ($GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'] as $index => $item) { |
| 427 | - if ($item[1] === 'multimedia') { |
|
| 427 | + if ($item[1]==='multimedia') { |
|
| 428 | 428 | unset($GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'][$index]); |
| 429 | 429 | } |
| 430 | 430 | }; |