@@ -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 | */ |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | */ |
183 | 183 | protected function getClassPropertiesInLowerCaseUnderscored($className) |
184 | 184 | { |
185 | - return array_map(function ($value) { |
|
185 | + return array_map(function($value) { |
|
186 | 186 | return GeneralUtility::camelCaseToLowerCaseUnderscored($value); |
187 | 187 | }, ReflectionUtility::getDeclaringProperties($className)); |
188 | 188 | } |
@@ -285,7 +285,7 @@ discard block |
||
285 | 285 | if (!isset($GLOBALS['TCA']['tt_content']['types'][$typeKey]['showitem'])) { |
286 | 286 | $baseTcaConfiguration = $this->wrapDefaultTcaConfiguration( |
287 | 287 | $config['fieldConfiguration'], |
288 | - (bool) $config['noHeader'] |
|
288 | + (bool)$config['noHeader'] |
|
289 | 289 | ); |
290 | 290 | |
291 | 291 | if (ExtensionManagementUtility::isLoaded('gridelements')) { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param string $className |
96 | 96 | * @param string $tag |
97 | 97 | * |
98 | - * @return string|bool |
|
98 | + * @return false|string |
|
99 | 99 | */ |
100 | 100 | public static function getFirstTagValue($className, $tag) |
101 | 101 | { |
@@ -115,9 +115,9 @@ discard block |
||
115 | 115 | * Get the tag configuration from this method and respect multiple line and space configuration. |
116 | 116 | * |
117 | 117 | * @param MethodReflection|ClassReflection $reflectionObject |
118 | - * @param array $tagNames |
|
118 | + * @param string[] $tagNames |
|
119 | 119 | * |
120 | - * @return array |
|
120 | + * @return string |
|
121 | 121 | */ |
122 | 122 | public static function getTagConfiguration($reflectionObject, array $tagNames): array |
123 | 123 | { |
@@ -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); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public static function getTableNameByModelReflectionAnnotation($modelClassName) |
39 | 39 | { |
40 | - return (string) ReflectionUtility::getFirstTagValue($modelClassName, 'db'); |
|
40 | + return (string)ReflectionUtility::getFirstTagValue($modelClassName, 'db'); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public static function getSmartExcludesByModelName($name) |
83 | 83 | { |
84 | - return GeneralUtility::trimExplode(',', (string) ReflectionUtility::getFirstTagValue($name, 'smartExclude'), true); |
|
84 | + return GeneralUtility::trimExplode(',', (string)ReflectionUtility::getFirstTagValue($name, 'smartExclude'), true); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | } |
42 | 42 | |
43 | - return (string) $default; |
|
43 | + return (string)$default; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -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) { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @param string $itemContent Item content |
28 | 28 | * @param array $row Record row of tt_content |
29 | 29 | */ |
30 | - public function preProcess(PageLayoutView &$parentObject, &$drawItem, &$headerContent, &$itemContent, array &$row) |
|
30 | + public function preProcess(PageLayoutView&$parentObject, &$drawItem, &$headerContent, &$itemContent, array &$row) |
|
31 | 31 | { |
32 | 32 | if (!$this->isAutoloaderContenobject($row)) { |
33 | 33 | return; |
@@ -107,6 +107,6 @@ discard block |
||
107 | 107 | { |
108 | 108 | $ctype = $row['CType']; |
109 | 109 | |
110 | - return (bool) $GLOBALS['TYPO3_CONF_VARS']['AUTOLOADER']['ContentObject'][$ctype]; |
|
110 | + return (bool)$GLOBALS['TYPO3_CONF_VARS']['AUTOLOADER']['ContentObject'][$ctype]; |
|
111 | 111 | } |
112 | 112 | } |