[TASK] Cleanup TYPO3\CMS\Install\FolderStructure 86/36586/3
authorStephan Großberndt <stephan@grossberndt.de>
Sun, 1 Feb 2015 16:50:13 +0000 (17:50 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 1 Feb 2015 18:52:05 +0000 (19:52 +0100)
Shortens qualified names and fixes typos.

Resolves: #64724
Releases: master
Change-Id: Ia4a57744a939532c5078f94fef68b1401fa2662c
Reviewed-on: http://review.typo3.org/36586
Reviewed-by: Daniel Maier <dani-maier@gmx.de>
Tested-by: Daniel Maier <dani-maier@gmx.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/install/Classes/FolderStructure/AbstractNode.php
typo3/sysext/install/Classes/FolderStructure/DefaultFactory.php
typo3/sysext/install/Classes/FolderStructure/DefaultPermissionsCheck.php
typo3/sysext/install/Classes/FolderStructure/DirectoryNode.php
typo3/sysext/install/Classes/FolderStructure/FileNode.php
typo3/sysext/install/Classes/FolderStructure/LinkNode.php
typo3/sysext/install/Classes/FolderStructure/NodeInterface.php
typo3/sysext/install/Classes/FolderStructure/RootNode.php
typo3/sysext/install/Classes/FolderStructure/StructureFacadeInterface.php

index 4a97d5f..f306410 100644 (file)
@@ -205,7 +205,7 @@ abstract class AbstractNode {
                }
                $pathSiteWithoutTrailingSlash = substr(PATH_site, 0, -1);
                if (strpos($path, $pathSiteWithoutTrailingSlash, 0) !== 0) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'PATH_site is not first part of given path',
                                1366398198
                        );
