[TASK] Remove unused use statements 45/31245/5
authorNicole Cordes <typo3@cordes.co>
Mon, 30 Jun 2014 12:23:24 +0000 (14:23 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 1 Jul 2014 18:02:18 +0000 (20:02 +0200)
Several classes include unused use statements. This patch removes those
statements or uses them in their code.

Resolves: #59997
Releases: 6.3
Change-Id: I5890a80bcee96976e3c35d967db8c53a9c11b002
Reviewed-on: https://review.typo3.org/31245
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Oliver Klee
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
37 files changed:
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/Sprite/AbstractSpriteHandler.php
typo3/sysext/backend/Classes/Tree/Pagetree/DataProvider.php
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeCommands.php
typo3/sysext/backend/Classes/Tree/Pagetree/ExtdirectTreeDataProvider.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/core/Classes/Cache/Backend/EarlyClassLoaderBackend.php
typo3/sysext/core/Classes/Error/ProductionExceptionHandler.php
typo3/sysext/core/Classes/Package/FailsafePackageManager.php
typo3/sysext/core/Classes/Package/UnitTestPackageManager.php
typo3/sysext/core/Classes/Resource/Driver/AbstractDriver.php
typo3/sysext/core/Classes/Resource/InaccessibleFolder.php
typo3/sysext/core/Classes/Resource/Service/IndexerService.php
typo3/sysext/core/Classes/Utility/MailUtility.php
typo3/sysext/core/Tests/Functional/Framework/Constraint/RequestSection/AbstractStructureRecordConstraint.php
typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php
typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php
typo3/sysext/core/Tests/Unit/Utility/ExtensionManagementUtilityTest.php
typo3/sysext/core/Tests/Unit/Utility/PathUtilityTest.php
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbQueryParser.php
typo3/sysext/extbase/Tests/Functional/Persistence/AddTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/CountTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/InTest.php
typo3/sysext/extbase/Tests/Functional/Persistence/QueryParserTest.php
typo3/sysext/extbase/Tests/Unit/Mvc/Controller/MvcPropertyMappingConfigurationServiceTest.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php
typo3/sysext/feedit/Classes/FrontendEditPanel.php
typo3/sysext/fluid/Tests/Unit/View/TemplateViewTest.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Link/PageViewHelperTest.php
typo3/sysext/install/Classes/Configuration/AbstractCustomPreset.php
typo3/sysext/install/Classes/Configuration/AbstractPreset.php
typo3/sysext/install/Classes/Configuration/CustomPresetInterface.php
typo3/sysext/install/Classes/Configuration/PresetInterface.php
typo3/sysext/install/Classes/View/FailsafeView.php
typo3/sysext/openid/Classes/Wizard.php
typo3/sysext/rsaauth/Classes/Hook/BackendHookForAjaxLogin.php
typo3/sysext/workspaces/Tests/Functional/Service/WorkspaceServiceTest.php

index 062999a..ab7ee07 100644 (file)
@@ -18,7 +18,6 @@ use TYPO3\CMS\Backend\Form\FormEngine;
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Backend\Utility\IconUtility;
 use TYPO3\CMS\Core\Html\HtmlParser;
-use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Core\Utility\HttpUtility;
 use TYPO3\CMS\Core\Utility\MathUtility;
index e177de0..051a0df 100644 (file)
@@ -14,7 +14,6 @@ namespace TYPO3\CMS\Backend\Sprite;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Backend\Sprite\SpriteManager;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
index 2828a68..802e2ea 100644 (file)
@@ -14,7 +14,6 @@ namespace TYPO3\CMS\Backend\Tree\Pagetree;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Backend\Tree\Pagetree\Commands;
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 
index b240beb..19f0c10 100644 (file)
@@ -14,7 +14,6 @@ namespace TYPO3\CMS\Backend\Tree\Pagetree;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Backend\Tree\Pagetree\Commands;
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 
index d50a324..81c54c1 100644 (file)
@@ -14,7 +14,6 @@ namespace TYPO3\CMS\Backend\Tree\Pagetree;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Backend\Tree\Pagetree\Commands;
 use TYPO3\CMS\Backend\Utility\IconUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 
index 7843c64..0b352e0 100644 (file)
@@ -14,7 +14,6 @@ namespace TYPO3\CMS\Backend\Utility;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Backend\Utility\IconUtility;
 use TYPO3\CMS\Core\Messaging\FlashMessage;
 use TYPO3\CMS\Core\Resource\File;
 use TYPO3\CMS\Core\Resource\ProcessedFile;
@@ -1550,11 +1549,11 @@ class BackendUtility {
                                                        continue;
                                                }
                                        } catch (\TYPO3\CMS\Core\Resource\Exception\ResourceDoesNotExistException $exception) {
-                                               /** @var \TYPO3\CMS\Core\Messaging\FlashMessage $flashMessage */
-                                               $flashMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
+                                               /** @var FlashMessage $flashMessage */
+                                               $flashMessage = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
                                                        htmlspecialchars($exception->getMessage()),
                                                        $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:warning.file_missing', TRUE),
-                                                       \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR
+                                                       FlashMessage::ERROR
                                                );
                                                $thumbData .= $flashMessage->render();
                                                continue;
