@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | /** |
| 290 | 290 | * Check if the class is tagged with noHeader. |
| 291 | 291 | * |
| 292 | - * @param $class |
|
| 292 | + * @param string $class |
|
| 293 | 293 | */ |
| 294 | 294 | protected function isTaggedWithNoHeader($class): bool |
| 295 | 295 | { |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | /** |
| 353 | 353 | * Same as getClassProperties, but the fields are in LowerCaseUnderscored. |
| 354 | 354 | * |
| 355 | - * @param $className |
|
| 355 | + * @param string $className |
|
| 356 | 356 | * |
| 357 | 357 | * @return array |
| 358 | 358 | */ |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * Loading Slots. |
| 5 | 5 | */ |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Autoloader\Loader; |
| 9 | 9 | |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | $nameMapperService = GeneralUtility::makeInstance(NameMapperService::class); |
| 362 | 362 | $tableName = ModelUtility::getTableName($className); |
| 363 | 363 | |
| 364 | - return array_map(function ($value) use ($nameMapperService, $tableName) { |
|
| 364 | + return array_map(function($value) use ($nameMapperService, $tableName) { |
|
| 365 | 365 | return $nameMapperService->getDatabaseFieldName($tableName, $value); |
| 366 | 366 | }, ReflectionUtility::getDeclaringProperties($className)); |
| 367 | 367 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | * Get first class tag information. |
| 75 | 75 | * The trimmed value if the tag exists and FALSE if the tag do not exists. |
| 76 | 76 | * |
| 77 | - * @return string|bool |
|
| 77 | + * @return false|string |
|
| 78 | 78 | */ |
| 79 | 79 | public static function getFirstTagValue(string $className, string $tag) |
| 80 | 80 | { |
@@ -3,7 +3,7 @@ discard block |
||
| 3 | 3 | /** |
| 4 | 4 | * Reflection helper. |
| 5 | 5 | */ |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Autoloader\Utility; |
| 9 | 9 | |
@@ -250,11 +250,11 @@ discard block |
||
| 250 | 250 | public static function getDeclaringProperties(string $className) |
| 251 | 251 | { |
| 252 | 252 | $classReflection = new \ReflectionClass($className); |
| 253 | - $own = array_filter($classReflection->getProperties(), function ($property) use ($className) { |
|
| 253 | + $own = array_filter($classReflection->getProperties(), function($property) use ($className) { |
|
| 254 | 254 | return trim((string)$property->class, '\\') === trim($className, '\\'); |
| 255 | 255 | }); |
| 256 | 256 | |
| 257 | - return array_map(function ($item) { |
|
| 257 | + return array_map(function($item) { |
|
| 258 | 258 | return (string)$item->name; |
| 259 | 259 | }, $own); |
| 260 | 260 | } |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Utility to interact with the Model. |
| 5 | 5 | */ |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Autoloader\Utility; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Loading Slots. |
| 5 | 5 | */ |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Autoloader\Loader; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Loading Plugins. |
| 5 | 5 | */ |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Autoloader\Loader; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Loading Hooks. |
| 5 | 5 | */ |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Autoloader\Loader; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * ExtensionTypoScriptSetup. |
| 5 | 5 | */ |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Autoloader\Loader; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Add the smart object SQL string. |
| 5 | 5 | */ |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Autoloader\Slots; |
| 9 | 9 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | /** |
| 4 | 4 | * Management for Smart Objects. |
| 5 | 5 | */ |
| 6 | -declare(strict_types = 1); |
|
| 6 | +declare(strict_types=1); |
|
| 7 | 7 | |
| 8 | 8 | namespace HDNET\Autoloader; |
| 9 | 9 | |