@@ -128,8 +128,8 @@ discard block |
||
| 128 | 128 | $uploadSize = $this->toBytes(ini_get('upload_max_filesize')); |
| 129 | 129 | |
| 130 | 130 | if ($postSize < $this->sizeLimit || $uploadSize < $this->sizeLimit) { |
| 131 | - $size = max(1, $this->sizeLimit / 1024 / 1024) . 'M'; |
|
| 132 | - $this->throwException('increase post_max_size and upload_max_filesize to ' . $size); |
|
| 131 | + $size = max(1, $this->sizeLimit / 1024 / 1024).'M'; |
|
| 132 | + $this->throwException('increase post_max_size and upload_max_filesize to '.$size); |
|
| 133 | 133 | } |
| 134 | 134 | } |
| 135 | 135 | |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | $isAllowed = $this->checkFileExtensionPermission($fileName); |
| 198 | 198 | if (!$isAllowed) { |
| 199 | 199 | $these = PermissionUtility::getInstance()->getAllowedExtensionList(); |
| 200 | - $this->throwException('File has an invalid extension, it should be one of ' . $these . '.'); |
|
| 200 | + $this->throwException('File has an invalid extension, it should be one of '.$these.'.'); |
|
| 201 | 201 | } |
| 202 | 202 | } |
| 203 | 203 | |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | */ |
| 256 | 256 | public function sanitizeFileName($fileName, $slug = '-', $extra = null) |
| 257 | 257 | { |
| 258 | - return trim(preg_replace('~[^0-9a-z_' . preg_quote($extra, '~') . ']+~i', $slug, $this->unAccent($fileName)), $slug); |
|
| 258 | + return trim(preg_replace('~[^0-9a-z_'.preg_quote($extra, '~').']+~i', $slug, $this->unAccent($fileName)), $slug); |
|
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | /** |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | */ |
| 294 | 294 | protected function initializeUploadFolder() |
| 295 | 295 | { |
| 296 | - $this->uploadFolder = PATH_site . self::UPLOAD_FOLDER; |
|
| 296 | + $this->uploadFolder = PATH_site.self::UPLOAD_FOLDER; |
|
| 297 | 297 | |
| 298 | 298 | // Initialize the upload folder for file transfer and create it if not yet existing |
| 299 | 299 | if (!file_exists($this->uploadFolder)) { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | |
| 50 | 50 | $imParams = '###SkipStripProfile###'; |
| 51 | 51 | if ($transformation !== '') { |
| 52 | - $imParams .= ' ' . $transformation; |
|
| 52 | + $imParams .= ' '.$transformation; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | $tempFileInfo = $this->gifCreator->imageMagickConvert($uploadedFile->getFileWithAbsolutePath(), '', '', '', $imParams, '', [], true); |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | |
| 146 | 146 | $additionalTca = [ |
| 147 | 147 | 'ctrl' => [ |
| 148 | - 'searchFields' => $tca['ctrl']['searchFields'] . ', metadata.keywords', |
|
| 148 | + 'searchFields' => $tca['ctrl']['searchFields'].', metadata.keywords', |
|
| 149 | 149 | ], |
| 150 | 150 | 'grid' => [ |
| 151 | 151 | 'columns' => [ |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | defined('TYPO3_MODE') or die(); |
| 3 | 3 | |
| 4 | -call_user_func(function () { |
|
| 4 | +call_user_func(function() { |
|
| 5 | 5 | |
| 6 | 6 | if (TYPO3_MODE === 'BE') { |
| 7 | 7 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | ]) |
| 71 | 71 | ->setDocHeaderTopLeftComponents([ |
| 72 | 72 | \Fab\Media\View\Menu\StorageMenu::class, |
| 73 | - \Fab\Media\View\Checkbox\RecursiveCheckbox::class,] |
|
| 73 | + \Fab\Media\View\Checkbox\RecursiveCheckbox::class, ] |
|
| 74 | 74 | ) |
| 75 | 75 | ->setDocHeaderBottomLeftComponents([ |
| 76 | 76 | \Fab\Vidi\View\Button\ClipboardButton::class, |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | /** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */ |
| 156 | 156 | $iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class); |
| 157 | 157 | foreach ($icons as $key => $icon) { |
| 158 | - $iconRegistry->registerIcon('extensions-media-' . $key, |
|
| 158 | + $iconRegistry->registerIcon('extensions-media-'.$key, |
|
| 159 | 159 | \TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class, |
| 160 | 160 | [ |
| 161 | 161 | 'source' => $icon |
@@ -27,15 +27,15 @@ |
||
| 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('media') . 'Resources/Public/JavaScript/Encoder.js'); |
|
| 38 | - $pageRenderer->addJsFile(ExtensionManagementUtility::extPath('media') . 'Resources/Public/Libraries/Fineuploader/jquery.fineuploader-5.0.9.min.js'); |
|
| 37 | + $pageRenderer->addJsFile(ExtensionManagementUtility::extPath('media').'Resources/Public/JavaScript/Encoder.js'); |
|
| 38 | + $pageRenderer->addJsFile(ExtensionManagementUtility::extPath('media').'Resources/Public/Libraries/Fineuploader/jquery.fineuploader-5.0.9.min.js'); |
|
| 39 | 39 | |
| 40 | 40 | $result = $this->initializeResultArray(); |
| 41 | 41 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | defined('TYPO3_MODE') or die(); |
| 3 | 3 | |
| 4 | -call_user_func(function () { |
|
| 4 | +call_user_func(function() { |
|
| 5 | 5 | |
| 6 | 6 | $configuration = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
| 7 | 7 | \TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | $storage = $this->getMediaModule()->getCurrentStorage(); |
| 98 | - $this->getDatabaseConnection()->exec_UPDATEquery($tableName, 'uid = ' . $storage->getUid(), $values); |
|
| 98 | + $this->getDatabaseConnection()->exec_UPDATEquery($tableName, 'uid = '.$storage->getUid(), $values); |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | /** |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | protected function getWarmUpSemaphoreFile() |
| 113 | 113 | { |
| 114 | - return PATH_site . 'typo3temp/.media_cache_warmed_up'; |
|
| 114 | + return PATH_site.'typo3temp/.media_cache_warmed_up'; |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | /** |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | return $queryBuilder |
| 255 | 255 | ->select('*') |
| 256 | 256 | ->from('sys_filemounts') |
| 257 | - ->where('uid = ' . $identifier) |
|
| 257 | + ->where('uid = '.$identifier) |
|
| 258 | 258 | ->execute() |
| 259 | 259 | ->fetch(); |
| 260 | 260 | } |
@@ -107,7 +107,7 @@ |
||
| 107 | 107 | |
| 108 | 108 | foreach ($allowedMountPoints as $allowedMountPoint) { |
| 109 | 109 | |
| 110 | - $pattern = '%^' . $allowedMountPoint . '%isU'; |
|
| 110 | + $pattern = '%^'.$allowedMountPoint.'%isU'; |
|
| 111 | 111 | if (preg_match($pattern, $file['identifier'])) { |
| 112 | 112 | $filteredFiles[] = $file; |
| 113 | 113 | break; // no need to further loop around, stop the loop. |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | } |
| 229 | 229 | |
| 230 | 230 | // Retrieve the folder object. |
| 231 | - $folder = ResourceFactory::getInstance()->getFolderObjectFromCombinedIdentifier($storage->getUid() . ':' . $identifier); |
|
| 231 | + $folder = ResourceFactory::getInstance()->getFolderObjectFromCombinedIdentifier($storage->getUid().':'.$identifier); |
|
| 232 | 232 | |
| 233 | 233 | // Disallow the rendering of the processing folder (e.g. could be called manually) |
| 234 | 234 | // and all folders without any defined storage |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | |
| 286 | 286 | // Get a possible mount point coming from the storage record. |
| 287 | 287 | $storageRecord = $storage->getStorageRecord(); |
| 288 | - $mountPointIdentifier = $storageRecord['mount_point_file_type_' . $uploadedFile->getType()]; |
|
| 288 | + $mountPointIdentifier = $storageRecord['mount_point_file_type_'.$uploadedFile->getType()]; |
|
| 289 | 289 | if ($mountPointIdentifier > 0) { |
| 290 | 290 | |
| 291 | 291 | // We don't have a Mount Point repository in FAL, so query the database directly. |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | |
| 314 | 314 | // Retrieve storage record and a possible configured mount point. |
| 315 | 315 | $storageRecord = $storage->getStorageRecord(); |
| 316 | - $mountPointIdentifier = $storageRecord['mount_point_file_type_' . $file->getType()]; |
|
| 316 | + $mountPointIdentifier = $storageRecord['mount_point_file_type_'.$file->getType()]; |
|
| 317 | 317 | |
| 318 | 318 | if ($mountPointIdentifier > 0) { |
| 319 | 319 | |