diff --git a/Classes/Controller/ImagickInfoController.php b/Classes/Controller/ImagickInfoController.php index 99d6684..5bb8571 100644 --- a/Classes/Controller/ImagickInfoController.php +++ b/Classes/Controller/ImagickInfoController.php @@ -22,7 +22,7 @@ * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ -use TYPO3\CMS\Core\Messaging\AbstractMessage; + use TYPO3\CMS\Extbase\Utility\LocalizationUtility; /** diff --git a/Classes/Controller/ImagickTestsController.php b/Classes/Controller/ImagickTestsController.php index 932eab9..3a145f7 100644 --- a/Classes/Controller/ImagickTestsController.php +++ b/Classes/Controller/ImagickTestsController.php @@ -22,8 +22,6 @@ * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ -use TYPO3\CMS\Core\Messaging\AbstractMessage; -use TYPO3\CMS\Extbase\Utility\LocalizationUtility; /** * Backend module controller diff --git a/Classes/Xclass/TestSetup.php b/Classes/Xclass/TestSetup.php index 750c8d4..1433cea 100644 --- a/Classes/Xclass/TestSetup.php +++ b/Classes/Xclass/TestSetup.php @@ -27,8 +27,6 @@ * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ -use TYPO3\CMS\Core\Utility\GeneralUtility; - class TestSetup extends \TYPO3\CMS\Install\Controller\Action\Tool\TestSetup { /** @@ -37,27 +35,15 @@ class TestSetup extends \TYPO3\CMS\Install\Controller\Action\Tool\TestSetup { * @return string Version */ protected function determineImageMagickVersion() { - $version = 'Unknown'; - - try { - /** @var \ImagickImgTeam\Imagickimg\Xclass\GraphicalFunctions $imageProcessor */ - $imageProcessor = $this->initializeImageProcessor(); + /** @var \ImagickImgTeam\Imagickimg\Xclass\GraphicalFunctions $imageProcessor */ + $imageProcessor = $this->initializeImageProcessor(); - $verArr = $imageProcessor->getIMversion(FALSE); - $string = $verArr['versionString']; + $verArr = $imageProcessor->getIMversion(FALSE); + $string = $verArr['versionString']; - list(, $version) = explode('Magick', $string); - list($version) = explode(' ', trim($version)); - $version = trim($version); - } - catch(\ImagickException $e) { - - GeneralUtility::sysLog( - __METHOD__ . ' >> ' . $e->getMessage(), - $this->extKey, - GeneralUtility::SYSLOG_SEVERITY_ERROR); - } + list(, $version) = explode('Magick', $string); + list($version) = explode(' ', trim($version)); - return $version; + return trim($version); } }