@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | return sprintf( |
76 | 76 | '<img src="%s%s" title="%s" alt="%s" %s/>', |
77 | 77 | $result, |
78 | - $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator . $this->processedFile->getProperty('tstamp') : '', |
|
78 | + $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator.$this->processedFile->getProperty('tstamp') : '', |
|
79 | 79 | $this->getTitle(), |
80 | 80 | $this->getTitle(), |
81 | 81 | $this->renderAttributes() |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | return sprintf( |
128 | 128 | '<a href="%s%s" target="%s" data-uid="%s">%s</a>', |
129 | 129 | $url, |
130 | - $this->thumbnailService->getAppendTimeStamp() && !$this->thumbnailService->getAnchorUri() ? $parameterSeparator . $file->getProperty('tstamp') : '', |
|
130 | + $this->thumbnailService->getAppendTimeStamp() && !$this->thumbnailService->getAnchorUri() ? $parameterSeparator.$file->getProperty('tstamp') : '', |
|
131 | 131 | $this->thumbnailService->getTarget(), |
132 | 132 | $file->getUid(), |
133 | 133 | $result |
@@ -115,7 +115,7 @@ |
||
115 | 115 | public function prefixUri($uri): string |
116 | 116 | { |
117 | 117 | if ($this->isFrontendMode() && $this->getFrontendObject()->absRefPrefix) { |
118 | - $uri = $this->getFrontendObject()->absRefPrefix . $uri; |
|
118 | + $uri = $this->getFrontendObject()->absRefPrefix.$uri; |
|
119 | 119 | } |
120 | 120 | return $uri; |
121 | 121 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | public function renderUri() |
43 | 43 | { |
44 | 44 | $relativePath = sprintf('Icons/MimeType/%s.png', $this->getFile()->getProperty('extension')); |
45 | - $fileNameAndPath = GeneralUtility::getFileAbsFileName('EXT:media/Resources/Public/' . $relativePath); |
|
45 | + $fileNameAndPath = GeneralUtility::getFileAbsFileName('EXT:media/Resources/Public/'.$relativePath); |
|
46 | 46 | if (!file_exists($fileNameAndPath)) { |
47 | 47 | $relativePath = 'Icons/UnknownMimeType.png'; |
48 | 48 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return sprintf( |
67 | 67 | '<img src="%s%s" title="%s" alt="%s" %s/>', |
68 | 68 | $result, |
69 | - $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator . $this->getFile()->getProperty('tstamp') : '', |
|
69 | + $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator.$this->getFile()->getProperty('tstamp') : '', |
|
70 | 70 | $this->getTitle(), |
71 | 71 | $this->getTitle(), |
72 | 72 | $this->renderAttributes() |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | return sprintf( |
101 | 101 | '<a href="%s%s" target="%s" data-uid="%s">%s</a>', |
102 | 102 | $this->thumbnailService->getAnchorUri() ? $this->thumbnailService->getAnchorUri() : $file->getPublicUrl(true), |
103 | - $this->thumbnailService->getAppendTimeStamp() ? '?' . $file->getProperty('tstamp') : '', |
|
103 | + $this->thumbnailService->getAppendTimeStamp() ? '?'.$file->getProperty('tstamp') : '', |
|
104 | 104 | $this->thumbnailService->getTarget(), |
105 | 105 | $file->getUid(), |
106 | 106 | $result |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function renderUri(): string |
39 | 39 | { |
40 | 40 | $relativePath = sprintf('Icons/MimeType/%s.png', $this->getFile()->getProperty('extension')); |
41 | - $fileNameAndPath = GeneralUtility::getFileAbsFileName('EXT:media/Resources/Public/' . $relativePath); |
|
41 | + $fileNameAndPath = GeneralUtility::getFileAbsFileName('EXT:media/Resources/Public/'.$relativePath); |
|
42 | 42 | if (!file_exists($fileNameAndPath)) { |
43 | 43 | $relativePath = 'Icons/UnknownMimeType.png'; |
44 | 44 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | return sprintf( |
62 | 62 | '<img src="%s%s" title="%s" alt="%s" %s/>', |
63 | 63 | $result, |
64 | - $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator . $this->getFile()->getProperty('tstamp') : '', |
|
64 | + $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator.$this->getFile()->getProperty('tstamp') : '', |
|
65 | 65 | $this->getTitle(), |
66 | 66 | $this->getTitle(), |
67 | 67 | $this->renderAttributes() |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | return sprintf( |
93 | 93 | '<a href="%s%s" target="%s" data-uid="%s">%s</a>', |
94 | 94 | $this->thumbnailService->getAnchorUri() ? $this->thumbnailService->getAnchorUri() : $file->getPublicUrl(true), |
95 | - $this->thumbnailService->getAppendTimeStamp() ? '?' . $file->getProperty('tstamp') : '', |
|
95 | + $this->thumbnailService->getAppendTimeStamp() ? '?'.$file->getProperty('tstamp') : '', |
|
96 | 96 | $this->thumbnailService->getTarget(), |
97 | 97 | $file->getUid(), |
98 | 98 | $result |
@@ -34,7 +34,7 @@ |
||
34 | 34 | { |
35 | 35 | // Get the base prefix. |
36 | 36 | $basePrefix = $this->getBasePrefix($this->getPrefix()); |
37 | - $filePath = ExtensionManagementUtility::extPath('media') . 'Resources/Private/Standalone/FileUploadTceForms.js'; |
|
37 | + $filePath = ExtensionManagementUtility::extPath('media').'Resources/Private/Standalone/FileUploadTceForms.js'; |
|
38 | 38 | |
39 | 39 | return sprintf( |
40 | 40 | file_get_contents($filePath), |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | public function __construct() |
50 | 50 | { |
51 | 51 | $this->addLanguage(); |
52 | - $this->elementId = 'jquery-wrapped-fine-uploader-' . uniqid(); |
|
52 | + $this->elementId = 'jquery-wrapped-fine-uploader-'.uniqid(); |
|
53 | 53 | |
54 | 54 | $this->template = <<<EOF |
55 | 55 | <div class="control-group control-group-upload" style="%s"> |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | /** @var PageRenderer $pageRenderer */ |
74 | 74 | $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class); |
75 | - $pageRenderer->addInlineLanguageLabelFile(ExtensionManagementUtility::extPath('media') . 'Resources/Private/Language/locallang.xlf', 'media_file_upload'); |
|
75 | + $pageRenderer->addInlineLanguageLabelFile(ExtensionManagementUtility::extPath('media').'Resources/Private/Language/locallang.xlf', 'media_file_upload'); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | /** @var StandaloneView $view */ |
156 | 156 | $view = GeneralUtility::makeInstance(StandaloneView::class); |
157 | 157 | |
158 | - $templatePathAndFilename = ExtensionManagementUtility::extPath('media') . $this->templateFile; |
|
158 | + $templatePathAndFilename = ExtensionManagementUtility::extPath('media').$this->templateFile; |
|
159 | 159 | $view->setTemplatePathAndFilename($templatePathAndFilename); |
160 | 160 | |
161 | 161 | return $view; |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | // Get the base prefix |
172 | 172 | $basePrefix = $this->getBasePrefix($this->getPrefix()); |
173 | 173 | |
174 | - $filePath = ExtensionManagementUtility::extPath('media') . 'Resources/Private/Standalone/FileUpload.js'; |
|
174 | + $filePath = ExtensionManagementUtility::extPath('media').'Resources/Private/Standalone/FileUpload.js'; |
|
175 | 175 | |
176 | 176 | return sprintf( |
177 | 177 | file_get_contents($filePath), |
@@ -181,8 +181,7 @@ discard block |
||
181 | 181 | $this->getAllowedExtensions(), |
182 | 182 | GeneralUtility::getMaxUploadFileSize() * 1024, |
183 | 183 | $this->isDrivenByFolder() ? |
184 | - $this->getMediaModule()->getCurrentFolder()->getCombinedIdentifier() : |
|
185 | - $this->getMediaModule()->getCurrentStorage()->getUid() . ':/' |
|
184 | + $this->getMediaModule()->getCurrentFolder()->getCombinedIdentifier() : $this->getMediaModule()->getCurrentStorage()->getUid().':/' |
|
186 | 185 | ); |
187 | 186 | } |
188 | 187 |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $templateNameAndPath = 'EXT:media/Resources/Private/Standalone/Tool/DuplicateFilesFinder/Launcher.html'; |
45 | 45 | $view = $this->initializeStandaloneView($templateNameAndPath); |
46 | 46 | $view->assign('isAdmin', $this->getBackendUser()->isAdmin()); |
47 | - $view->assign('sitePath', Environment::getPublicPath() . '/'); |
|
47 | + $view->assign('sitePath', Environment::getPublicPath().'/'); |
|
48 | 48 | return $view->render(); |
49 | 49 | } |
50 | 50 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $filteredFiles = []; |
106 | 106 | foreach ($files as $file) { |
107 | 107 | foreach ($allowedMountPoints as $allowedMountPoint) { |
108 | - $pattern = '%^' . $allowedMountPoint . '%isU'; |
|
108 | + $pattern = '%^'.$allowedMountPoint.'%isU'; |
|
109 | 109 | if (preg_match($pattern, $file['identifier'])) { |
110 | 110 | $filteredFiles[] = $file; |
111 | 111 | break; // no need to further loop around, stop the loop. |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | { |
39 | 39 | $templateNameAndPath = 'EXT:media/Resources/Private/Standalone/Tool/ThumbnailGenerator/Launcher.html'; |
40 | 40 | $view = $this->initializeStandaloneView($templateNameAndPath); |
41 | - $view->assign('sitePath', Environment::getPublicPath() . '/'); |
|
41 | + $view->assign('sitePath', Environment::getPublicPath().'/'); |
|
42 | 42 | return $view->render(); |
43 | 43 | } |
44 | 44 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | '* File "%s": %s %s', |
78 | 78 | $result['fileUid'], |
79 | 79 | $result['fileIdentifier'], |
80 | - empty($result['thumbnailUri']) ? '' : ' -> ' . $result['thumbnailUri'] |
|
80 | + empty($result['thumbnailUri']) ? '' : ' -> '.$result['thumbnailUri'] |
|
81 | 81 | ); |
82 | 82 | } |
83 | 83 |
@@ -146,7 +146,7 @@ |
||
146 | 146 | ->groupBy('pid') // no support for distinct |
147 | 147 | ->andWhere( |
148 | 148 | 'pid > 0', |
149 | - 'uid_local = ' . $file->getUid() |
|
149 | + 'uid_local = '.$file->getUid() |
|
150 | 150 | ) |
151 | 151 | ->execute() |
152 | 152 | ->fetchAllAssociative(); |