index 247cef7..00343ab 100644 (file)
@@ -61,117 +61,117 @@ class DefaultFactory {
                        'children' => array(
                                array(
                                        'name' => 'index.php',
-                                       'type' => \TYPO3\CMS\Install\FolderStructure\LinkNode::class,
+                                       'type' => LinkNode::class,
                                        'target' => 'typo3_src/index.php',
                                ),
                                array(
                                        'name' => 'typo3',
-                                       'type' => \TYPO3\CMS\Install\FolderStructure\LinkNode::class,
+                                       'type' => LinkNode::class,
                                        'target' => 'typo3_src/typo3',
                                ),
                                array(
                                        'name' => 'typo3_src',
-                                       'type' => \TYPO3\CMS\Install\FolderStructure\LinkNode::class,
+                                       'type' => LinkNode::class,
                                ),
                                array(
                                        'name' => 'typo3temp',
-                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                       'type' => DirectoryNode::class,
                                        'targetPermission' => $directoryPermission,
                                        'children' => array(
                                                array(
                                                        'name' => 'index.html',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\FileNode::class,
+                                                       'type' => FileNode::class,
                                                        'targetPermission' => $filePermission,
                                                        'targetContent' => '',
                                                ),
                                                array(
                                                        'name' => 'compressor',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                                array(
                                                        'name' => 'cs',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                                array(
                                                        'name' => 'Cache',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                                array(
                                                        'name' => 'GB',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                                array(
                                                        'name' => 'llxml',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                                array(
                                                        'name' => 'locks',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                                array(
                                                        'name' => 'pics',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                                array(
                                                        'name' => 'sprites',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                                array(
                                                        'name' => 'temp',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                                array(
                                                        'name' => '_processed_',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                        ),
                                ),
                                array(
                                        'name' => 'typo3conf',
-                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                       'type' => DirectoryNode::class,
                                        'targetPermission' => $directoryPermission,
                                        'children' => array(
                                                array(
                                                        'name' => 'ext',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                                array(
                                                        'name' => 'l10n',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                ),
                                        ),
                                ),
                                array(
                                        'name' => 'uploads',
-                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                       'type' => DirectoryNode::class,
                                        'targetPermission' => $directoryPermission,
                                        'children' => array(
                                                array(
                                                        'name' => 'index.html',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\FileNode::class,
+                                                       'type' => FileNode::class,
                                                        'targetPermission' => $filePermission,
                                                        'targetContentFile' => PATH_site . 'typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/uploads-index.html',
                                                ),
                                                array(
                                                        'name' => 'media',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                        'children' => array(
                                                                array(
                                                                        'name' => 'index.html',
-                                                                       'type' => \TYPO3\CMS\Install\FolderStructure\FileNode::class,
+                                                                       'type' => FileNode::class,
                                                                        'targetPermission' => $filePermission,
                                                                        'targetContent' => '',
                                                                ),
@@ -179,12 +179,12 @@ class DefaultFactory {
                                                ),
                                                array(
                                                        'name' => 'pics',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                        'children' => array(
                                                                array(
                                                                        'name' => 'index.html',
-                                                                       'type' => \TYPO3\CMS\Install\FolderStructure\FileNode::class,
+                                                                       'type' => FileNode::class,
                                                                        'targetPermission' => $filePermission,
                                                                        'targetContent' => '',
                                                                ),
@@ -194,23 +194,23 @@ class DefaultFactory {
                                ),
                                array(
                                        'name' => !empty($GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir']) ? rtrim($GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'], '/') : 'fileadmin',
-                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                       'type' => DirectoryNode::class,
                                        'targetPermission' => $directoryPermission,
                                        'children' => array(
                                                array(
                                                        'name' => '_temp_',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                        'children' => array(
                                                                array(
                                                                        'name' => '.htaccess',
-                                                                       'type' => \TYPO3\CMS\Install\FolderStructure\FileNode::class,
+                                                                       'type' => FileNode::class,
                                                                        'targetPermission' => $filePermission,
                                                                        'targetContentFile' => PATH_site . 'typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/fileadmin-temp-htaccess',
                                                                ),
                                                                array(
                                                                        'name' => 'index.html',
-                                                                       'type' => \TYPO3\CMS\Install\FolderStructure\FileNode::class,
+                                                                       'type' => FileNode::class,
                                                                        'targetPermission' => $filePermission,
                                                                        'targetContentFile' => PATH_site . 'typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/fileadmin-temp-index.html',
                                                                ),
@@ -218,34 +218,34 @@ class DefaultFactory {
                                                ),
                                                array(
                                                        'name' => 'user_upload',
-                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                       'type' => DirectoryNode::class,
                                                        'targetPermission' => $directoryPermission,
                                                        'children' => array(
                                                                array(
                                                                        'name' => '_temp_',
-                                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                                       'type' => DirectoryNode::class,
                                                                        'targetPermission' => $directoryPermission,
                                                                        'children' => array(
                                                                                array(
                                                                                        'name' => 'index.html',
-                                                                                       'type' => \TYPO3\CMS\Install\FolderStructure\FileNode::class,
+                                                                                       'type' => FileNode::class,
                                                                                        'targetPermission' => $filePermission,
                                                                                        'targetContent' => '',
                                                                                ),
                                                                                array(
                                                                                        'name' => 'importexport',
-                                                                                       'type' => \TYPO3\CMS\Install\FolderStructure\DirectoryNode::class,
+                                                                                       'type' => DirectoryNode::class,
                                                                                        'targetPermission' => $directoryPermission,
                                                                                        'children' => array(
                                                                                                array(
                                                                                                        'name' => '.htaccess',
-                                                                                                       'type' => \TYPO3\CMS\Install\FolderStructure\FileNode::class,
+                                                                                                       'type' => FileNode::class,
                                                                                                        'targetPermission' => $filePermission,
                                                                                                        'targetContentFile' => PATH_site . 'typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/fileadmin-user_upload-temp-importexport-htaccess',
                                                                                                ),
                                                                                                array(
                                                                                                        'name' => 'index.html',
-                                                                                                       'type' => \TYPO3\CMS\Install\FolderStructure\FileNode::class,
+                                                                                                       'type' => FileNode::class,
                                                                                                        'targetPermission' => $filePermission,
                                                                                                        'targetContentFile' => PATH_site . 'typo3/sysext/install/Resources/Private/FolderStructureTemplateFiles/fileadmin-temp-index.html',
                                                                                                ),
@@ -255,7 +255,7 @@ class DefaultFactory {
                                                                ),
                                                                array(
                                                                        'name' => 'index.html',
-                                                                       'type' => \TYPO3\CMS\Install\FolderStructure\FileNode::class,
+                                                                       'type' => FileNode::class,
                                                                        'targetPermission' => $filePermission,
                                                                        'targetContent' => '',
                                                                ),
index e3e7bc6..cf3aed3 100644 (file)
@@ -14,6 +14,8 @@ namespace TYPO3\CMS\Install\FolderStructure;
  * The TYPO3 project - inspiring people to share!
  */
 
+use TYPO3\CMS\Install\Status;
+
 /**
  * Service class to check the default folder permissions
  *
@@ -70,29 +72,29 @@ class DefaultPermissionsCheck {
                $extraMessage = '';
                $groupPermissions = FALSE;
                if (!$perms['uw'] || !$perms['ur']) {
-                       $permissionStatus = new \TYPO3\CMS\Install\Status\ErrorStatus();
+                       $permissionStatus = new Status\ErrorStatus();
                        $extraMessage = ' (not read or writable by the user)';
                } elseif ($perms['ow']) {
                        if (TYPO3_OS === 'WIN') {
-                               $permissionStatus = new \TYPO3\CMS\Install\Status\InfoStatus();
+                               $permissionStatus = new Status\InfoStatus();
                                $extraMessage = ' (writable by anyone on the server). This is the default behavior on a Windows system';
                        } else {
-                               $permissionStatus = new \TYPO3\CMS\Install\Status\ErrorStatus();
+                               $permissionStatus = new Status\ErrorStatus();
                                $extraMessage = ' (writable by anyone on the server)';
                        }
                } elseif ($perms['or']) {
-                       $permissionStatus = new \TYPO3\CMS\Install\Status\NoticeStatus();
+                       $permissionStatus = new Status\NoticeStatus();
                        $extraMessage = ' (readable by anyone on the server). This is the default set by TYPO3 CMS to be as much compatible as possible but if your system allows, please consider to change rights';
                } elseif ($perms['gw']) {
-                       $permissionStatus = new \TYPO3\CMS\Install\Status\OkStatus();
-                       $extraMessage = ' (group writeable)';
+                       $permissionStatus = new Status\OkStatus();
+                       $extraMessage = ' (group writable)';
                        $groupPermissions = TRUE;
                } elseif ($perms['gr']) {
-                       $permissionStatus = new \TYPO3\CMS\Install\Status\OkStatus();
+                       $permissionStatus = new Status\OkStatus();
                        $extraMessage = ' (group readable)';
                        $groupPermissions = TRUE;
                } else {
-                       $permissionStatus = new \TYPO3\CMS\Install\Status\OkStatus();
+                       $permissionStatus = new Status\OkStatus();
                }
                $permissionStatus->setTitle($this->names[$which] . ' (BE/' . $which . ')');
                $message = 'Recommended: ' . $this->recommended[$which] . '.';
@@ -104,7 +106,7 @@ class DefaultPermissionsCheck {
                }
                $message .= $extraMessage . '.';
                if ($groupPermissions) {
-                       $message .= ' This is fine as long as the webserver\'s group only comprises trusted users.';
+                       $message .= ' This is fine as long as the web server\'s group only comprises trusted users.';
                        if (!empty($GLOBALS['TYPO3_CONF_VARS']['BE']['createGroup'])) {
                                $message .= ' Your site is configured (BE/createGroup) to write as group \'' . $GLOBALS['TYPO3_CONF_VARS']['BE']['createGroup'] . '\'.';
                        }
index 96d10f9..a1c1466 100644 (file)
@@ -35,7 +35,7 @@ class DirectoryNode extends AbstractNode implements NodeInterface {
         */
        public function __construct(array $structure, NodeInterface $parent = NULL) {
                if (is_null($parent)) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'Node must have parent',
                                1366222203
                        );
@@ -44,7 +44,7 @@ class DirectoryNode extends AbstractNode implements NodeInterface {
 
                // Ensure name is a single segment, but not a path like foo/bar or an absolute path /foo
                if (strstr($structure['name'], '/') !== FALSE) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'Directory name must not contain forward slash',
                                1366226639
                        );
@@ -124,13 +124,13 @@ class DirectoryNode extends AbstractNode implements NodeInterface {
                if (!$this->exists()) {
                        $resultCreateDirectory = $this->createDirectory();
                        $result[] = $resultCreateDirectory;
-                       if ($resultCreateDirectory instanceof \TYPO3\CMS\Install\Status\OkStatus &&
+                       if ($resultCreateDirectory instanceof Status\OkStatus &&
                                !$this->isPermissionCorrect()
                        ) {
                                $result[] = $this->fixPermission();
                        }
                } elseif (!$this->isWritable()) {
-                       // If directory is not writeable, we might have permissions to fix that
+                       // If directory is not writable, we might have permissions to fix that
                        // Try it:
                        $result[] = $this->fixPermission();
                } elseif (!$this->isDirectory()) {
@@ -264,19 +264,19 @@ class DirectoryNode extends AbstractNode implements NodeInterface {
        /**
         * Create children nodes - done in directory and root node
         *
-        * @param array $structure Array of childs
+        * @param array $structure Array of children
         * @throws Exception\InvalidArgumentException
         */
        protected function createChildren(array $structure) {
                foreach ($structure as $child) {
                        if (!array_key_exists('type', $child)) {
-                               throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                               throw new Exception\InvalidArgumentException(
                                        'Child must have type',
                                        1366222204
                                );
                        }
                        if (!array_key_exists('name', $child)) {
-                               throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                               throw new Exception\InvalidArgumentException(
                                        'Child must have name',
                                        1366222205
                                );
@@ -285,7 +285,7 @@ class DirectoryNode extends AbstractNode implements NodeInterface {
                        foreach ($this->children as $existingChild) {
                                /** @var $existingChild NodeInterface */
                                if ($existingChild->getName() === $name) {
-                                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                                       throw new Exception\InvalidArgumentException(
                                                'Child name must be unique',
                                                1366222206
                                        );
index 84fad0b..00b72fc 100644 (file)
@@ -40,7 +40,7 @@ class FileNode extends AbstractNode implements NodeInterface {
         */
        public function __construct(array $structure, NodeInterface $parent = NULL) {
                if (is_null($parent)) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'File node must have parent',
                                1366927513
                        );
@@ -49,7 +49,7 @@ class FileNode extends AbstractNode implements NodeInterface {
 
                // Ensure name is a single segment, but not a path like foo/bar or an absolute path /foo
                if (strstr($structure['name'], '/') !== FALSE) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'File name must not contain forward slash',
                                1366222207
                        );
@@ -61,7 +61,7 @@ class FileNode extends AbstractNode implements NodeInterface {
                }
 
                if (isset($structure['targetContent']) && isset($structure['targetContentFile'])) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'Either targetContent or targetContentFile can be set, but not both',
                                1380364361
                        );
@@ -72,7 +72,7 @@ class FileNode extends AbstractNode implements NodeInterface {
                }
                if (isset($structure['targetContentFile'])) {
                        if (!is_readable($structure['targetContentFile'])) {
-                               throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                               throw new Exception\InvalidArgumentException(
                                        'targetContentFile ' . $structure['targetContentFile'] . ' does not exist or is not readable',
                                        1380364362
                                );
@@ -123,7 +123,7 @@ class FileNode extends AbstractNode implements NodeInterface {
                if (!$this->exists()) {
                        $resultCreateFile = $this->createFile();
                        $result[] = $resultCreateFile;
-                       if ($resultCreateFile instanceof \TYPO3\CMS\Install\Status\OkStatus
+                       if ($resultCreateFile instanceof Status\OkStatus
                                && !is_null($this->targetContent)
                        ) {
                                $result[] = $this->setContent();
@@ -200,7 +200,7 @@ class FileNode extends AbstractNode implements NodeInterface {
                        $status = new Status\NoticeStatus();
                        $status->setTitle('File ' . $this->getRelativePathBelowSiteRoot() . ' is not writable');
                        $status->setMessage(
-                               'File ' . $this->getRelativePathBelowSiteRoot() . ' exists, but is not writeable.'
+                               'File ' . $this->getRelativePathBelowSiteRoot() . ' exists, but is not writable.'
                        );
                        $result[] = $status;
                } elseif (!$this->isPermissionCorrect()) {
index b2b5fe6..d9be92f 100644 (file)
@@ -35,7 +35,7 @@ class LinkNode extends AbstractNode implements NodeInterface {
         */
        public function __construct(array $structure, NodeInterface $parent = NULL) {
                if (is_null($parent)) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'Link node must have parent',
                                1380485700
                        );
@@ -44,7 +44,7 @@ class LinkNode extends AbstractNode implements NodeInterface {
 
                // Ensure name is a single segment, but not a path like foo/bar or an absolute path /foo
                if (strstr($structure['name'], '/') !== FALSE) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'File name must not contain forward slash',
                                1380546061
                        );
@@ -146,7 +146,7 @@ class LinkNode extends AbstractNode implements NodeInterface {
         */
        protected function isLink() {
                if (!$this->exists()) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'Link does not exist',
                                1380556246
                        );
@@ -162,13 +162,13 @@ class LinkNode extends AbstractNode implements NodeInterface {
         */
        protected function isTargetCorrect() {
                if (!$this->exists()) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'Link does not exist',
                                1380556245
                        );
                }
                if (!$this->isLink()) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'Node is not a link',
                                1380556247
                        );
index 043a1b1..949802f 100644 (file)
@@ -63,4 +63,5 @@ interface NodeInterface {
         * @return array<\TYPO3\CMS\Install\Status\StatusInterface>
         */
        public function fix();
+
 }
index 1c59cb1..c08d3b1 100644 (file)
@@ -31,7 +31,7 @@ class RootNode extends DirectoryNode implements RootNodeInterface {
         */
        public function __construct(array $structure, NodeInterface $parent = NULL) {
                if (!is_null($parent)) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\RootNodeException(
+                       throw new Exception\RootNodeException(
                                'Root node must not have parent',
                                1366140117
                        );
@@ -41,7 +41,7 @@ class RootNode extends DirectoryNode implements RootNodeInterface {
                        || ($this->isWindowsOs() && substr($structure['name'], 1, 2) !== ':/')
                        || (!$this->isWindowsOs() && $structure['name'][0] !== '/')
                ) {
-                       throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
+                       throw new Exception\InvalidArgumentException(
                                'Root node expects absolute path as name',
                                1366141329
                        );
index 989cb5b..2f8a173 100644 (file)
@@ -39,4 +39,5 @@ interface StructureFacadeInterface {
         * @return array<\TYPO3\CMS\Install\Status\StatusInterface>
         */
        public function fix();
+
 }