[TASK] Use fully qualified name resolution in PHP 5.5
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Classes / Utility / InstallUtility.php
index 4f76380..0436404 100644 (file)
@@ -141,7 +141,7 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
         * Wrapper function to check for loaded extensions
         *
         * @param string $extensionKey
-        * @return boolean TRUE if extension is loaded
+        * @return bool TRUE if extension is loaded
         */
        public function isLoaded($extensionKey) {
                return $this->packageManager->isPackageActive($extensionKey);
@@ -172,7 +172,7 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
         * Checks if an extension is available in the system
         *
         * @param $extensionKey
-        * @return boolean
+        * @return bool
         */
        public function isAvailable($extensionKey) {
                return $this->packageManager->isPackageAvailable($extensionKey);
@@ -291,7 +291,7 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
         */
        protected function saveDefaultConfiguration($extensionKey) {
                /** @var $configUtility \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility */
-               $configUtility = $this->objectManager->get('TYPO3\\CMS\\Extensionmanager\\Utility\\ConfigurationUtility');
+               $configUtility = $this->objectManager->get(\TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility::class);
                $configUtility->saveDefaultConfiguration($extensionKey);
        }
 
@@ -308,13 +308,13 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
                        $diff = $this->installToolSqlParser->getDatabaseExtra($fieldDefinitionsFromFile, $fieldDefinitionsFromCurrentDatabase);
                        $updateStatements = $this->installToolSqlParser->getUpdateSuggestions($diff);
                        $db = $this->getDatabaseConnection();
-                       foreach ((array) $updateStatements['add'] as $string) {
+                       foreach ((array)$updateStatements['add'] as $string) {
                                $db->admin_query($string);
                        }
-                       foreach ((array) $updateStatements['change'] as $string) {
+                       foreach ((array)$updateStatements['change'] as $string) {
                                $db->admin_query($string);
                        }
-                       foreach ((array) $updateStatements['create_table'] as $string) {
+                       foreach ((array)$updateStatements['create_table'] as $string) {
                                $db->admin_query($string);
                        }
                }
@@ -400,7 +400,7 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
         *
         * @internal
         * @param \TYPO3\CMS\Extensionmanager\Domain\Model\Extension $extensionData
-        * @return boolean
+        * @return bool
         */
        public function isUpdateAvailable(\TYPO3\CMS\Extensionmanager\Domain\Model\Extension $extensionData) {
                $isUpdateAvailable = FALSE;
@@ -451,14 +451,14 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
                }
                if ($importFileToUse !== NULL) {
                        /** @var ImportExportUtility $importExportUtility */
-                       $importExportUtility = $this->objectManager->get('TYPO3\\CMS\\Impexp\\Utility\\ImportExportUtility');
+                       $importExportUtility = $this->objectManager->get(\TYPO3\CMS\Impexp\Utility\ImportExportUtility::class);
                        try {
                                $importResult = $importExportUtility->importT3DFile(PATH_site . $importFileToUse, 0);
                                $this->registry->set('extensionDataImport', $extensionSiteRelPath . 'Initialisation/dataImported', 1);
                                $this->emitAfterExtensionT3DImportSignal($importFileToUse, $importResult);
                        } catch (\ErrorException $e) {
                                /** @var \TYPO3\CMS\Core\Log\Logger $logger */
-                               $logger = $this->objectManager->get('TYPO3\\CMS\\Core\\Log\\LogManager')->getLogger(__CLASS__);
+                               $logger = $this->objectManager->get(\TYPO3\CMS\Core\Log\LogManager::class)->getLogger(__CLASS__);
                                $logger->log(\TYPO3\CMS\Core\Log\LogLevel::WARNING, $e->getMessage());
                        }
                }