Completed
Push — master ( 648d18...098095 )
by Tim
19:42
created
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/Service/SoapServer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         if (isset($GLOBALS['TYPO3_CONF_VARS']['AUTOLOADER']['Soap'][$server])) {
51 51
             $this->serverClass = $GLOBALS['TYPO3_CONF_VARS']['AUTOLOADER']['Soap'][$server];
52 52
         }
53
-        $this->renderWsdl = (bool) $wsdl;
53
+        $this->renderWsdl = (bool)$wsdl;
54 54
     }
55 55
 
56 56
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     protected function getServiceUri()
123 123
     {
124 124
         $uri = GeneralUtility::getIndpEnv('TYPO3_REQUEST_URL');
125
-        $parts = (array) \parse_url($uri);
125
+        $parts = (array)\parse_url($uri);
126 126
         $parts['query'] = 'eID=SoapServer&server=' . $this->serverKey;
127 127
 
128 128
         return HttpUtility::buildUrl($parts);
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/Service/SmartObjectInformationService.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -204,9 +204,9 @@  discard block
 block discarded – undo
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
     /**
@@ -278,9 +278,9 @@  discard block
 block discarded – undo
278 278
             $fields[] = [
279 279
                 'property' => $property->getName(),
280 280
                 'name' => $nameMapperService->getDatabaseFieldName($tableName, $property->getName()),
281
-                'db' => \trim((string) $dbInformation[0]),
282
-                'var' => \trim((string) $var),
283
-                'rte' => (bool) $property->isTaggedWith('enableRichText'),
281
+                'db' => \trim((string)$dbInformation[0]),
282
+                'var' => \trim((string)$var),
283
+                'rte' => (bool)$property->isTaggedWith('enableRichText'),
284 284
             ];
285 285
         }
286 286
 
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
         $classReflection = ReflectionUtility::createReflectionClass($modelClassName);
344 344
         if ($classReflection->isTaggedWith('key')) {
345 345
             $additionalKeys = $classReflection->getTagValues('key');
346
-            \array_walk($additionalKeys, function (&$item) {
346
+            \array_walk($additionalKeys, function(&$item) {
347 347
                 $item = 'KEY ' . $item;
348 348
             });
349 349
             $fields = \array_merge($fields, $additionalKeys);
Please login to merge, or discard this patch.