@@ -80,6 +80,6 @@ |
||
80 | 80 | $uri = BackendUtility::getModuleUrl('record_edit', $urlParameters); |
81 | 81 | } |
82 | 82 | |
83 | - return (string) $uri; |
|
83 | + return (string)$uri; |
|
84 | 84 | } |
85 | 85 | } |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | if (!isset($GLOBALS['TCA']['tt_content']['types'][$typeKey]['showitem'])) { |
157 | 157 | $baseTcaConfiguration = $this->wrapDefaultTcaConfiguration( |
158 | 158 | $config['fieldConfiguration'], |
159 | - (bool) $config['noHeader'] |
|
159 | + (bool)$config['noHeader'] |
|
160 | 160 | ); |
161 | 161 | |
162 | 162 | if (ExtensionManagementUtility::isLoaded('gridelements')) { |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | $nameMapperService = GeneralUtility::makeInstance(NameMapperService::class); |
357 | 357 | $tableName = ModelUtility::getTableName($className); |
358 | 358 | |
359 | - return \array_map(function ($value) use ($nameMapperService, $tableName) { |
|
359 | + return \array_map(function($value) use ($nameMapperService, $tableName) { |
|
360 | 360 | return $nameMapperService->getDatabaseFieldName($tableName, $value); |
361 | 361 | }, ReflectionUtility::getDeclaringProperties($className)); |
362 | 362 | } |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | } |
406 | 406 | $defaultFields = []; |
407 | 407 | // Note: TCA could be missing in install tool checks, so cast the TCA to array |
408 | - $existingFields = \array_keys((array) $GLOBALS['TCA']['tt_content']['columns']); |
|
408 | + $existingFields = \array_keys((array)$GLOBALS['TCA']['tt_content']['columns']); |
|
409 | 409 | $parts = GeneralUtility::trimExplode(',', $configuration, true); |
410 | 410 | foreach ($parts as $fieldConfiguration) { |
411 | 411 | $fieldConfiguration = GeneralUtility::trimExplode(';', $fieldConfiguration, true); |
@@ -205,9 +205,9 @@ discard block |
||
205 | 205 | */ |
206 | 206 | protected function useTableNameFileBase() |
207 | 207 | { |
208 | - $configuration = \unserialize((string) $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']); |
|
208 | + $configuration = \unserialize((string)$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']); |
|
209 | 209 | |
210 | - return isset($configuration['enableLanguageFileOnTableBase']) ? (bool) $configuration['enableLanguageFileOnTableBase'] : false; |
|
210 | + return isset($configuration['enableLanguageFileOnTableBase']) ? (bool)$configuration['enableLanguageFileOnTableBase'] : false; |
|
211 | 211 | } |
212 | 212 | |
213 | 213 | /** |
@@ -277,8 +277,8 @@ discard block |
||
277 | 277 | $fields[] = [ |
278 | 278 | 'property' => $propertyName, |
279 | 279 | 'name' => $nameMapperService->getDatabaseFieldName($tableName, $propertyName), |
280 | - 'db' => \trim((string) $configuration['db']), |
|
281 | - 'var' => \trim((string) $var), |
|
280 | + 'db' => \trim((string)$configuration['db']), |
|
281 | + 'var' => \trim((string)$var), |
|
282 | 282 | 'rte' => ReflectionUtility::isPropertyTaggedWith($modelClassName, $propertyName, 'enableRichText'), |
283 | 283 | ]; |
284 | 284 | } |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | $reflectionConfiguration = ReflectionUtility::getTagConfigurationForClass($modelClassName, ['key']); |
343 | 343 | if (!empty($reflectionConfiguration['key'])) { |
344 | 344 | $additionalKeys = $reflectionConfiguration['key']; |
345 | - \array_walk($additionalKeys, function (&$item) { |
|
345 | + \array_walk($additionalKeys, function(&$item) { |
|
346 | 346 | $item = 'KEY ' . $item; |
347 | 347 | }); |
348 | 348 | $fields = \array_merge($fields, $additionalKeys); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | $reflectionClass = new \ReflectionClass($className); |
46 | 46 | |
47 | - return (bool) $reflectionClass->isInstantiable(); |
|
47 | + return (bool)$reflectionClass->isInstantiable(); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | $reflectionService = GeneralUtility::makeInstance(\HDNET\Autoloader\Service\ReflectionService::class); |
85 | 85 | $values = $reflectionService->getClassTagValues($className, $tag); |
86 | - if($values === false) { |
|
86 | + if ($values === false) { |
|
87 | 87 | return false; |
88 | 88 | } |
89 | 89 | } else { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | if (\is_array($values)) { |
98 | - return \trim((string) $values[0]); |
|
98 | + return \trim((string)$values[0]); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | return false; |
@@ -275,12 +275,12 @@ discard block |
||
275 | 275 | public static function getDeclaringProperties(string $className) |
276 | 276 | { |
277 | 277 | $classReflection = new \ReflectionClass($className); |
278 | - $own = \array_filter($classReflection->getProperties(), function ($property) use ($className) { |
|
279 | - return \trim((string) $property->class, '\\') === \trim($className, '\\'); |
|
278 | + $own = \array_filter($classReflection->getProperties(), function($property) use ($className) { |
|
279 | + return \trim((string)$property->class, '\\') === \trim($className, '\\'); |
|
280 | 280 | }); |
281 | 281 | |
282 | - return \array_map(function ($item) { |
|
283 | - return (string) $item->name; |
|
282 | + return \array_map(function($item) { |
|
283 | + return (string)$item->name; |
|
284 | 284 | }, $own); |
285 | 285 | } |
286 | 286 |