Completed
Push — master ( 6f6c2f...93dd0d )
by Tim
02:28
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/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.
Classes/Utility/ReflectionUtility.php 3 patches
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @param string $className
28 28
      *
29
-     * @return ClassReflection
29
+     * @return string
30 30
      */
31 31
     public static function createReflectionClass($className)
32 32
     {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      * @param string $className
130 130
      * @param string $tag
131 131
      *
132
-     * @return string|bool
132
+     * @return false|string
133 133
      */
134 134
     public static function getFirstTagValue(string $className, string $tag)
135 135
     {
@@ -177,10 +177,9 @@  discard block
 block discarded – undo
177 177
     /**
178 178
      * Get the tag configuration from this method and respect multiple line and space configuration.
179 179
      *
180
-     * @param MethodReflection|ClassReflection $reflectionObject
181
-     * @param array                            $tagNames
180
+     * @param string[]                            $tagNames
182 181
      *
183
-     * @return array
182
+     * @return string
184 183
      */
185 184
     public static function getTagConfigurationForMethod($className, $methodName, array $tagNames): array
186 185
     {
@@ -207,8 +206,8 @@  discard block
 block discarded – undo
207 206
     /**
208 207
      * Get the tag configuration from this method and respect multiple line and space configuration.
209 208
      *
210
-     * @param MethodReflection|ClassReflection $reflectionObject
211
-     * @param array                            $tagNames
209
+     * @param string[]                            $tagNames
210
+     * @param string $className
212 211
      *
213 212
      * @return array
214 213
      */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,13 +7,11 @@
 block discarded – undo
7 7
 
8 8
 namespace HDNET\Autoloader\Utility;
9 9
 
10
-use HDNET\Autoloader\Hooks\ClearCache;
11 10
 use TYPO3\CMS\Core\Utility\GeneralUtility;
12 11
 use TYPO3\CMS\Core\Utility\VersionNumberUtility;
13 12
 use TYPO3\CMS\Extbase\Reflection\ClassReflection;
14 13
 use TYPO3\CMS\Extbase\Reflection\MethodReflection;
15 14
 use TYPO3\CMS\Extbase\Reflection\ReflectionService;
16
-use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
17 15
 
18 16
 /**
19 17
  * Reflection helper.
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public static function isInstantiable($className):bool
44 44
     {
45
-        if(self::is9orHigher()) {
45
+        if (self::is9orHigher()) {
46 46
             $reflectionClass = new \ReflectionClass($className);
47 47
             return (bool)$reflectionClass->isInstantiable();
48 48
         }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         }
140 140
         $values = $classReflection->getTagValues($tag);
141 141
         if (\is_array($values)) {
142
-            return \trim((string) $values[0]);
142
+            return \trim((string)$values[0]);
143 143
         }
144 144
 
145 145
         return false;
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/SmartObjectManager.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
             $return = false;
61 61
         } else {
62 62
             $classReflection = ReflectionUtility::createReflectionClass($className);
63
-            $return = !(bool) (!ReflectionUtility::isInstantiable($className) || !$classReflection->isTaggedWith('db'));
63
+            $return = !(bool)(!ReflectionUtility::isInstantiable($className) || !$classReflection->isTaggedWith('db'));
64 64
         }
65 65
 
66 66
         // if ($registerAutoLoader) {
Please login to merge, or discard this patch.