@@ -66,8 +66,7 @@ discard block |
||
| 66 | 66 | $selected, |
| 67 | 67 | $storage->getName(), |
| 68 | 68 | $storage->isOnline() ? |
| 69 | - '' : |
|
| 70 | - '(' . $this->getLanguageService()->sL('LLL:EXT:media/Resources/Private/Language/locallang.xlf:offline') . ')' |
|
| 69 | + '' : '('.$this->getLanguageService()->sL('LLL:EXT:media/Resources/Private/Language/locallang.xlf:offline').')' |
|
| 71 | 70 | ); |
| 72 | 71 | } |
| 73 | 72 | |
@@ -75,7 +74,7 @@ discard block |
||
| 75 | 74 | $inputs = ''; |
| 76 | 75 | foreach ($parameters as $parameter => $value) { |
| 77 | 76 | list($parameter, $value) = $this->computeParameterAndValue($parameter, $value); |
| 78 | - if ($parameter !== $this->getModuleLoader()->getParameterPrefix() . '[storage]') { |
|
| 77 | + if ($parameter !== $this->getModuleLoader()->getParameterPrefix().'[storage]') { |
|
| 79 | 78 | $inputs .= sprintf('<input type="hidden" name="%s" value="%s" />', $parameter, $value); |
| 80 | 79 | } |
| 81 | 80 | } |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $templateNameAndPath = 'EXT:media/Resources/Private/Standalone/Tool/MissingFilesFinder/Launcher.html'; |
| 43 | 43 | $view = $this->initializeStandaloneView($templateNameAndPath); |
| 44 | - $view->assign('sitePath', Environment::getPublicPath() . '/'); |
|
| 44 | + $view->assign('sitePath', Environment::getPublicPath().'/'); |
|
| 45 | 45 | return $view->render(); |
| 46 | 46 | } |
| 47 | 47 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | { |
| 38 | 38 | $templateNameAndPath = 'EXT:media/Resources/Private/Standalone/Tool/CacheWarmUp/Launcher.html'; |
| 39 | 39 | $view = $this->initializeStandaloneView($templateNameAndPath); |
| 40 | - $view->assign('sitePath', Environment::getPublicPath() . '/'); |
|
| 40 | + $view->assign('sitePath', Environment::getPublicPath().'/'); |
|
| 41 | 41 | return $view->render(); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | protected function getWarmUpSemaphorFile() |
| 77 | 77 | { |
| 78 | - return Environment::getPublicPath() . '/typo3temp/.media_cache_warmed_up'; |
|
| 78 | + return Environment::getPublicPath().'/typo3temp/.media_cache_warmed_up'; |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | { |
| 40 | 40 | $templateNameAndPath = 'EXT:media/Resources/Private/Standalone/Tool/DuplicateRecordsFinder/Launcher.html'; |
| 41 | 41 | $view = $this->initializeStandaloneView($templateNameAndPath); |
| 42 | - $view->assign('sitePath', Environment::getPublicPath() . '/'); |
|
| 42 | + $view->assign('sitePath', Environment::getPublicPath().'/'); |
|
| 43 | 43 | return $view->render(); |
| 44 | 44 | } |
| 45 | 45 | |
@@ -129,8 +129,8 @@ discard block |
||
| 129 | 129 | $uploadSize = $this->toBytes(ini_get('upload_max_filesize')); |
| 130 | 130 | |
| 131 | 131 | if ($postSize < $this->sizeLimit || $uploadSize < $this->sizeLimit) { |
| 132 | - $size = max(1, $this->sizeLimit / 1024 / 1024) . 'M'; |
|
| 133 | - $this->throwException('increase post_max_size and upload_max_filesize to ' . $size); |
|
| 132 | + $size = max(1, $this->sizeLimit / 1024 / 1024).'M'; |
|
| 133 | + $this->throwException('increase post_max_size and upload_max_filesize to '.$size); |
|
| 134 | 134 | } |
| 135 | 135 | } |
| 136 | 136 | |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | $isAllowed = $this->checkFileExtensionPermission($fileName); |
| 199 | 199 | if (!$isAllowed) { |
| 200 | 200 | $these = PermissionUtility::getInstance()->getAllowedExtensionList(); |
| 201 | - $this->throwException('File has an invalid extension, it should be one of ' . $these . '.'); |
|
| 201 | + $this->throwException('File has an invalid extension, it should be one of '.$these.'.'); |
|
| 202 | 202 | } |
| 203 | 203 | } |
| 204 | 204 | |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | */ |
| 257 | 257 | public function sanitizeFileName($fileName, $slug = '-', $extra = null) |
| 258 | 258 | { |
| 259 | - return trim(preg_replace('~[^0-9a-z_' . preg_quote($extra, '~') . ']+~i', $slug, $this->unAccent($fileName)), $slug); |
|
| 259 | + return trim(preg_replace('~[^0-9a-z_'.preg_quote($extra, '~').']+~i', $slug, $this->unAccent($fileName)), $slug); |
|
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | /** |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | */ |
| 295 | 295 | protected function initializeUploadFolder() |
| 296 | 296 | { |
| 297 | - $this->uploadFolder = Environment::getPublicPath() . '/' . self::UPLOAD_FOLDER; |
|
| 297 | + $this->uploadFolder = Environment::getPublicPath().'/'.self::UPLOAD_FOLDER; |
|
| 298 | 298 | |
| 299 | 299 | // Initialize the upload folder for file transfer and create it if not yet existing |
| 300 | 300 | if (!file_exists($this->uploadFolder)) { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | */ |
| 79 | 79 | public function getFileWithAbsolutePath() |
| 80 | 80 | { |
| 81 | - return $this->uploadFolder . DIRECTORY_SEPARATOR . $this->name; |
|
| 81 | + return $this->uploadFolder.DIRECTORY_SEPARATOR.$this->name; |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
@@ -88,8 +88,8 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | public function getPublicUrl() |
| 90 | 90 | { |
| 91 | - $fileNameAndPath = str_replace(Environment::getPublicPath() . '/', '', $this->getFileWithAbsolutePath()); |
|
| 92 | - return '/' . ltrim($fileNameAndPath, '/'); |
|
| 91 | + $fileNameAndPath = str_replace(Environment::getPublicPath().'/', '', $this->getFileWithAbsolutePath()); |
|
| 92 | + return '/'.ltrim($fileNameAndPath, '/'); |
|
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
@@ -27,16 +27,16 @@ |
||
| 27 | 27 | { |
| 28 | 28 | // Load StyleSheets in the Page Renderer |
| 29 | 29 | $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class); |
| 30 | - $cssFile = ExtensionManagementUtility::extPath('media') . 'Resources/Public/StyleSheets/fineuploader.tce.css'; |
|
| 30 | + $cssFile = ExtensionManagementUtility::extPath('media').'Resources/Public/StyleSheets/fineuploader.tce.css'; |
|
| 31 | 31 | $pageRenderer->addCssFile($cssFile); |
| 32 | 32 | |
| 33 | 33 | // language labels for JavaScript files |
| 34 | - $pageRenderer->addInlineLanguageLabelFile(ExtensionManagementUtility::extPath('media') . 'Resources/Private/Language/locallang.xlf', 'media_file_upload'); |
|
| 34 | + $pageRenderer->addInlineLanguageLabelFile(ExtensionManagementUtility::extPath('media').'Resources/Private/Language/locallang.xlf', 'media_file_upload'); |
|
| 35 | 35 | |
| 36 | 36 | // js files to be loaded |
| 37 | - $pageRenderer->addJsFile(ExtensionManagementUtility::extPath('core') . 'Resources/Public/JavaScript/Contrib/jquery/jquery.min.js'); |
|
| 38 | - $pageRenderer->addJsFile(ExtensionManagementUtility::extPath('media') . 'Resources/Public/JavaScript/Encoder.js'); |
|
| 39 | - $pageRenderer->addJsFile(ExtensionManagementUtility::extPath('media') . 'Resources/Public/Libraries/Fineuploader/jquery.fineuploader-5.0.9.min.js'); |
|
| 37 | + $pageRenderer->addJsFile(ExtensionManagementUtility::extPath('core').'Resources/Public/JavaScript/Contrib/jquery/jquery.min.js'); |
|
| 38 | + $pageRenderer->addJsFile(ExtensionManagementUtility::extPath('media').'Resources/Public/JavaScript/Encoder.js'); |
|
| 39 | + $pageRenderer->addJsFile(ExtensionManagementUtility::extPath('media').'Resources/Public/Libraries/Fineuploader/jquery.fineuploader-5.0.9.min.js'); |
|
| 40 | 40 | |
| 41 | 41 | $result = $this->initializeResultArray(); |
| 42 | 42 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class); |
| 43 | 43 | |
| 44 | 44 | $publicResourcesPath = PathUtility::getPublicResourceWebPath('EXT:media/Resources/Public/'); |
| 45 | - $configuration['paths']['Fab/Media'] = $publicResourcesPath . 'JavaScript'; |
|
| 45 | + $configuration['paths']['Fab/Media'] = $publicResourcesPath.'JavaScript'; |
|
| 46 | 46 | |
| 47 | 47 | $pageRenderer->addRequireJsConfiguration($configuration); |
| 48 | 48 | $pageRenderer->loadRequireJsModule('Fab/Media/PluginFilePicker'); |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class); |
| 66 | 66 | |
| 67 | 67 | $publicResourcesPath = PathUtility::getPublicResourceWebPath('EXT:media/Resources/Public/'); |
| 68 | - $configuration['paths']['Fab/Media'] = $publicResourcesPath . 'JavaScript'; |
|
| 68 | + $configuration['paths']['Fab/Media'] = $publicResourcesPath.'JavaScript'; |
|
| 69 | 69 | |
| 70 | 70 | $pageRenderer->addRequireJsConfiguration($configuration); |
| 71 | 71 | $pageRenderer->loadRequireJsModule('Fab/Media/PluginImageEditor'); |