@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | 'EXT:taskcenter/Resources/Private/Templates/ModuleContent.html' |
238 | 238 | )); |
239 | 239 | $view->assignMultiple($assigns); |
240 | - $this->content .= $view->render(); |
|
240 | + $this->content .= $view->render(); |
|
241 | 241 | } |
242 | 242 | |
243 | 243 | /** |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | 'EXT:taskcenter/Resources/Private/Templates/InformationContent.html' |
262 | 262 | )); |
263 | 263 | $view->assignMultiple($assigns); |
264 | - $this->content .= $view->render(); |
|
264 | + $this->content .= $view->render(); |
|
265 | 265 | } |
266 | 266 | |
267 | 267 | /** |
@@ -121,7 +121,7 @@ |
||
121 | 121 | try { |
122 | 122 | $subFolderItems = $this->getSubfoldersForOptionList($subFolder, $level); |
123 | 123 | } catch (InsufficientFolderReadPermissionsException $e) { |
124 | - $subFolderItems = []; |
|
124 | + $subFolderItems = []; |
|
125 | 125 | } |
126 | 126 | $allFolderItems = array_merge($allFolderItems, $subFolderItems); |
127 | 127 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function createMetaDataRecord($fileUid, array $additionalFields = []) |
127 | 127 | { |
128 | - $emptyRecord = [ |
|
128 | + $emptyRecord = [ |
|
129 | 129 | 'file' => (int)$fileUid, |
130 | 130 | 'pid' => 0, |
131 | 131 | 'crdate' => $GLOBALS['EXEC_TIME'], |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | $record = $emptyRecord; |
145 | 145 | $record['uid'] = $connection->lastInsertId($this->tableName); |
146 | - $record['newlyCreated'] = true; |
|
146 | + $record['newlyCreated'] = true; |
|
147 | 147 | |
148 | 148 | $this->emitRecordCreatedSignal($record); |
149 | 149 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\Parser; |
5 | 5 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $indexName = $item->indexName->getQuotedName(); |
198 | 198 | |
199 | 199 | $columnNames = array_map( |
200 | - function (IndexColumnName $columnName) { |
|
200 | + function(IndexColumnName $columnName) { |
|
201 | 201 | if ($columnName->length) { |
202 | 202 | return $columnName->columnName->getQuotedName() . '(' . $columnName->length . ')'; |
203 | 203 | } |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | { |
248 | 248 | $indexName = $item->indexName->getQuotedName() ?: null; |
249 | 249 | $localColumnNames = array_map( |
250 | - function (IndexColumnName $columnName) { |
|
250 | + function(IndexColumnName $columnName) { |
|
251 | 251 | return $columnName->columnName->getQuotedName(); |
252 | 252 | }, |
253 | 253 | $item->columnNames |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | ) { |
270 | 270 | $foreignTableName = $referenceDefinition->tableName->getQuotedName(); |
271 | 271 | $foreignColumNames = array_map( |
272 | - function (IndexColumnName $columnName) { |
|
272 | + function(IndexColumnName $columnName) { |
|
273 | 273 | return $columnName->columnName->getQuotedName(); |
274 | 274 | }, |
275 | 275 | $referenceDefinition->columnNames |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\Parser; |
5 | 5 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | const T_CHECKSUM = 352; |
135 | 135 | const T_COMPRESSION = 353; |
136 | 136 | const T_CONNECTION = 354; |
137 | - const T_DATA= 355; |
|
137 | + const T_DATA = 355; |
|
138 | 138 | const T_DIRECTORY = 356; |
139 | 139 | const T_DELAY_KEY_WRITE = 357; |
140 | 140 | const T_ENCRYPTION = 358; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\EventListener; |
5 | 5 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $values = explode($quoteChar . ',' . $quoteChar, substr($valuesDefinition, 1, -1)); |
119 | 119 | |
120 | 120 | return array_map( |
121 | - function (string $value) use ($quoteChar) { |
|
121 | + function(string $value) use ($quoteChar) { |
|
122 | 122 | return str_replace($quoteChar . $quoteChar, $quoteChar, $value); |
123 | 123 | }, |
124 | 124 | $values |
@@ -1230,7 +1230,7 @@ |
||
1230 | 1230 | public function remapListedDBRecords_flexFormCallBack($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2, $path) |
1231 | 1231 | { |
1232 | 1232 | // Extract parameters: |
1233 | - list(, , , $config) = $pParams; |
|
1233 | + list(,,, $config) = $pParams; |
|
1234 | 1234 | // In case the $path is used as index without a trailing slash we will remove that |
1235 | 1235 | if (!is_array($config['flexFormRels']['db'][$path]) && is_array($config['flexFormRels']['db'][rtrim($path, '/')])) { |
1236 | 1236 | $path = rtrim($path, '/'); |
@@ -470,8 +470,8 @@ discard block |
||
470 | 470 | unset($this->dat['header']['records']['sys_file_reference'][$sysFileReferenceUid]); |
471 | 471 | unset($this->dat['records']['sys_file_reference:' . $sysFileReferenceUid]); |
472 | 472 | $this->error('Error: sys_file_reference record ' . (int)$sysFileReferenceUid |
473 | - . ' with relation to sys_file record ' . (int)$fileReferenceRecord['uid_local'] |
|
474 | - . ', which is not part of the import data, was not imported.' |
|
473 | + . ' with relation to sys_file record ' . (int)$fileReferenceRecord['uid_local'] |
|
474 | + . ', which is not part of the import data, was not imported.' |
|
475 | 475 | ); |
476 | 476 | } |
477 | 477 | } |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | * |
503 | 503 | * @param int $oldFileUid |
504 | 504 | * @param int $newFileUid |
505 | - */ |
|
505 | + */ |
|
506 | 506 | protected function fixUidLocalInSysFileReferenceRecords($oldFileUid, $newFileUid) |
507 | 507 | { |
508 | 508 | if (!isset($this->dat['header']['records']['sys_file_reference'])) { |
@@ -44,18 +44,18 @@ |
||
44 | 44 | if ($postValues['type'] === 'new') { |
45 | 45 | $status = $this->createNewDatabase($postValues['new']); |
46 | 46 | if ($status instanceof ErrorStatus) { |
47 | - return [ $status ]; |
|
47 | + return [$status]; |
|
48 | 48 | } |
49 | 49 | } elseif ($postValues['type'] === 'existing' && !empty($postValues['existing'])) { |
50 | 50 | $status = $this->checkExistingDatabase($postValues['existing']); |
51 | 51 | if ($status instanceof ErrorStatus) { |
52 | - return [ $status ]; |
|
52 | + return [$status]; |
|
53 | 53 | } |
54 | 54 | } else { |
55 | 55 | $errorStatus = GeneralUtility::makeInstance(ErrorStatus::class); |
56 | 56 | $errorStatus->setTitle('No Database selected'); |
57 | 57 | $errorStatus->setMessage('You must select a database.'); |
58 | - return [ $errorStatus ]; |
|
58 | + return [$errorStatus]; |
|
59 | 59 | } |
60 | 60 | return []; |
61 | 61 | } |
@@ -298,7 +298,7 @@ |
||
298 | 298 | // "PRIMARY KEY" is being returned from the DB in upper case. |
299 | 299 | $fieldC = preg_replace_callback( |
300 | 300 | '/^([a-zA-Z0-9]+)(\([^)]*\)\s.*)/', |
301 | - function ($matches) { |
|
301 | + function($matches) { |
|
302 | 302 | return strtolower($matches[1]) . $matches[2]; |
303 | 303 | }, |
304 | 304 | $fieldC |