@@ -73,7 +73,7 @@ |
||
73 | 73 | return sprintf( |
74 | 74 | '<img src="%s%s" title="%s" alt="%s" %s/>', |
75 | 75 | $result, |
76 | - $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator . $this->getTimeStamp() : '', |
|
76 | + $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator.$this->getTimeStamp() : '', |
|
77 | 77 | $this->getTitle(), |
78 | 78 | $this->getTitle(), |
79 | 79 | $this->renderAttributes() |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | { |
44 | 44 | |
45 | 45 | $relativePath = sprintf('Icons/MimeType/%s.png', $this->getFile()->getProperty('extension')); |
46 | - $fileNameAndPath = GeneralUtility::getFileAbsFileName('EXT:media/Resources/Public/' . $relativePath); |
|
46 | + $fileNameAndPath = GeneralUtility::getFileAbsFileName('EXT:media/Resources/Public/'.$relativePath); |
|
47 | 47 | if (!file_exists($fileNameAndPath)) { |
48 | 48 | $relativePath = 'Icons/UnknownMimeType.png'; |
49 | 49 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | return sprintf( |
69 | 69 | '<img src="%s%s" title="%s" alt="%s" %s/>', |
70 | 70 | $result, |
71 | - $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator . $this->getFile()->getProperty('tstamp') : '', |
|
71 | + $this->thumbnailService->getAppendTimeStamp() ? $parameterSeparator.$this->getFile()->getProperty('tstamp') : '', |
|
72 | 72 | $this->getTitle(), |
73 | 73 | $this->getTitle(), |
74 | 74 | $this->renderAttributes() |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | return sprintf( |
104 | 104 | '<a href="%s%s" target="%s" data-uid="%s">%s</a>', |
105 | 105 | $this->thumbnailService->getAnchorUri() ? $this->thumbnailService->getAnchorUri() : $file->getPublicUrl(true), |
106 | - $this->thumbnailService->getAppendTimeStamp() ? '?' . $file->getProperty('tstamp') : '', |
|
106 | + $this->thumbnailService->getAppendTimeStamp() ? '?'.$file->getProperty('tstamp') : '', |
|
107 | 107 | $this->thumbnailService->getTarget(), |
108 | 108 | $file->getUid(), |
109 | 109 | $result |
@@ -65,7 +65,7 @@ |
||
65 | 65 | return false; |
66 | 66 | } |
67 | 67 | |
68 | - $this->setName(uniqid() . '.' . $this->extension); |
|
68 | + $this->setName(uniqid().'.'.$this->extension); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
@@ -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 |
@@ -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 |
@@ -188,7 +188,7 @@ |
||
188 | 188 | |
189 | 189 | // Get the title of the record. |
190 | 190 | $record = $this->getDataService() |
191 | - ->getRecord($tableName, ['uid' => $identifier,]); |
|
191 | + ->getRecord($tableName, ['uid' => $identifier, ]); |
|
192 | 192 | |
193 | 193 | if (!empty($record[$labelField])) { |
194 | 194 | $result = $record[$labelField]; |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $file->getProperty('crdate') ? $this->formatDate($arguments, $file->getProperty('crdate')) : '', |
54 | 54 | $this->getUserName($file->getProperty('cruser_id')), |
55 | 55 | LocalizationUtility::translate('updated_on', 'media'), |
56 | - $file->getProperty('tstamp') ? $this->formatDate($arguments, '@' . $file->getProperty('tstamp')) : '', |
|
56 | + $file->getProperty('tstamp') ? $this->formatDate($arguments, '@'.$file->getProperty('tstamp')) : '', |
|
57 | 57 | $this->getUserName($file->getProperty('upuser_id')) |
58 | 58 | ); |
59 | 59 | |
@@ -125,12 +125,12 @@ discard block |
||
125 | 125 | |
126 | 126 | if (!$date instanceof \DateTimeInterface) { |
127 | 127 | try { |
128 | - $base = $base instanceof \DateTimeInterface ? $base->format('U') : strtotime((MathUtility::canBeInterpretedAsInteger($base) ? '@' : '') . $base); |
|
129 | - $dateTimestamp = strtotime((MathUtility::canBeInterpretedAsInteger($date) ? '@' : '') . $date, $base); |
|
130 | - $date = new \DateTime('@' . $dateTimestamp); |
|
128 | + $base = $base instanceof \DateTimeInterface ? $base->format('U') : strtotime((MathUtility::canBeInterpretedAsInteger($base) ? '@' : '').$base); |
|
129 | + $dateTimestamp = strtotime((MathUtility::canBeInterpretedAsInteger($date) ? '@' : '').$date, $base); |
|
130 | + $date = new \DateTime('@'.$dateTimestamp); |
|
131 | 131 | $date->setTimezone(new \DateTimeZone(date_default_timezone_get())); |
132 | 132 | } catch (\Exception $exception) { |
133 | - throw new Exception('"' . $date . '" could not be parsed by \DateTime constructor: ' . $exception->getMessage(), 1241722579); |
|
133 | + throw new Exception('"'.$date.'" could not be parsed by \DateTime constructor: '.$exception->getMessage(), 1241722579); |
|
134 | 134 | } |
135 | 135 | } |
136 | 136 |
@@ -152,7 +152,7 @@ |
||
152 | 152 | ->groupBy('pid') // no support for distinct |
153 | 153 | ->andWhere( |
154 | 154 | 'pid > 0', |
155 | - 'uid_local = ' . $file->getUid() |
|
155 | + 'uid_local = '.$file->getUid() |
|
156 | 156 | ) |
157 | 157 | ->execute() |
158 | 158 | ->fetchAll(); |