index 30d5c5e..b7d3166 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Core\Cache\Backend;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
 /**
  * A caching backend customized explicitly for the class loader.
  * This backend is NOT public API
index 08bf8b1..1eaef62 100644 (file)
@@ -13,7 +13,6 @@ namespace TYPO3\CMS\Core\Error;
  *
  * The TYPO3 project - inspiring people to share!
  */
-use TYPO3\CMS\Core\Messaging\ErrorpageMessage;
 
 /**
  * A quite exception handler which catches but ignores any exception.
index f705d09..d467843 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Core\Package;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
 /**
  * This is an intermediate package manager that loads just
  * the required extensions for the install in case the package
index b1c71f5..c282902 100644 (file)
@@ -14,9 +14,6 @@ namespace TYPO3\CMS\Core\Package;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\Flow\Utility\Files;
-
 /**
  * This is an intermediate package manager that loads
  * all extensions that are present in one of the package base paths,
index 2b1cfe9..c7762f1 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Core\Resource\Driver;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Resource\FileInterface;
-use TYPO3\CMS\Core\Resource\Folder;
 use TYPO3\CMS\Core\Utility\PathUtility;
 
 /**
index 81253b5..ed618da 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Core\Resource;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\PathUtility;
-
 /**
  * A representation for an inaccessible folder.
  *
index 11a6f0e..e8cb1da 100644 (file)
@@ -52,7 +52,7 @@ class IndexerService implements \TYPO3\CMS\Core\SingletonInterface {
        }
 
        /**
-        * @return \TYPO3\CMS\Core\Resource\Index\FileIndexRepository
+        * @return FileIndexRepository
         */
        protected function getFileIndexRepository() {
                return GeneralUtility::makeInstance('TYPO3\CMS\Core\Resource\Index\FileIndexRepository');
index 0ea4e4f..e8819ee 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Core\Utility;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
 /**
  * Class to handle mail specific functionality
  *
@@ -66,7 +64,7 @@ class MailUtility {
                                if ($hookSubscriberContainsArrow !== FALSE) {
                                        throw new \RuntimeException($hookSubscriber . ' is an invalid hook implementation. Please consider using an implementation of TYPO3\\CMS\\Core\\Mail\\MailerAdapter.', 1322287600);
                                } else {
-                                       $mailerAdapter = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($hookSubscriber);
+                                       $mailerAdapter = GeneralUtility::makeInstance($hookSubscriber);
                                        if ($mailerAdapter instanceof \TYPO3\CMS\Core\Mail\MailerAdapterInterface) {
                                                $success = $success && $mailerAdapter->mail($to, $subject, $messageBody, $additionalHeaders, $additionalParameters, $fakeThis);
                                        } else {
@@ -83,7 +81,7 @@ class MailUtility {
                        }
                }
                if (!$success) {
-                       \TYPO3\CMS\Core\Utility\GeneralUtility::sysLog('Mail to "' . $to . '" could not be sent (Subject: "' . $subject . '").', 'Core', \TYPO3\CMS\Core\Utility\GeneralUtility::SYSLOG_SEVERITY_ERROR);
+                       GeneralUtility::sysLog('Mail to "' . $to . '" could not be sent (Subject: "' . $subject . '").', 'Core', GeneralUtility::SYSLOG_SEVERITY_ERROR);
                }
                return $success;
        }
@@ -138,13 +136,13 @@ class MailUtility {
        static public function getSystemFromAddress() {
                // default, first check the localconf setting
                $address = $GLOBALS['TYPO3_CONF_VARS']['MAIL']['defaultMailFromAddress'];
-               if (!\TYPO3\CMS\Core\Utility\GeneralUtility::validEmail($address)) {
+               if (!GeneralUtility::validEmail($address)) {
                        // just get us a domain record we can use as the host
                        $host = '';
                        $domainRecord = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow('domainName', 'sys_domain', 'hidden = 0', '', 'pid ASC, sorting ASC');
                        if (!empty($domainRecord['domainName'])) {
                                $tempUrl = $domainRecord['domainName'];
-                               if (!\TYPO3\CMS\Core\Utility\GeneralUtility::isFirstPartOfStr($tempUrl, 'http')) {
+                               if (!GeneralUtility::isFirstPartOfStr($tempUrl, 'http')) {
                                        // shouldn't be the case anyways, but you never know
                                        // ... there're crazy people out there
                                        $tempUrl = 'http://' . $tempUrl;
@@ -152,10 +150,10 @@ class MailUtility {
                                $host = parse_url($tempUrl, PHP_URL_HOST);
                        }
                        $address = 'no-reply@' . $host;
-                       if (!\TYPO3\CMS\Core\Utility\GeneralUtility::validEmail($address)) {
+                       if (!GeneralUtility::validEmail($address)) {
                                // still nothing, get host name from server
                                $address = 'no-reply@' . php_uname('n');
-                               if (!\TYPO3\CMS\Core\Utility\GeneralUtility::validEmail($address)) {
+                               if (!GeneralUtility::validEmail($address)) {
                                        // if everything fails use a dummy address
                                        $address = 'no-reply@example.com';
                                }
index 341b03e..48ae306 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Core\Tests\Functional\Framework\Constraint\RequestSection;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Tests\Functional\Framework\Frontend\ResponseSection;
-
 /**
  * Model of frontend response
  */
index c957d7a..8fa91a4 100644 (file)
@@ -24,7 +24,7 @@ use TYPO3\CMS\Core\Resource\ResourceCompressor;
 class ResourceCompressorTest extends BaseTestCase {
 
        /**
-        * @var \TYPO3\CMS\Core\Resource\ResourceCompressor|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface
+        * @var ResourceCompressor|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface
         */
        protected $subject;
 
index 2262afb..0c5be24 100644 (file)
@@ -29,7 +29,7 @@ class ResourceStorageTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCa
        protected $singletonInstances = array();
 
        /**
-        * @var \TYPO3\CMS\Core\Resource\ResourceStorage
+        * @var ResourceStorage
         */
        protected $fixture;
 
@@ -99,11 +99,11 @@ class ResourceStorageTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCa
         * IMPORTANT: Call this only after setting up the virtual file system (with the addTo* methods)!
         *
         * @param $driverConfiguration
-        * @param \TYPO3\CMS\Core\Resource\ResourceStorage $storageObject
+        * @param ResourceStorage $storageObject
         * @param array $mockedDriverMethods
         * @return \TYPO3\CMS\Core\Resource\Driver\LocalDriver
         */
-       protected function createDriverMock($driverConfiguration, \TYPO3\CMS\Core\Resource\ResourceStorage $storageObject = NULL, $mockedDriverMethods = array()) {
+       protected function createDriverMock($driverConfiguration, ResourceStorage $storageObject = NULL, $mockedDriverMethods = array()) {
                $this->initializeVfs();
 
                if (!isset($driverConfiguration['basePath'])) {
@@ -222,7 +222,7 @@ class ResourceStorageTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCa
        public function getPublicUrlReturnsNullIfStorageIsNotOnline() {
                /** @var $driver \TYPO3\CMS\Core\Resource\Driver\LocalDriver */
                $driver = $this->getMock('TYPO3\\CMS\\Core\\Resource\\Driver\\LocalDriver', array(), array(array('basePath' => $this->getMountRootUrl())));
-               /** @var $fixture \TYPO3\CMS\Core\Resource\ResourceStorage */
+               /** @var $fixture ResourceStorage */
                $fixture = $this->getMock('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', array('isOnline'), array($driver, array('configuration' => array())));
                $fixture->expects($this->once())->method('isOnline')->will($this->returnValue(FALSE));
 
@@ -269,7 +269,7 @@ class ResourceStorageTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCa
                $mockedDriver->expects($this->any())->method('getPermissions')->will($this->returnValue($permissionsFromDriver));
                $mockedFolder = $this->getMock('TYPO3\\CMS\\Core\\Resource\\Folder', array(), array(), '', FALSE);
                        // Let all other checks pass
-               /** @var $fixture \TYPO3\CMS\Core\Resource\ResourceStorage */
+               /** @var $fixture ResourceStorage */
                $fixture = $this->getMock('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', array('isWritable', 'isBrowsable', 'checkUserActionPermission'), array($mockedDriver, array()), '', FALSE);
                $fixture->expects($this->any())->method('isWritable')->will($this->returnValue(TRUE));
                $fixture->expects($this->any())->method('isBrowsable')->will($this->returnValue(TRUE));
@@ -438,7 +438,7 @@ class ResourceStorageTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCa
                $sourceDriver = $this->getMock('TYPO3\\CMS\\Core\\Resource\\Driver\\LocalDriver');
                $sourceDriver->expects($this->once())->method('deleteFile')->with($this->equalTo($sourceFileIdentifier));
                $configuration = $this->convertConfigurationArrayToFlexformXml(array());
-               $sourceStorage = new \TYPO3\CMS\Core\Resource\ResourceStorage($sourceDriver, array('configuration' => $configuration));
+               $sourceStorage = new ResourceStorage($sourceDriver, array('configuration' => $configuration));
                $sourceFile = $this->getSimpleFileMock($sourceFileIdentifier);
                $sourceFile->expects($this->once())->method('getForLocalProcessing')->will($this->returnValue($localFilePath));
                $sourceFile->expects($this->any())->method('getStorage')->will($this->returnValue($sourceStorage));
@@ -448,7 +448,7 @@ class ResourceStorageTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCa
                $driver = $this->getMock('TYPO3\\CMS\\Core\\Resource\\Driver\\LocalDriver', array(), array(array('basePath' => $this->getMountRootUrl())));
                $driver->expects($this->once())->method('getFileInfoByIdentifier')->will($this->returnValue($fileInfoDummy));
                $driver->expects($this->once())->method('addFile')->with($localFilePath, '/targetFolder/', $this->equalTo('file.ext'))->will($this->returnValue('/targetFolder/file.ext'));
-               /** @var $fixture \TYPO3\CMS\Core\Resource\ResourceStorage */
+               /** @var $fixture ResourceStorage */
                $fixture = $this->getMock('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', array('assureFileMovePermissions'), array($driver, array('configuration' => $configuration)));
                $fixture->moveFile($sourceFile, $targetFolder, 'file.ext');
        }
@@ -500,7 +500,7 @@ class ResourceStorageTest extends \TYPO3\CMS\Core\Tests\Unit\Resource\BaseTestCa
                /** @var \TYPO3\CMS\Core\Resource\Driver\AbstractDriver|\PHPUnit_Framework_MockObject_MockObject $driverMock */
                $driverMock = $this->getMockForAbstractClass('TYPO3\\CMS\\Core\\Resource\\Driver\\AbstractDriver');
                $driverMock->expects($this->once())->method('isFolderEmpty')->will($this->returnValue(FALSE));
-               /** @var \TYPO3\CMS\Core\Resource\ResourceStorage|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface $fixture */
+               /** @var ResourceStorage|\PHPUnit_Framework_MockObject_MockObject|\TYPO3\CMS\Core\Tests\AccessibleObjectInterface $fixture */
                $fixture = $this->getAccessibleMock('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', array('checkFolderActionPermission'), array(), '', FALSE);
                $fixture->expects($this->any())->method('checkFolderActionPermission')->will($this->returnValue(TRUE));
                $fixture->_set('driver', $driverMock);
index 52efb19..998fb34 100644 (file)
@@ -44,25 +44,25 @@ class ExtensionManagementUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
        protected $backUpPackageManager;
 
        public function setUp() {
-               $this->singletonInstances = \TYPO3\CMS\Core\Utility\GeneralUtility::getSingletonInstances();
+               $this->singletonInstances = GeneralUtility::getSingletonInstances();
                $this->createAccessibleProxyClass();
                $this->testFilesToDelete = array();
                $this->backUpPackageManager = ExtensionManagementUtilityAccessibleProxy::getPackageManager();
-               $this->singletonInstances = \TYPO3\CMS\Core\Utility\GeneralUtility::getSingletonInstances();
+               $this->singletonInstances = GeneralUtility::getSingletonInstances();
        }
 
        public function tearDown() {
                ExtensionManagementUtility::clearExtensionKeyMap();
                foreach ($this->testFilesToDelete as $absoluteFileName) {
-                       \TYPO3\CMS\Core\Utility\GeneralUtility::unlink_tempfile($absoluteFileName);
+                       GeneralUtility::unlink_tempfile($absoluteFileName);
                }
                if (file_exists(PATH_site . 'typo3temp/test_ext/')) {
-                       \TYPO3\CMS\Core\Utility\GeneralUtility::rmdir(PATH_site . 'typo3temp/test_ext/', TRUE);
+                       GeneralUtility::rmdir(PATH_site . 'typo3temp/test_ext/', TRUE);
                }
                ExtensionManagementUtilityAccessibleProxy::setPackageManager($this->backUpPackageManager);
                ExtensionManagementUtilityAccessibleProxy::setCacheManager(NULL);
                $GLOBALS['TYPO3_LOADED_EXT'] = new \TYPO3\CMS\Core\Compatibility\LoadedExtensionsArray($this->backUpPackageManager);
-               \TYPO3\CMS\Core\Utility\GeneralUtility::resetSingletonInstances($this->singletonInstances);
+               GeneralUtility::resetSingletonInstances($this->singletonInstances);
                parent::tearDown();
        }
 
@@ -128,7 +128,7 @@ class ExtensionManagementUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
         */
        protected function createMockPackageManagerWithMockPackage($packageKey, $packageMethods = array('getPackagePath', 'getPackageKey')) {
                $packagePath = PATH_site . 'typo3temp/test_ext/' . $packageKey . '/';
-               \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir_deep($packagePath);
+               GeneralUtility::mkdir_deep($packagePath);
                $package = $this->getMockBuilder('TYPO3\\CMS\\Core\\Package\\Package')
                                ->disableOriginalConstructor()
                                ->setMethods($packageMethods)
@@ -973,9 +973,9 @@ class ExtensionManagementUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
                $extensionName = uniqid('test_baseTca_');
                $packageManager = $this->createMockPackageManagerWithMockPackage($extensionName);
                $packagePath = $packageManager->getPackage($extensionName)->getPackagePath();
-               \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($packagePath);
-               \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($packagePath . 'Configuration/');
-               \TYPO3\CMS\Core\Utility\GeneralUtility::mkdir($packagePath . 'Configuration/TCA/');
+               GeneralUtility::mkdir($packagePath);
+               GeneralUtility::mkdir($packagePath . 'Configuration/');
+               GeneralUtility::mkdir($packagePath . 'Configuration/TCA/');
                $GLOBALS['TYPO3_LOADED_EXT'] = new \TYPO3\CMS\Core\Compatibility\LoadedExtensionsArray($packageManager);
                ExtensionManagementUtility::setPackageManager($packageManager);
                $uniqueTableName = uniqid('table_name_');
@@ -1333,7 +1333,7 @@ class ExtensionManagementUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
 
                $registryMock = $this->getMock('TYPO3\\CMS\\Core\\Category\\CategoryRegistry');
                $registryMock->expects($this->once())->method('add')->with($extensionKey, $tableName, 'categories', array());
-               \TYPO3\CMS\Core\Utility\GeneralUtility::setSingletonInstance('TYPO3\\CMS\\Core\\Category\\CategoryRegistry', $registryMock);
+               GeneralUtility::setSingletonInstance('TYPO3\\CMS\\Core\\Category\\CategoryRegistry', $registryMock);
                ExtensionManagementUtility::makeCategorizable($extensionKey, $tableName);
        }
 
@@ -1347,7 +1347,7 @@ class ExtensionManagementUtilityTest extends \TYPO3\CMS\Core\Tests\UnitTestCase
 
                $registryMock = $this->getMock('TYPO3\\CMS\\Core\\Category\\CategoryRegistry');
                $registryMock->expects($this->once())->method('add')->with($extensionKey, $tableName, $fieldName, array());
-               \TYPO3\CMS\Core\Utility\GeneralUtility::setSingletonInstance('TYPO3\\CMS\\Core\\Category\\CategoryRegistry', $registryMock);
+               GeneralUtility::setSingletonInstance('TYPO3\\CMS\\Core\\Category\\CategoryRegistry', $registryMock);
                ExtensionManagementUtility::makeCategorizable($extensionKey, $tableName, $fieldName);
        }
 
index 0592dcf..2960071 100644 (file)
@@ -13,7 +13,6 @@ namespace TYPO3\CMS\Core\Tests\Unit\Utility;
  *
  * The TYPO3 project - inspiring people to share!
  */
-use TYPO3\CMS\Core\Utility\GeneralUtility;
 
 /**
  * Testcase for class \TYPO3\CMS\Core\Utility\PathUtility
index ffe3252..e05751a 100644 (file)
@@ -18,7 +18,6 @@ use TYPO3\CMS\Backend\Utility\BackendUtility;
 use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap;
 use TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface;
 use TYPO3\CMS\Extbase\Persistence\QueryInterface;
-use TYPO3\CMS\Extbase\Utility\TypeHandlingUtility;
 use TYPO3\CMS\Extbase\Persistence\Generic\Qom;
 
 /**
index 3580b36..061f079 100644 (file)
@@ -15,7 +15,6 @@ namespace TYPO3\CMS\Extbase\Tests\Functional\Persistence;
  */
 
 use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
 
 class AddTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
 
index 28600fd..992b8db 100644 (file)
@@ -15,7 +15,6 @@ namespace TYPO3\CMS\Extbase\Tests\Functional\Persistence;
  */
 
 use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
 
 class CountTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
 
index 65975d1..c32c16f 100644 (file)
@@ -15,7 +15,6 @@ namespace TYPO3\CMS\Extbase\Tests\Functional\Persistence;
  */
 
 use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
 
 class InTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
 
index 1a7452c..05771d2 100644 (file)
@@ -15,7 +15,6 @@ namespace TYPO3\CMS\Extbase\Tests\Functional\Persistence;
  */
 
 use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
 
 class QueryParserTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
 
index 6cf06b4..2dc0084 100644 (file)
@@ -21,9 +21,6 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller;
  * The TYPO3 project - inspiring people to share!                         *
  *                                                                        */
 
-use TYPO3\CMS\Core\Utility\DebugUtility;
-use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
-
 /**
  * Test case
  */
index 6a4fa0b..10e59f6 100644 (file)
@@ -198,7 +198,7 @@ class DataMapFactoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                        )
                );
                $mockColumnMap = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Mapper\\ColumnMap', array(), array(), '', FALSE);
-               $mockColumnMap->expects($this->once())->method('setTypeOfRelation')->with($this->equalTo(\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::RELATION_HAS_AND_BELONGS_TO_MANY));
+               $mockColumnMap->expects($this->once())->method('setTypeOfRelation')->with($this->equalTo(ColumnMap::RELATION_HAS_AND_BELONGS_TO_MANY));
                $mockColumnMap->expects($this->once())->method('setRelationTableName')->with($this->equalTo('tx_myextension_mm'));
                $mockColumnMap->expects($this->once())->method('setChildTableName')->with($this->equalTo('tx_myextension_righttable'));
                $mockColumnMap->expects($this->once())->method('setChildTableWhereStatement')->with($this->equalTo('WHERE 1=1'));
@@ -225,7 +225,7 @@ class DataMapFactoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                );
                $leftColumnsDefinition['rights']['MM_opposite_field'] = 'opposite_field';
                $mockColumnMap = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Mapper\\ColumnMap', array(), array(), '', FALSE);
-               $mockColumnMap->expects($this->once())->method('setTypeOfRelation')->with($this->equalTo(\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::RELATION_HAS_AND_BELONGS_TO_MANY));
+               $mockColumnMap->expects($this->once())->method('setTypeOfRelation')->with($this->equalTo(ColumnMap::RELATION_HAS_AND_BELONGS_TO_MANY));
                $mockColumnMap->expects($this->once())->method('setRelationTableName')->with($this->equalTo('tx_myextension_mm'));
                $mockColumnMap->expects($this->once())->method('setChildTableName')->with($this->equalTo('tx_myextension_lefttable'));
                $mockColumnMap->expects($this->once())->method('setChildTableWhereStatement')->with(NULL);
@@ -251,7 +251,7 @@ class DataMapFactoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                        )
                );
                $mockColumnMap = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Mapper\\ColumnMap', array(), array(), '', FALSE);
