@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * Get the TCA information of the given data sets. |
59 | 59 | * |
60 | 60 | * @param $implementations |
61 | - * @param $table |
|
61 | + * @param string $table |
|
62 | 62 | * |
63 | 63 | * @return array |
64 | 64 | */ |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | * Get the SQL information of the given data sets. |
80 | 80 | * |
81 | 81 | * @param array $implementations |
82 | - * @param $table |
|
82 | + * @param string $table |
|
83 | 83 | * |
84 | 84 | * @return array |
85 | 85 | */ |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * Get the SQL Key information of the given data sets. |
100 | 100 | * |
101 | 101 | * @param $implementations |
102 | - * @param $table |
|
102 | + * @param string $table |
|
103 | 103 | * |
104 | 104 | * @return array |
105 | 105 | */ |
@@ -96,8 +96,8 @@ |
||
96 | 96 | * If the $aspectClassName not available (e.g. Extension is not installed) then |
97 | 97 | * throw a Exception. |
98 | 98 | * |
99 | - * @param $aspectClassName |
|
100 | - * @param $aspectJoinPoint |
|
99 | + * @param string $aspectClassName |
|
100 | + * @param string $aspectJoinPoint |
|
101 | 101 | * |
102 | 102 | * @throws \HDNET\Autoloader\Exception |
103 | 103 | * |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Check if the class is tagged with noHeader. |
114 | 114 | * |
115 | - * @param $class |
|
115 | + * @param string $class |
|
116 | 116 | * |
117 | 117 | * @return bool |
118 | 118 | */ |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | /** |
177 | 177 | * Same as getClassProperties, but the fields are in LowerCaseUnderscored. |
178 | 178 | * |
179 | - * @param $className |
|
179 | + * @param string $className |
|
180 | 180 | * |
181 | 181 | * @return array |
182 | 182 | */ |
@@ -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 | } |
@@ -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 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * Get the query for the given class name oder object. |
38 | 38 | * |
39 | - * @param string|object $objectName |
|
39 | + * @param string $objectName |
|
40 | 40 | * |
41 | 41 | * @return \TYPO3\CMS\Extbase\Persistence\QueryInterface |
42 | 42 | */ |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * Log into the TYPO3_CONF_VARS to get more information in the backend. |
81 | 81 | * |
82 | - * @param $message |
|
82 | + * @param string $message |
|
83 | 83 | */ |
84 | 84 | public static function log($message) |
85 | 85 | { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @param string $className |
99 | 99 | * @param string $tag |
100 | 100 | * |
101 | - * @return string|bool |
|
101 | + * @return false|string |
|
102 | 102 | */ |
103 | 103 | public static function getFirstTagValue(string $className, string $tag) |
104 | 104 | { |
@@ -118,9 +118,9 @@ discard block |
||
118 | 118 | * Get the tag configuration from this method and respect multiple line and space configuration. |
119 | 119 | * |
120 | 120 | * @param MethodReflection|ClassReflection $reflectionObject |
121 | - * @param array $tagNames |
|
121 | + * @param string[] $tagNames |
|
122 | 122 | * |
123 | - * @return array |
|
123 | + * @return string |
|
124 | 124 | */ |
125 | 125 | public static function getTagConfiguration($reflectionObject, array $tagNames): array |
126 | 126 | { |
@@ -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; |