@@ -53,7 +53,7 @@ |
||
| 53 | 53 | list($namespace, $method) = self::getNamespaceAndMethod($namespace, $methodRaw); |
| 54 | 54 | $singleJsonRequest['method'] = $method; |
| 55 | 55 | |
| 56 | - $server = new JsonServerService($namespace, (bool) GeneralUtility::_GP('smd')); |
|
| 56 | + $server = new JsonServerService($namespace, (bool)GeneralUtility::_GP('smd')); |
|
| 57 | 57 | |
| 58 | 58 | $request = new Request(); |
| 59 | 59 | $request->setOptions($singleJsonRequest); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $return = false; |
| 58 | 58 | } else { |
| 59 | 59 | $classReflection = ReflectionUtility::createReflectionClass($className); |
| 60 | - $return = !(bool) (!$classReflection->isInstantiable() || !$classReflection->isTaggedWith('db')); |
|
| 60 | + $return = !(bool)(!$classReflection->isInstantiable() || !$classReflection->isTaggedWith('db')); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | // if ($registerAutoLoader) { |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | $this->serverClass = $GLOBALS['TYPO3_CONF_VARS']['AUTOLOADER']['Json'][$server]; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - $this->renderSmd = (bool) $smd; |
|
| 54 | + $this->renderSmd = (bool)$smd; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -84,8 +84,8 @@ |
||
| 84 | 84 | $setup = []; |
| 85 | 85 | foreach ($this->getSmartObjectsForExtensionKey($extensionKey) as $className) { |
| 86 | 86 | $table = ModelUtility::getTableNameByModelReflectionAnnotation($className); |
| 87 | - $recordType = (string) ReflectionUtility::getFirstTagValue($className, 'recordType'); |
|
| 88 | - $parentClass = (string) ReflectionUtility::getFirstTagValue($className, 'parentClass'); |
|
| 87 | + $recordType = (string)ReflectionUtility::getFirstTagValue($className, 'recordType'); |
|
| 88 | + $parentClass = (string)ReflectionUtility::getFirstTagValue($className, 'parentClass'); |
|
| 89 | 89 | if ('' !== $table) { |
| 90 | 90 | $setup[] = 'config.tx_extbase.persistence.classes.' . $className . '.mapping.tableName = ' . $table; |
| 91 | 91 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** @var $methodReflection \TYPO3\CMS\Extbase\Reflection\MethodReflection */ |
| 64 | 64 | $tagConfiguration = ReflectionUtility::getTagConfiguration($methodReflection, ['hook']); |
| 65 | 65 | if (\count($tagConfiguration['hook']) > 0) { |
| 66 | - $hookLocations = \array_map(function ($hook) { |
|
| 66 | + $hookLocations = \array_map(function($hook) { |
|
| 67 | 67 | return \trim($hook, " \t\n\r\0\x0B|"); |
| 68 | 68 | }, $tagConfiguration['hook']); |
| 69 | 69 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | if (!isset($GLOBALS['TCA']['tt_content']['types'][$typeKey]['showitem'])) { |
| 161 | 161 | $baseTcaConfiguration = $this->wrapDefaultTcaConfiguration( |
| 162 | 162 | $config['fieldConfiguration'], |
| 163 | - (bool) $config['noHeader'] |
|
| 163 | + (bool)$config['noHeader'] |
|
| 164 | 164 | ); |
| 165 | 165 | |
| 166 | 166 | if (ExtensionManagementUtility::isLoaded('gridelements')) { |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | { |
| 361 | 361 | $nameMapperService = GeneralUtility::makeInstance(NameMapperService::class); |
| 362 | 362 | $tableName = ModelUtility::getTableName($className); |
| 363 | - return \array_map(function ($value) use ($nameMapperService, $tableName) { |
|
| 363 | + return \array_map(function($value) use ($nameMapperService, $tableName) { |
|
| 364 | 364 | return $nameMapperService->getDatabaseFieldName($tableName, $value); |
| 365 | 365 | }, ReflectionUtility::getDeclaringProperties($className)); |
| 366 | 366 | } |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | } |
| 109 | 109 | $values = $classReflection->getTagValues($tag); |
| 110 | 110 | if (\is_array($values)) { |
| 111 | - return \trim((string) $values[0]); |
|
| 111 | + return \trim((string)$values[0]); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | return false; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - return (string) $default; |
|
| 47 | + return (string)$default; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -119,8 +119,8 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | protected static function useTableNameFileBase() |
| 121 | 121 | { |
| 122 | - $configuration = \unserialize((string) $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']); |
|
| 122 | + $configuration = \unserialize((string)$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']); |
|
| 123 | 123 | |
| 124 | - return isset($configuration['enableLanguageFileOnTableBase']) ? (bool) $configuration['enableLanguageFileOnTableBase'] : false; |
|
| 124 | + return isset($configuration['enableLanguageFileOnTableBase']) ? (bool)$configuration['enableLanguageFileOnTableBase'] : false; |
|
| 125 | 125 | } |
| 126 | 126 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public static function getTableNameByModelReflectionAnnotation($modelClassName) |
| 42 | 42 | { |
| 43 | - return (string) ReflectionUtility::getFirstTagValue($modelClassName, 'db'); |
|
| 43 | + return (string)ReflectionUtility::getFirstTagValue($modelClassName, 'db'); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public static function getSmartExcludesByModelName($name) |
| 86 | 86 | { |
| 87 | - return GeneralUtility::trimExplode(',', (string) ReflectionUtility::getFirstTagValue($name, 'smartExclude'), true); |
|
| 87 | + return GeneralUtility::trimExplode(',', (string)ReflectionUtility::getFirstTagValue($name, 'smartExclude'), true); |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
@@ -154,14 +154,14 @@ discard block |
||
| 154 | 154 | GeneralUtility::makeInstance(Session::class)->destroy(); |
| 155 | 155 | $settings->setIgnoreEnableFields(true); |
| 156 | 156 | |
| 157 | - if (isset($data['sys_language_uid']) && (int) $data['sys_language_uid'] > 0) { |
|
| 158 | - GeneralUtility::_GETset((int) $data['sys_language_uid'], 'L'); |
|
| 157 | + if (isset($data['sys_language_uid']) && (int)$data['sys_language_uid'] > 0) { |
|
| 158 | + GeneralUtility::_GETset((int)$data['sys_language_uid'], 'L'); |
|
| 159 | 159 | |
| 160 | 160 | if (isset($data['l18n_parent']) && $data['l18n_parent'] > 0) { |
| 161 | 161 | $settings->setLanguageOverlayMode(false); |
| 162 | 162 | $settings->setLanguageMode(null); |
| 163 | 163 | $settings->setRespectSysLanguage(true); |
| 164 | - $settings->setLanguageUid((int) $data['sys_language_uid']); |
|
| 164 | + $settings->setLanguageUid((int)$data['sys_language_uid']); |
|
| 165 | 165 | } |
| 166 | 166 | $object = $query->execute()->getFirst(); |
| 167 | 167 | |