@@ -32,11 +32,11 @@ discard block |
||
32 | 32 | public static function getRelativePath($resource) |
33 | 33 | { |
34 | 34 | // If file is not found, resolve the path |
35 | - if (!is_file(Environment::getPublicPath() . '/' . $resource)) { |
|
36 | - $resource = substr(self::resolvePath($resource), strlen(Environment::getPublicPath() . '/')); |
|
35 | + if (!is_file(Environment::getPublicPath().'/'.$resource)) { |
|
36 | + $resource = substr(self::resolvePath($resource), strlen(Environment::getPublicPath().'/')); |
|
37 | 37 | } |
38 | 38 | |
39 | - return PathUtility::getRelativePathTo(PathUtility::dirname(Environment::getPublicPath() . '/' . $resource)) . PathUtility::basename($resource); |
|
39 | + return PathUtility::getRelativePathTo(PathUtility::dirname(Environment::getPublicPath().'/'.$resource)).PathUtility::basename($resource); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | public static function resolvePath($resource) |
49 | 49 | { |
50 | 50 | $resource = self::canonicalPath($resource); |
51 | - if (!is_file(Environment::getPublicPath() . '/' . $resource)) { |
|
52 | - $resource = 'EXT:' . GeneralUtility::camelCaseToLowerCaseUnderscored(self::$extensionName) . '/Resources/Public/' . $resource; |
|
51 | + if (!is_file(Environment::getPublicPath().'/'.$resource)) { |
|
52 | + $resource = 'EXT:'.GeneralUtility::camelCaseToLowerCaseUnderscored(self::$extensionName).'/Resources/Public/'.$resource; |
|
53 | 53 | } |
54 | 54 | return GeneralUtility::getFileAbsFileName($resource); |
55 | 55 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $connection->getConnectionForTable($tableName)->update( |
99 | 99 | $tableName, |
100 | 100 | $values, |
101 | - [ 'uid' => $storage->getUid() ] |
|
101 | + ['uid' => $storage->getUid()] |
|
102 | 102 | ); |
103 | 103 | } |
104 | 104 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | */ |
116 | 116 | protected function getWarmUpSemaphoreFile() |
117 | 117 | { |
118 | - return Environment::getPublicPath() . '/typo3temp/.media_cache_warmed_up'; |
|
118 | + return Environment::getPublicPath().'/typo3temp/.media_cache_warmed_up'; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | return $queryBuilder |
258 | 258 | ->select('*') |
259 | 259 | ->from('sys_filemounts') |
260 | - ->where('uid = ' . $identifier) |
|
260 | + ->where('uid = '.$identifier) |
|
261 | 261 | ->execute() |
262 | 262 | ->fetchAssociative(); |
263 | 263 | } |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | } |
220 | 220 | |
221 | 221 | // Retrieve the folder object. |
222 | - $folder = $this->getResourceFactory()->getFolderObjectFromCombinedIdentifier($storage->getUid() . ':' . $identifier); |
|
222 | + $folder = $this->getResourceFactory()->getFolderObjectFromCombinedIdentifier($storage->getUid().':'.$identifier); |
|
223 | 223 | |
224 | 224 | // Disallow the rendering of the processing folder (e.g. could be called manually) |
225 | 225 | // and all folders without any defined storage |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | |
275 | 275 | // Get a possible mount point coming from the storage record. |
276 | 276 | $storageRecord = $storage->getStorageRecord(); |
277 | - $mountPointIdentifier = $storageRecord['mount_point_file_type_' . $uploadedFile->getType()]; |
|
277 | + $mountPointIdentifier = $storageRecord['mount_point_file_type_'.$uploadedFile->getType()]; |
|
278 | 278 | if ($mountPointIdentifier > 0) { |
279 | 279 | // We don't have a Mount Point repository in FAL, so query the database directly. |
280 | 280 | $record = $this->getDataService()->getRecord('sys_filemounts', ['uid' => $mountPointIdentifier]); |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | |
301 | 301 | // Retrieve storage record and a possible configured mount point. |
302 | 302 | $storageRecord = $storage->getStorageRecord(); |
303 | - $mountPointIdentifier = $storageRecord['mount_point_file_type_' . $file->getType()]; |
|
303 | + $mountPointIdentifier = $storageRecord['mount_point_file_type_'.$file->getType()]; |
|
304 | 304 | |
305 | 305 | if ($mountPointIdentifier > 0) { |
306 | 306 | // We don't have a Mount Point repository in FAL, so query the database directly. |
@@ -39,7 +39,7 @@ |
||
39 | 39 | { |
40 | 40 | $this->storage = $storage; |
41 | 41 | $this->gifCreator = GeneralUtility::makeInstance(GifBuilder::class); |
42 | - $this->gifCreator->absPrefix = Environment::getPublicPath() . '/'; |
|
42 | + $this->gifCreator->absPrefix = Environment::getPublicPath().'/'; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | public function __construct() |
31 | 31 | { |
32 | 32 | $this->gifCreator = GeneralUtility::makeInstance(GifBuilder::class); |
33 | - $this->gifCreator->absPrefix = Environment::getPublicPath() . '/'; |
|
33 | + $this->gifCreator->absPrefix = Environment::getPublicPath().'/'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | $imParams = '###SkipStripProfile###'; |
52 | 52 | if ($transformation !== '') { |
53 | - $imParams .= ' ' . $transformation; |
|
53 | + $imParams .= ' '.$transformation; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | $tempFileInfo = $this->gifCreator->imageMagickConvert($uploadedFile->getFileWithAbsolutePath(), '', '', '', $imParams, '', [], true); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $file->getProperty('crdate') ? $this->formatDate($arguments, $file->getProperty('crdate')) : '', |
53 | 53 | $this->getUserName($file->getProperty('cruser_id')), |
54 | 54 | LocalizationUtility::translate('updated_on', 'media'), |
55 | - $file->getProperty('tstamp') ? $this->formatDate($arguments, '@' . $file->getProperty('tstamp')) : '', |
|
55 | + $file->getProperty('tstamp') ? $this->formatDate($arguments, '@'.$file->getProperty('tstamp')) : '', |
|
56 | 56 | $this->getUserName($file->getProperty('upuser_id')) |
57 | 57 | ); |
58 | 58 | |
@@ -124,12 +124,12 @@ discard block |
||
124 | 124 | |
125 | 125 | if (!$date instanceof \DateTimeInterface) { |
126 | 126 | try { |
127 | - $base = $base instanceof \DateTimeInterface ? $base->format('U') : strtotime((MathUtility::canBeInterpretedAsInteger($base) ? '@' : '') . $base); |
|
128 | - $dateTimestamp = strtotime((MathUtility::canBeInterpretedAsInteger($date) ? '@' : '') . $date, $base); |
|
129 | - $date = new \DateTime('@' . $dateTimestamp); |
|
127 | + $base = $base instanceof \DateTimeInterface ? $base->format('U') : strtotime((MathUtility::canBeInterpretedAsInteger($base) ? '@' : '').$base); |
|
128 | + $dateTimestamp = strtotime((MathUtility::canBeInterpretedAsInteger($date) ? '@' : '').$date, $base); |
|
129 | + $date = new \DateTime('@'.$dateTimestamp); |
|
130 | 130 | $date->setTimezone(new \DateTimeZone(date_default_timezone_get())); |
131 | 131 | } catch (\Exception $exception) { |
132 | - throw new \TYPO3Fluid\Fluid\Core\ViewHelper\Exception('"' . $date . '" could not be parsed by \DateTime constructor: ' . $exception->getMessage(), 1241722579); |
|
132 | + throw new \TYPO3Fluid\Fluid\Core\ViewHelper\Exception('"'.$date.'" could not be parsed by \DateTime constructor: '.$exception->getMessage(), 1241722579); |
|
133 | 133 | } |
134 | 134 | } |
135 | 135 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $sizeUnit = empty($configuration['sizeUnit']) ? 1000 : $configuration['sizeUnit']; |
43 | 43 | $value = round($file->getSize() / $sizeUnit); |
44 | 44 | } |
45 | - $result = str_replace('%' . $metadataProperty, $value, $result); |
|
45 | + $result = str_replace('%'.$metadataProperty, $value, $result); |
|
46 | 46 | } |
47 | 47 | return $result; |
48 | 48 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $template = '%size KB'; |
59 | 59 | |
60 | 60 | if ($file->getType() == File::FILETYPE_IMAGE) { |
61 | - $template = '%width x %height - ' . $template; |
|
61 | + $template = '%width x %height - '.$template; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | return $template; |
@@ -33,9 +33,9 @@ |
||
33 | 33 | if ($enableMediaFilePicker) { |
34 | 34 | $pageRenderer = $this->getPageRenderer(); |
35 | 35 | $pageRenderer->loadRequireJsModule('TYPO3/CMS/Media/MediaFormEngine', 'function(MediaFormEngine) { |
36 | - MediaFormEngine.vidiModuleUrl = \'' . BackendUtility::getModuleUrl(VidiModule::getSignature()) . '\'; |
|
37 | - MediaFormEngine.vidiModulePrefix = \'' . VidiModule::getParameterPrefix() . '\'; |
|
38 | - MediaFormEngine.browserUrl = ' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('wizard_element_browser')) . '; |
|
36 | + MediaFormEngine.vidiModuleUrl = \'' . BackendUtility::getModuleUrl(VidiModule::getSignature()).'\'; |
|
37 | + MediaFormEngine.vidiModulePrefix = \'' . VidiModule::getParameterPrefix().'\'; |
|
38 | + MediaFormEngine.browserUrl = ' . GeneralUtility::quoteJSvalue(BackendUtility::getModuleUrl('wizard_element_browser')).'; |
|
39 | 39 | }'); |
40 | 40 | } |
41 | 41 |
@@ -84,7 +84,7 @@ |
||
84 | 84 | '* File "%s": %s %s', |
85 | 85 | $result['fileUid'], |
86 | 86 | $result['fileIdentifier'], |
87 | - empty($result['thumbnailUri']) ? '' : ' -> ' . $result['thumbnailUri'] |
|
87 | + empty($result['thumbnailUri']) ? '' : ' -> '.$result['thumbnailUri'] |
|
88 | 88 | ); |
89 | 89 | $this->io->info($message); |
90 | 90 | } |