@@ -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 | } |
@@ -152,7 +152,7 @@ discard block |
||
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(); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | '(softref_key = "rtehtmlarea_images" OR softref_key = "typolink_tag")', |
181 | 181 | 'ref_table = "sys_file"', |
182 | 182 | 'tablename = "tt_content"', |
183 | - 'ref_uid = ' . $file->getUid(), |
|
183 | + 'ref_uid = '.$file->getUid(), |
|
184 | 184 | ); |
185 | 185 | |
186 | 186 | $rows = $this->getDatabaseConnection()->exec_SELECTquery( |
@@ -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 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | #$storage->getProcessingFolder()->delete(true); // will not work |
58 | 58 | |
59 | 59 | // Well... not really FAL friendly but straightforward for Local drivers. |
60 | - $processedDirectoryPath = PATH_site . $storage->getProcessingFolder()->getPublicUrl(); |
|
60 | + $processedDirectoryPath = PATH_site.$storage->getProcessingFolder()->getPublicUrl(); |
|
61 | 61 | $fileIterator = new FilesystemIterator($processedDirectoryPath, FilesystemIterator::SKIP_DOTS); |
62 | 62 | $numberOfProcessedFiles = iterator_count($fileIterator); |
63 | 63 |
@@ -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 |