Completed
Push — master ( 25d723...d82c34 )
by Tim
26:08 queued 11:07
created
Classes/Loader/ExtensionTypoScriptSetup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Classes/Utility/TranslateUtility.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Classes/Utility/ModelUtility.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Classes/Hooks/ClearCache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Classes/Hooks/ElementBackendPreview.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,6 +110,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Classes/Hooks/Localization.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,8 +45,8 @@
 block discarded – undo
45 45
      */
46 46
     protected function useTableNameFileBase()
47 47
     {
48
-        $configuration = \unserialize((string) $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']);
48
+        $configuration = \unserialize((string)$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']);
49 49
 
50
-        return isset($configuration['enableLanguageFileOnTableBase']) ? (bool) $configuration['enableLanguageFileOnTableBase'] : false;
50
+        return isset($configuration['enableLanguageFileOnTableBase']) ? (bool)$configuration['enableLanguageFileOnTableBase'] : false;
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
Classes/Loader/Hooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
             foreach (ReflectionUtility::getPublicMethodNames($hookClass) as $methodName) {
61 61
                 $tagConfiguration = ReflectionUtility::getTagConfigurationForMethod($hookClass, $methodName, ['hook']);
62 62
                 if (\count($tagConfiguration['hook']) > 0) {
63
-                    $hookLocations = \array_map(function ($hook) {
63
+                    $hookLocations = \array_map(function($hook) {
64 64
                         return \trim($hook, " \t\n\r\0\x0B|");
65 65
                     }, $tagConfiguration['hook']);
66 66
 
Please login to merge, or discard this patch.
Classes/ViewHelpers/Be/EditLinkViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,6 +80,6 @@
 block discarded – undo
80 80
             $uri = BackendUtility::getModuleUrl('record_edit', $urlParameters);
81 81
         }
82 82
 
83
-        return (string) $uri;
83
+        return (string)$uri;
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
Classes/Service/SmartObjectInformationService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
205 205
      */
206 206
     protected function useTableNameFileBase()
207 207
     {
208
-        $configuration = \unserialize((string) $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']);
208
+        $configuration = \unserialize((string)$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['autoloader']);
209 209
 
210
-        return isset($configuration['enableLanguageFileOnTableBase']) ? (bool) $configuration['enableLanguageFileOnTableBase'] : false;
210
+        return isset($configuration['enableLanguageFileOnTableBase']) ? (bool)$configuration['enableLanguageFileOnTableBase'] : false;
211 211
     }
212 212
 
213 213
     /**
@@ -277,8 +277,8 @@  discard block
 block discarded – undo
277 277
             $fields[] = [
278 278
                 'property' => $propertyName,
279 279
                 'name' => $nameMapperService->getDatabaseFieldName($tableName, $propertyName),
280
-                'db' => \trim((string) $configuration['db']),
281
-                'var' => \trim((string) $var),
280
+                'db' => \trim((string)$configuration['db']),
281
+                'var' => \trim((string)$var),
282 282
                 'rte' => ReflectionUtility::isPropertyTaggedWith($modelClassName, $propertyName, 'enableRichText'),
283 283
             ];
284 284
         }
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         $reflectionConfiguration = ReflectionUtility::getTagConfigurationForClass($modelClassName, ['key']);
343 343
         if (!empty($reflectionConfiguration['key'])) {
344 344
             $additionalKeys = $reflectionConfiguration['key'];
345
-            \array_walk($additionalKeys, function (&$item) {
345
+            \array_walk($additionalKeys, function(&$item) {
346 346
                 $item = 'KEY ' . $item;
347 347
             });
348 348
             $fields = \array_merge($fields, $additionalKeys);
Please login to merge, or discard this patch.