Completed
Push — master ( dfd5cb...5cac00 )
by Tim
09:24
created
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.
Classes/Utility/ReflectionUtility.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
         if (self::is9orHigher()) {
46 46
             $reflectionClass = new \ReflectionClass($className);
47 47
 
48
-            return (bool) $reflectionClass->isInstantiable();
48
+            return (bool)$reflectionClass->isInstantiable();
49 49
         }
50 50
 
51
-        return (bool) self::createReflectionClass($className)
51
+        return (bool)self::createReflectionClass($className)
52 52
             ->isInstantiable();
53 53
     }
54 54
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         }
101 101
 
102 102
         if (\is_array($values)) {
103
-            return \trim((string) $values[0]);
103
+            return \trim((string)$values[0]);
104 104
         }
105 105
 
106 106
         return false;
@@ -279,12 +279,12 @@  discard block
 block discarded – undo
279 279
     public static function getDeclaringProperties(string $className)
280 280
     {
281 281
         $classReflection = new \ReflectionClass($className);
282
-        $own = \array_filter($classReflection->getProperties(), function ($property) use ($className) {
283
-            return \trim((string) $property->class, '\\') === \trim($className, '\\');
282
+        $own = \array_filter($classReflection->getProperties(), function($property) use ($className) {
283
+            return \trim((string)$property->class, '\\') === \trim($className, '\\');
284 284
         });
285 285
 
286
-        return \array_map(function ($item) {
287
-            return (string) $item->name;
286
+        return \array_map(function($item) {
287
+            return (string)$item->name;
288 288
         }, $own);
289 289
     }
290 290
 
Please login to merge, or discard this patch.