@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | $acl = $this->container->get('acl'); |
| 250 | 250 | $adapter = $this->container->get('connection'); |
| 251 | 251 | |
| 252 | - $emitter->addAction('table.insert.directus_groups', function ($data) use ($acl, $adapter) { |
|
| 252 | + $emitter->addAction('table.insert.directus_groups', function($data) use ($acl, $adapter) { |
|
| 253 | 253 | $privilegesTable = new DirectusPrivilegesTableGateway($adapter, $acl); |
| 254 | 254 | |
| 255 | 255 | $privilegesTable->insertPrivilege([ |
@@ -303,32 +303,32 @@ discard block |
||
| 303 | 303 | $thumbnailFilenameParts = explode('.', $row['name']); |
| 304 | 304 | $thumbnailExtension = array_pop($thumbnailFilenameParts); |
| 305 | 305 | |
| 306 | - $row['url'] = $fileURL . '/' . $row['name']; |
|
| 306 | + $row['url'] = $fileURL.'/'.$row['name']; |
|
| 307 | 307 | if (in_array($thumbnailExtension, ['tif', 'tiff', 'psd', 'pdf'])) { |
| 308 | 308 | $thumbnailExtension = 'jpg'; |
| 309 | 309 | } |
| 310 | 310 | |
| 311 | - $thumbnailFilename = $row['id'] . '.' . $thumbnailExtension; |
|
| 312 | - $row['thumbnail_url'] = $thumbnailURL . '/' . $thumbnailFilename; |
|
| 311 | + $thumbnailFilename = $row['id'].'.'.$thumbnailExtension; |
|
| 312 | + $row['thumbnail_url'] = $thumbnailURL.'/'.$thumbnailFilename; |
|
| 313 | 313 | |
| 314 | 314 | // filename-ext-100-100-true.jpg |
| 315 | 315 | // @TODO: This should be another hook listener |
| 316 | 316 | $row['thumbnail_url'] = null; |
| 317 | 317 | $filename = implode('.', $thumbnailFilenameParts); |
| 318 | 318 | if ($row['type'] == 'embed/vimeo') { |
| 319 | - $oldThumbnailFilename = $row['name'] . '-vimeo-220-124-true.jpg'; |
|
| 319 | + $oldThumbnailFilename = $row['name'].'-vimeo-220-124-true.jpg'; |
|
| 320 | 320 | } else { |
| 321 | - $oldThumbnailFilename = $filename . '-' . $thumbnailExtension . '-160-160-true.jpg'; |
|
| 321 | + $oldThumbnailFilename = $filename.'-'.$thumbnailExtension.'-160-160-true.jpg'; |
|
| 322 | 322 | } |
| 323 | 323 | |
| 324 | 324 | // 314551321-vimeo-220-124-true.jpg |
| 325 | 325 | // hotfix: there's not thumbnail for this file |
| 326 | - if ($files->exists('thumbs/' . $oldThumbnailFilename)) { |
|
| 327 | - $row['thumbnail_url'] = $thumbnailURL . '/' . $oldThumbnailFilename; |
|
| 326 | + if ($files->exists('thumbs/'.$oldThumbnailFilename)) { |
|
| 327 | + $row['thumbnail_url'] = $thumbnailURL.'/'.$oldThumbnailFilename; |
|
| 328 | 328 | } |
| 329 | 329 | |
| 330 | - if ($files->exists('thumbs/' . $thumbnailFilename)) { |
|
| 331 | - $row['thumbnail_url'] = $thumbnailURL . '/' . $thumbnailFilename; |
|
| 330 | + if ($files->exists('thumbs/'.$thumbnailFilename)) { |
|
| 331 | + $row['thumbnail_url'] = $thumbnailURL.'/'.$thumbnailFilename; |
|
| 332 | 332 | } |
| 333 | 333 | |
| 334 | 334 | /* |