We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | if (!$this->MCONF['name']) { |
| 160 | 160 | $this->MCONF = $GLOBALS['MCONF']; |
| 161 | 161 | } |
| 162 | - $this->id = (int)GeneralUtility::_GP('id'); |
|
| 162 | + $this->id = (int) GeneralUtility::_GP('id'); |
|
| 163 | 163 | $this->CMD = GeneralUtility::_GP('CMD'); |
| 164 | 164 | $this->perms_clause = $this->getBackendUser()->getPagePermsClause(1); |
| 165 | 165 | $this->menuConfig(); |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | $mergeArray = $GLOBALS['TBE_MODULES_EXT'][$modName]['MOD_MENU'][$menuKey]; |
| 230 | 230 | if (is_array($mergeArray)) { |
| 231 | 231 | foreach ($mergeArray as $k => $v) { |
| 232 | - if (((string)$v['ws'] === '' || $this->getBackendUser()->workspace === 0 && GeneralUtility::inList($v['ws'], 'online')) || $this->getBackendUser()->workspace === -1 && GeneralUtility::inList($v['ws'], 'offline') || $this->getBackendUser()->workspace > 0 && GeneralUtility::inList($v['ws'], 'custom')) { |
|
| 232 | + if (((string) $v['ws'] === '' || $this->getBackendUser()->workspace === 0 && GeneralUtility::inList($v['ws'], 'online')) || $this->getBackendUser()->workspace === -1 && GeneralUtility::inList($v['ws'], 'offline') || $this->getBackendUser()->workspace > 0 && GeneralUtility::inList($v['ws'], 'custom')) { |
|
| 233 | 233 | $menuArr[$k] = $this->getLanguageService()->sL($v['title']); |
| 234 | 234 | } |
| 235 | 235 | } |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | public function getExternalItemConfig($modName, $menuKey, $value = '') |
| 266 | 266 | { |
| 267 | 267 | if (isset($GLOBALS['TBE_MODULES_EXT'][$modName])) { |
| 268 | - return (string)$value !== '' ? $GLOBALS['TBE_MODULES_EXT'][$modName]['MOD_MENU'][$menuKey][$value] : $GLOBALS['TBE_MODULES_EXT'][$modName]['MOD_MENU'][$menuKey]; |
|
| 268 | + return (string) $value !== '' ? $GLOBALS['TBE_MODULES_EXT'][$modName]['MOD_MENU'][$menuKey][$value] : $GLOBALS['TBE_MODULES_EXT'][$modName]['MOD_MENU'][$menuKey]; |
|
| 269 | 269 | } |
| 270 | 270 | return null; |
| 271 | 271 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | $connectionPool = GeneralUtility::makeInstance(ConnectionPool::class); |
| 159 | 159 | $allResults = []; |
| 160 | 160 | $numResults = 0; |
| 161 | - foreach(array_keys($this->fieldsToMigrate) as $table) { |
|
| 161 | + foreach (array_keys($this->fieldsToMigrate) as $table) { |
|
| 162 | 162 | $queryBuilder = $connectionPool->getQueryBuilderForTable($table); |
| 163 | 163 | $queryBuilder->getRestrictions()->removeAll(); |
| 164 | 164 | try { |
@@ -242,11 +242,11 @@ discard block |
||
| 242 | 242 | return; |
| 243 | 243 | } |
| 244 | 244 | |
| 245 | - $storageUid = (int)$this->storage->getUid(); |
|
| 245 | + $storageUid = (int) $this->storage->getUid(); |
|
| 246 | 246 | $connectionPool = GeneralUtility::makeInstance(ConnectionPool::class); |
| 247 | 247 | |
| 248 | 248 | $fileUid = null; |
| 249 | - $sourcePath = Environment::getPublicPath() . '/' . $fieldItem; |
|
| 249 | + $sourcePath = Environment::getPublicPath() . '/' . $fieldItem; |
|
| 250 | 250 | |
| 251 | 251 | // maybe the file was already moved, so check if the original file still exists |
| 252 | 252 | if (file_exists($sourcePath)) { |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | if (\TYPO3_MODE === 'BE') { |
| 15 | 15 | \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule( |
| 16 | 16 | 'Dlf', |
| 17 | - 'tools', // Main area |
|
| 18 | - 'newTenantModule', // Name of the module |
|
| 19 | - '', // Position of the module |
|
| 20 | - [ // Allowed controller action combinations |
|
| 17 | + 'tools', // Main area |
|
| 18 | + 'newTenantModule', // Name of the module |
|
| 19 | + '', // Position of the module |
|
| 20 | + [// Allowed controller action combinations |
|
| 21 | 21 | \Kitodo\Dlf\Controller\NewTenantController::class => 'index,addMetadata,addSolrCore,addStructure', |
| 22 | 22 | ], |
| 23 | - [ // Additional configuration |
|
| 23 | + [// Additional configuration |
|
| 24 | 24 | 'access' => 'admin', |
| 25 | 25 | 'icon' => 'EXT:dlf/Resources/Public/Icons/Extension.svg', |
| 26 | 26 | 'labels' => 'LLL:EXT:dlf/Resources/Private/Language/NewTenant.xml', |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | namespace Kitodo\Dlf\Hooks; |
| 4 | 4 | |
| 5 | 5 | use TYPO3\CMS\Backend\Form\Element\AbstractFormElement; |