@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * JsonServer. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Autoloader\Utility; |
9 | 9 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | list($namespace, $method) = self::getNamespaceAndMethod($namespace, $methodRaw); |
61 | 61 | $singleJsonRequest['method'] = $method; |
62 | 62 | |
63 | - $server = new JsonServerService($namespace, (bool) GeneralUtility::_GP('smd')); |
|
63 | + $server = new JsonServerService($namespace, (bool)GeneralUtility::_GP('smd')); |
|
64 | 64 | |
65 | 65 | $request = new Request(); |
66 | 66 | $request->setOptions($singleJsonRequest); |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Utility to interact with the Model. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Autoloader\Utility; |
9 | 9 | |
@@ -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 |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * Icon helper. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Autoloader\Utility; |
9 | 9 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * TranslateUtility. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Autoloader\Utility; |
9 | 9 | |
@@ -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 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * |
6 | 6 | * General file information |
7 | 7 | */ |
8 | -declare(strict_types=1); |
|
8 | +declare(strict_types = 1); |
|
9 | 9 | |
10 | 10 | namespace HDNET\Autoloader\Utility; |
11 | 11 |
@@ -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 | { |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Reflection helper. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Autoloader\Utility; |
9 | 9 | |
@@ -108,7 +108,7 @@ discard block |
||
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; |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Clear Cache hook for the Backend. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Autoloader\Hooks; |
9 | 9 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | return ''; |
87 | 87 | } |
88 | 88 | |
89 | - return (string) $uri; |
|
89 | + return (string)$uri; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -96,9 +96,9 @@ discard block |
||
96 | 96 | */ |
97 | 97 | protected function isAlwaysActivated(): bool |
98 | 98 | { |
99 | - $configuration = \unserialize((string) $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']); |
|
99 | + $configuration = \unserialize((string)$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']); |
|
100 | 100 | |
101 | - return isset($configuration['enableAutoloaderClearCacheInProduction']) ? (bool) $configuration['enableAutoloaderClearCacheInProduction'] : false; |
|
101 | + return isset($configuration['enableAutoloaderClearCacheInProduction']) ? (bool)$configuration['enableAutoloaderClearCacheInProduction'] : false; |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /** |
4 | 4 | * SymfonyCommandController. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Autoloader\Loader; |
9 | 9 |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * Custom Backend Preview for Elements like Content Objects. |
5 | 5 | */ |
6 | -declare(strict_types=1); |
|
6 | +declare(strict_types = 1); |
|
7 | 7 | |
8 | 8 | namespace HDNET\Autoloader\Hooks; |
9 | 9 | |
@@ -110,6 +110,6 @@ discard block |
||
110 | 110 | { |
111 | 111 | $ctype = $row['CType']; |
112 | 112 | |
113 | - return (bool) $GLOBALS['TYPO3_CONF_VARS']['AUTOLOADER']['ContentObject'][$ctype]; |
|
113 | + return (bool)$GLOBALS['TYPO3_CONF_VARS']['AUTOLOADER']['ContentObject'][$ctype]; |
|
114 | 114 | } |
115 | 115 | } |