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', |
@@ -67,7 +67,8 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | |
| 70 | - public function addMetadataAction() { |
|
| 70 | + public function addMetadataAction() |
|
| 71 | + { |
|
| 71 | 72 | // Include metadata definition file. |
| 72 | 73 | $metadataDefaults = include (ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/MetadataDefaults.php'); |
| 73 | 74 | $i = 0; |
@@ -121,7 +122,8 @@ discard block |
||
| 121 | 122 | $this->forward('index'); |
| 122 | 123 | } |
| 123 | 124 | |
| 124 | - public function addSolrCoreAction() { |
|
| 125 | + public function addSolrCoreAction() |
|
| 126 | + { |
|
| 125 | 127 | $this->pid = (int) GeneralUtility::_GP('id'); |
| 126 | 128 | // Build data array. |
| 127 | 129 | $data['tx_dlf_solrcores'][uniqid('NEW')] = [ |
@@ -150,7 +152,8 @@ discard block |
||
| 150 | 152 | $this->forward('index'); |
| 151 | 153 | } |
| 152 | 154 | |
| 153 | - public function addStructureAction() { |
|
| 155 | + public function addStructureAction() |
|
| 156 | + { |
|
| 154 | 157 | $this->pid = (int) GeneralUtility::_GP('id'); |
| 155 | 158 | // Include structure definition file. |
| 156 | 159 | $structureDefaults = include (ExtensionManagementUtility::extPath($this->extKey) . 'Resources/Private/Data/StructureDefaults.php'); |
@@ -267,7 +267,7 @@ |
||
| 267 | 267 | $solrCore = $this->solrCoreRepository->findByPid($this->pid); |
| 268 | 268 | $solrCore2 = $this->solrCoreRepository->findByPid(0); |
| 269 | 269 | |
| 270 | - if (count($solrCore) > 0 OR count($solrCore2) > 0) { |
|
| 270 | + if (count($solrCore) > 0 or count($solrCore2) > 0) { |
|
| 271 | 271 | if (count($solrCore) > 0) { |
| 272 | 272 | // Fine. |
| 273 | 273 | $this->addFlashMessage( |
@@ -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; |