@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * @param string $className |
| 101 | 101 | * @param string $tag |
| 102 | 102 | * |
| 103 | - * @return string|bool |
|
| 103 | + * @return false|string |
|
| 104 | 104 | */ |
| 105 | 105 | public static function getFirstTagValue(string $className, string $tag) |
| 106 | 106 | { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * |
| 128 | 128 | * @param string $className |
| 129 | 129 | * @param $methodName |
| 130 | - * @param array $tagNames |
|
| 130 | + * @param string[] $tagNames |
|
| 131 | 131 | * |
| 132 | 132 | * @return array |
| 133 | 133 | */ |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * Get the tag configuration from this method and respect multiple line and space configuration. |
| 158 | 158 | * |
| 159 | 159 | * @param string $className |
| 160 | - * @param array $tagNames |
|
| 160 | + * @param string[] $tagNames |
|
| 161 | 161 | * |
| 162 | 162 | * @return array |
| 163 | 163 | */ |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * |
| 189 | 189 | * @param string $className |
| 190 | 190 | * @param string $property |
| 191 | - * @param array $tagNames |
|
| 191 | + * @param string[] $tagNames |
|
| 192 | 192 | * |
| 193 | 193 | * @return array |
| 194 | 194 | */ |
@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | if (self::is9orHigher()) { |
| 45 | 45 | $reflectionClass = new \ReflectionClass($className); |
| 46 | 46 | |
| 47 | - return (bool) $reflectionClass->isInstantiable(); |
|
| 47 | + return (bool)$reflectionClass->isInstantiable(); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - return (bool) self::createReflectionClass($className) |
|
| 50 | + return (bool)self::createReflectionClass($className) |
|
| 51 | 51 | ->isInstantiable(); |
| 52 | 52 | } |
| 53 | 53 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | if (\is_array($values)) { |
| 119 | - return \trim((string) $values[0]); |
|
| 119 | + return \trim((string)$values[0]); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | return false; |
@@ -271,11 +271,11 @@ discard block |
||
| 271 | 271 | public static function getDeclaringProperties($className) |
| 272 | 272 | { |
| 273 | 273 | $classReflection = new \ReflectionClass($className); |
| 274 | - $own = \array_filter($classReflection->getProperties(), function ($property) use ($className) { |
|
| 274 | + $own = \array_filter($classReflection->getProperties(), function($property) use ($className) { |
|
| 275 | 275 | return $property->class === $className; |
| 276 | 276 | }); |
| 277 | 277 | |
| 278 | - return \array_map(function ($item) { |
|
| 278 | + return \array_map(function($item) { |
|
| 279 | 279 | return $item->name; |
| 280 | 280 | }, $own); |
| 281 | 281 | } |
@@ -204,9 +204,9 @@ discard block |
||
| 204 | 204 | */ |
| 205 | 205 | protected function useTableNameFileBase() |
| 206 | 206 | { |
| 207 | - $configuration = \unserialize((string) $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']); |
|
| 207 | + $configuration = \unserialize((string)$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']); |
|
| 208 | 208 | |
| 209 | - return isset($configuration['enableLanguageFileOnTableBase']) ? (bool) $configuration['enableLanguageFileOnTableBase'] : false; |
|
| 209 | + return isset($configuration['enableLanguageFileOnTableBase']) ? (bool)$configuration['enableLanguageFileOnTableBase'] : false; |
|
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | /** |
@@ -276,9 +276,9 @@ discard block |
||
| 276 | 276 | $fields[] = [ |
| 277 | 277 | 'property' => $propertyName, |
| 278 | 278 | 'name' => $nameMapperService->getDatabaseFieldName($tableName, $propertyName), |
| 279 | - 'db' => \trim((string) $configuration['db'][0]), |
|
| 280 | - 'var' => \trim((string) $var), |
|
| 281 | - 'rte' => (bool) !empty($configuration['enableRichText'][0]), |
|
| 279 | + 'db' => \trim((string)$configuration['db'][0]), |
|
| 280 | + 'var' => \trim((string)$var), |
|
| 281 | + 'rte' => (bool)!empty($configuration['enableRichText'][0]), |
|
| 282 | 282 | ]; |
| 283 | 283 | } |
| 284 | 284 | |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | $reflectionConfiguration = ReflectionUtility::getTagConfigurationForClass($modelClassName, ['key']); |
| 342 | 342 | if (!empty($reflectionConfiguration['key'])) { |
| 343 | 343 | $additionalKeys = $reflectionConfiguration['key']; |
| 344 | - \array_walk($additionalKeys, function (&$item) { |
|
| 344 | + \array_walk($additionalKeys, function(&$item) { |
|
| 345 | 345 | $item = 'KEY ' . $item; |
| 346 | 346 | }); |
| 347 | 347 | $fields = \array_merge($fields, $additionalKeys); |
@@ -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 | } |