@@ -149,7 +149,7 @@ |
||
| 149 | 149 | { |
| 150 | 150 | return array_filter( |
| 151 | 151 | $this->storageRepository->findByStorageType('Local'), |
| 152 | - function (ResourceStorage $storage) { |
|
| 152 | + function(ResourceStorage $storage) { |
|
| 153 | 153 | return $storage->isWritable(); |
| 154 | 154 | } |
| 155 | 155 | ); |
@@ -534,7 +534,7 @@ discard block |
||
| 534 | 534 | // Processing related GET / POST vars |
| 535 | 535 | $this->data = $parsedBody['data'] ?? []; |
| 536 | 536 | $this->cmd = $parsedBody['cmd'] ?? []; |
| 537 | - $this->mirror = $parsedBody['mirror'] ?? []; |
|
| 537 | + $this->mirror = $parsedBody['mirror'] ?? []; |
|
| 538 | 538 | $this->returnNewPageId = (bool)($parsedBody['returnNewPageId'] ?? false); |
| 539 | 539 | |
| 540 | 540 | // Only options related to $this->data submission are included here |
@@ -1049,7 +1049,7 @@ discard block |
||
| 1049 | 1049 | $fileUid = (int)(BackendUtility::getRecord('sys_file_metadata', (int)$this->firstEl['uid'], 'file')['file'] ?? 0); |
| 1050 | 1050 | try { |
| 1051 | 1051 | $file = GeneralUtility::makeInstance(ResourceFactory::class)->getFileObject($fileUid); |
| 1052 | - } catch (FileDoesNotExistException|InsufficientUserPermissionsException $e) { |
|
| 1052 | + } catch (FileDoesNotExistException | InsufficientUserPermissionsException $e) { |
|
| 1053 | 1053 | // do nothing when file is not accessible |
| 1054 | 1054 | } |
| 1055 | 1055 | } |
@@ -2292,7 +2292,7 @@ discard block |
||
| 2292 | 2292 | // Fetch the current translations of this page, to only show the ones where there is a page translation |
| 2293 | 2293 | $allLanguages = array_filter( |
| 2294 | 2294 | GeneralUtility::makeInstance(TranslationConfigurationProvider::class)->getSystemLanguages($pageId), |
| 2295 | - static fn ($language) => (int)$language['uid'] !== -1 |
|
| 2295 | + static fn($language) => (int)$language['uid'] !== -1 |
|
| 2296 | 2296 | ); |
| 2297 | 2297 | if ($table !== 'pages' && $id > 0) { |
| 2298 | 2298 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('pages'); |
@@ -2427,7 +2427,7 @@ discard block |
||
| 2427 | 2427 | $queryParams = $request->getQueryParams(); |
| 2428 | 2428 | $parsedBody = $request->getParsedBody(); |
| 2429 | 2429 | |
| 2430 | - foreach (['edit', 'defVals', 'overrideVals' , 'columnsOnly' , 'noView'] as $key) { |
|
| 2430 | + foreach (['edit', 'defVals', 'overrideVals', 'columnsOnly', 'noView'] as $key) { |
|
| 2431 | 2431 | if (isset($this->R_URL_getvars[$key])) { |
| 2432 | 2432 | $this->storeArray[$key] = $this->R_URL_getvars[$key]; |
| 2433 | 2433 | } else { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | try { |
| 69 | 69 | $title = $this->resource->getStorage()->getName(); |
| 70 | 70 | $title .= $this->resource->getParentFolder()->getReadablePath(); |
| 71 | - } catch (ResourceDoesNotExistException|InsufficientFolderAccessPermissionsException $e) { |
|
| 71 | + } catch (ResourceDoesNotExistException | InsufficientFolderAccessPermissionsException $e) { |
|
| 72 | 72 | } |
| 73 | 73 | } elseif (is_array($pageRecord) && !empty($pageRecord['uid'])) { |
| 74 | 74 | // Is this a real page |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | if (method_exists($this->resource, 'getCombinedIdentifier')) { |
| 220 | 220 | $theIcon = BackendUtility::wrapClickMenuOnIcon($theIcon, $tableName, $this->resource->getCombinedIdentifier()); |
| 221 | 221 | } |
| 222 | - } catch (ResourceDoesNotExistException|InsufficientFolderAccessPermissionsException $e) { |
|
| 222 | + } catch (ResourceDoesNotExistException | InsufficientFolderAccessPermissionsException $e) { |
|
| 223 | 223 | $theIcon = ''; |
| 224 | 224 | } |
| 225 | 225 | } elseif (is_array($pageRecord) && !empty($pageRecord['uid'])) { |
@@ -1208,7 +1208,7 @@ |
||
| 1208 | 1208 | public function remapListedDBRecords_flexFormCallBack($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2, $path) |
| 1209 | 1209 | { |
| 1210 | 1210 | // Extract parameters: |
| 1211 | - [, , , $config] = $pParams; |
|
| 1211 | + [,,, $config] = $pParams; |
|
| 1212 | 1212 | // In case the $path is used as index without a trailing slash we will remove that |
| 1213 | 1213 | if (!is_array($config['flexFormRels']['db'][$path] ?? false) && is_array($config['flexFormRels']['db'][rtrim($path, '/')] ?? false)) { |
| 1214 | 1214 | $path = rtrim($path, '/'); |
@@ -177,9 +177,9 @@ |
||
| 177 | 177 | GeneralUtility::getFileAbsFileName('EXT:scheduler/Resources/Private/Templates/Backend/SchedulerModule/Index.html') |
| 178 | 178 | ); |
| 179 | 179 | $this->view->assignMultiple([ |
| 180 | - 'headline' => $this->getLanguageService()->getLL('function.' . $this->MOD_SETTINGS['function']), |
|
| 181 | - 'sectionTitle' => $this->getSectionTitle(), |
|
| 182 | - 'content' => $content, |
|
| 180 | + 'headline' => $this->getLanguageService()->getLL('function.' . $this->MOD_SETTINGS['function']), |
|
| 181 | + 'sectionTitle' => $this->getSectionTitle(), |
|
| 182 | + 'content' => $content, |
|
| 183 | 183 | ]); |
| 184 | 184 | |
| 185 | 185 | $this->getButtons($request); |
@@ -286,7 +286,7 @@ |
||
| 286 | 286 | try { |
| 287 | 287 | // Try adding or editing |
| 288 | 288 | $content .= $this->editTaskAction($requestUri); |
| 289 | - } catch (\LogicException|\UnexpectedValueException|\OutOfBoundsException $e) { |
|
| 289 | + } catch (\LogicException | \UnexpectedValueException | \OutOfBoundsException $e) { |
|
| 290 | 290 | // Catching all types of exceptions that were previously handled and |
| 291 | 291 | // converted to messages |
| 292 | 292 | $content .= $this->listTasksAction(); |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | */ |
| 108 | 108 | protected static function buildStreamFilterModifier(string $sequence): \Closure |
| 109 | 109 | { |
| 110 | - return function ($element) use ($sequence) { |
|
| 110 | + return function($element) use ($sequence) { |
|
| 111 | 111 | foreach ($element as &$value) { |
| 112 | 112 | if (is_numeric($value) || $value === '') { |
| 113 | 113 | continue; |