-               $mockColumnMap->expects($this->once())->method('setTypeOfRelation')->with($this->equalTo(\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::RELATION_HAS_AND_BELONGS_TO_MANY));
+               $mockColumnMap->expects($this->once())->method('setTypeOfRelation')->with($this->equalTo(ColumnMap::RELATION_HAS_AND_BELONGS_TO_MANY));
                $mockColumnMap->expects($this->once())->method('setRelationTableName')->with($this->equalTo('tx_myextension_mm'));
                $mockColumnMap->expects($this->once())->method('setChildTableName')->with($this->equalTo('tx_myextension_righttable'));
                $mockColumnMap->expects($this->once())->method('setChildTableWhereStatement');
@@ -484,7 +484,7 @@ class DataMapFactoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                /** @var $dataMapFactory \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapFactory | AccessibleObjectInterface */
                $dataMapFactory = $this->getAccessibleMock('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Mapper\\DataMapFactory', array('dummy'));
 
-               /** @var \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap $columnMap */
+               /** @var ColumnMap $columnMap */
                $columnMap = $this->getAccessibleMock('TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap', array('dummy'), array(), '', FALSE);
 
                $dataMapFactory->_call('setType', $columnMap, $columnConfiguration);
index 3ee47dc..7599e02 100644 (file)
@@ -13,7 +13,6 @@ namespace TYPO3\CMS\Feedit;
  *
  * The TYPO3 project - inspiring people to share!
  */
