@@ -67,10 +67,10 @@ |
||
| 67 | 67 | 'ImageMagick', |
| 68 | 68 | ]; |
| 69 | 69 | if(VersionNumberUtility::convertVersionStringToArray(VersionNumberUtility::getCurrentTypo3Version())['version_main'] < 9) { |
| 70 | - $configuration = isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['focuspoint']) ? \unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['focuspoint']) : []; |
|
| 71 | - } else { |
|
| 72 | - $configuration = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('focuspoint'); |
|
| 73 | - } |
|
| 70 | + $configuration = isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['focuspoint']) ? \unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['focuspoint']) : []; |
|
| 71 | + } else { |
|
| 72 | + $configuration = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('focuspoint'); |
|
| 73 | + } |
|
| 74 | 74 | $functionConfiguration = $configuration['imageFunctionConfiguration'] ?? 'png:cropViaGifBuilder;*:GraphicalFunctions'; |
| 75 | 75 | $parts = GeneralUtility::trimExplode(';', $functionConfiguration, true); |
| 76 | 76 | foreach ($parts as $part) { |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | 'GifBuilder', |
| 67 | 67 | 'ImageMagick', |
| 68 | 68 | ]; |
| 69 | - if(VersionNumberUtility::convertVersionStringToArray(VersionNumberUtility::getCurrentTypo3Version())['version_main'] < 9) { |
|
| 69 | + if (VersionNumberUtility::convertVersionStringToArray(VersionNumberUtility::getCurrentTypo3Version())['version_main'] < 9) { |
|
| 70 | 70 | $configuration = isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['focuspoint']) ? \unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['focuspoint']) : []; |
| 71 | 71 | } else { |
| 72 | 72 | $configuration = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('focuspoint'); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $url = $imageService->getImageUri($processedImage); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - if(filter_var($url, FILTER_VALIDATE_URL)) { |
|
| 74 | + if (filter_var($url, FILTER_VALIDATE_URL)) { |
|
| 75 | 75 | return $url; |
| 76 | 76 | } |
| 77 | 77 | |
@@ -88,8 +88,8 @@ discard block |
||
| 88 | 88 | protected function cleanupPosition(array $position): array |
| 89 | 89 | { |
| 90 | 90 | return [ |
| 91 | - MathUtility::forceIntegerInRange((int) $position[0], -100, 100, 0), |
|
| 92 | - MathUtility::forceIntegerInRange((int) $position[1], -100, 100, 0), |
|
| 91 | + MathUtility::forceIntegerInRange((int)$position[0], -100, 100, 0), |
|
| 92 | + MathUtility::forceIntegerInRange((int)$position[1], -100, 100, 0), |
|
| 93 | 93 | ]; |
| 94 | 94 | } |
| 95 | 95 | } |