[TASK] Cleanup CSH calls
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / FileSystemNavigationFrameController.php
index 7a95028..6c0c9dd 100644 (file)
@@ -27,13 +27,12 @@ class FileSystemNavigationFrameController {
        // Internal, dynamic:
        // Content accumulates in this variable.
        /**
-        * @todo Define visibility
+        * @var string
         */
        public $content;
 
        /**
         * @var \TYPO3\CMS\Filelist\FileListFolderTree $foldertree the folder tree object
-        * @todo Define visibility
         */
        public $foldertree;
 
@@ -41,23 +40,22 @@ class FileSystemNavigationFrameController {
         * document template object
         *
         * @var \TYPO3\CMS\Backend\Template\DocumentTemplate
-        * @todo Define visibility
         */
        public $doc;
 
        /**
-        * @todo Define visibility
+        * @var string
         */
        public $backPath;
 
        // Internal, static: GPvar:
        /**
-        * @todo Define visibility
+        * @var string
         */
        public $currentSubScript;
 
        /**
-        * @todo Define visibility
+        * @var bool
         */
        public $cMR;
 
@@ -78,7 +76,7 @@ class FileSystemNavigationFrameController {
        /**
         * Initialiation of the script class
         *
-        * @return      void
+        * @return void
         */
        protected function init() {
                // Setting backPath
@@ -87,8 +85,8 @@ class FileSystemNavigationFrameController {
                $this->currentSubScript = GeneralUtility::_GP('currentSubScript');
                $this->cMR = GeneralUtility::_GP('cMR');
 
-               $scopeData = (string) GeneralUtility::_GP('scopeData');
-               $scopeHash = (string) GeneralUtility::_GP('scopeHash');
+               $scopeData = (string)GeneralUtility::_GP('scopeData');
+               $scopeHash = (string)GeneralUtility::_GP('scopeHash');
 
                if (!empty($scopeData) && GeneralUtility::hmac($scopeData) === $scopeHash) {
                        $this->scopeData = unserialize($scopeData);
@@ -103,7 +101,7 @@ class FileSystemNavigationFrameController {
                        $GLOBALS['SOBE']->browser->mode = $this->scopeData['browser']['mode'];
                        $GLOBALS['SOBE']->browser->act = $this->scopeData['browser']['act'];
                } else {
-                       $this->foldertree = GeneralUtility::makeInstance('TYPO3\\CMS\\Filelist\\FileListFolderTree');
+                       $this->foldertree = GeneralUtility::makeInstance(\TYPO3\CMS\Filelist\FileListFolderTree::class);
                        $this->foldertree->thisScript = 'alt_file_navframe.php';
                }
 
@@ -120,7 +118,7 @@ class FileSystemNavigationFrameController {
                // Setting highlight mode:
                $this->doHighlight = !$GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.disableTitleHighlight');
                // Create template object:
-               $this->doc = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
+               $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('EXT:backend/Resources/Private/Templates/alt_file_navframe.html');
                $this->doc->showFlashMessages = FALSE;
@@ -203,7 +201,7 @@ class FileSystemNavigationFrameController {
                // Refresh
                $buttons['refresh'] = '<a href="' . htmlspecialchars(GeneralUtility::getIndpEnv('REQUEST_URI')) . '">' . IconUtility::getSpriteIcon('actions-system-refresh') . '</a>';
                // CSH
-               $buttons['csh'] = str_replace('typo3-csh-inline', 'typo3-csh-inline show-right', \TYPO3\CMS\Backend\Utility\BackendUtility::cshItem('xMOD_csh_corebe', 'filetree', $GLOBALS['BACK_PATH']));
+               $buttons['csh'] = str_replace('typo3-csh-inline', 'typo3-csh-inline show-right', \TYPO3\CMS\Backend\Utility\BackendUtility::cshItem('xMOD_csh_corebe', 'filetree'));
                return $buttons;
        }