Completed
Push — master ( ce4dc0...d5077a )
by Tim
02:08
created
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/Utility/ReflectionUtility.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * @param string $className
80 80
      * @param string $tag
81 81
      *
82
-     * @return string|bool
82
+     * @return false|string
83 83
      */
84 84
     public static function getFirstTagValue(string $className, string $tag)
85 85
     {
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @param string $className
113 113
      * @param        $methodName
114
-     * @param array  $tagNames
114
+     * @param string[]  $tagNames
115 115
      *
116
-     * @return array
116
+     * @return string
117 117
      */
118 118
     public static function getTagConfigurationForMethod($className, $methodName, array $tagNames): array
119 119
     {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      * Get the tag configuration from this method and respect multiple line and space configuration.
142 142
      *
143 143
      * @param string $className
144
-     * @param array  $tagNames
144
+     * @param string[]  $tagNames
145 145
      *
146 146
      * @return array
147 147
      */
@@ -172,9 +172,9 @@  discard block
 block discarded – undo
172 172
      *
173 173
      * @param string $className
174 174
      * @param string $property
175
-     * @param array  $tagNames
175
+     * @param string[]  $tagNames
176 176
      *
177
-     * @return array
177
+     * @return string
178 178
      */
179 179
     public static function getTagConfigurationForProperty(string $className, string $property, array $tagNames): array
180 180
     {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $reflectionClass = new \ReflectionClass($className);
46 46
 
47
-        return (bool) $reflectionClass->isInstantiable();
47
+        return (bool)$reflectionClass->isInstantiable();
48 48
     }
49 49
 
50 50
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
             $reflectionService = GeneralUtility::makeInstance(\HDNET\Autoloader\Service\ReflectionService::class);
85 85
             $values = $reflectionService->getClassTagValues($className, $tag);
86
-            if($values === false) {
86
+            if ($values === false) {
87 87
                 return false;
88 88
             }
89 89
         } else {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         }
96 96
 
97 97
         if (\is_array($values)) {
98
-            return \trim((string) $values[0]);
98
+            return \trim((string)$values[0]);
99 99
         }
100 100
 
101 101
         return false;
@@ -275,12 +275,12 @@  discard block
 block discarded – undo
275 275
     public static function getDeclaringProperties(string $className)
276 276
     {
277 277
         $classReflection = new \ReflectionClass($className);
278
-        $own = \array_filter($classReflection->getProperties(), function ($property) use ($className) {
279
-            return \trim((string) $property->class, '\\') === \trim($className, '\\');
278
+        $own = \array_filter($classReflection->getProperties(), function($property) use ($className) {
279
+            return \trim((string)$property->class, '\\') === \trim($className, '\\');
280 280
         });
281 281
 
282
-        return \array_map(function ($item) {
283
-            return (string) $item->name;
282
+        return \array_map(function($item) {
283
+            return (string)$item->name;
284 284
         }, $own);
285 285
     }
286 286
 
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.