-use TYPO3\CMS\Backend\Sprite\SpriteManager;
 use TYPO3\CMS\Backend\Utility\IconUtility;
 
 use TYPO3\CMS\Core\Utility\GeneralUtility;
index 465ff06..19c83af 100644 (file)
@@ -15,7 +15,6 @@ include_once(__DIR__ . '/Fixtures/TransparentSyntaxTreeNode.php');
 include_once(__DIR__ . '/Fixtures/TemplateViewFixture.php');
 
 use org\bovigo\vfs\vfsStreamWrapper;
-use org\bovigo\vfs\vfsStreamDirectory;
 use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 
 /**
index 13fcd7d..65c7f7e 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Link;
  * Public License for more details.                                       *
  *                                                                        */
 
-use TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext;
-use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
 use TYPO3\CMS\Fluid\ViewHelpers\Link\PageViewHelper;
 
 /**
index 3ecad64..6e01032 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Install\Configuration;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
 /**
  * Abstract custom preset class implements common preset code
  */
index ede3039..fe1dfc1 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Install\Configuration;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
 /**
  * Abstract preset class implements common preset code
  */
index a24ddbe..d932f83 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Install\Configuration;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
 /**
  * Custom preset interface
  *
index be81d1a..2bb5c58 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Install\Configuration;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
 /**
  * Preset interface
  *
index a70510a..9cd0030 100644 (file)
@@ -46,7 +46,7 @@ class FailsafeView extends \TYPO3\CMS\Extbase\Mvc\View\AbstractView {
         * Constructor
         */
        public function __construct() {
-               $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
+               $this->objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
        }
 
        /**
index a88b378..13e0bcc 100644 (file)
@@ -15,7 +15,6 @@ namespace TYPO3\CMS\Openid;
  */
 
 use TYPO3\CMS\Core\Utility\GeneralUtility;
-use TYPO3\CMS\Core\Authentication\AbstractUserAuthentication;
 
 /**
  * OpenID selection wizard for the backend
index b6cab39..fbc1c16 100644 (file)
@@ -13,7 +13,6 @@ namespace TYPO3\CMS\Rsaauth\Hook;
  *
  * The TYPO3 project - inspiring people to share!
  */
-use TYPO3\CMS\Backend\Utility\BackendUtility;
 
 /**
  * This class adds RSA JavaScript to the backend
index 1f3c33e..322dc93 100644 (file)
@@ -14,8 +14,6 @@ namespace TYPO3\CMS\Workspaces\Tests\Functional\Service;
  * The TYPO3 project - inspiring people to share!
  */
 
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
 /**
  * Workspace service test
  *