Passed
Push — master ( e46169...3e4eba )
by Sarah
14:45 queued 11:55
created
views/file/widgets/showFiles.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@  discard block
 block discarded – undo
13 13
     <div class="post-files" id="post-files-<?php echo $object->getUniqueId(); ?>">
14 14
         <?php foreach ($files as $file): ?>
15 15
             <?php if ($previewImage->applyFile($file)): ?>
16
-                <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" href="<?= $file->getUrl(); ?>#.jpeg" title="<?= Html::encode($file->file_name) ?>">
16
+                <a data-ui-gallery="<?= "gallery-".$object->getUniqueId(); ?>" href="<?= $file->getUrl(); ?>#.jpeg" title="<?= Html::encode($file->file_name) ?>">
17 17
                     <?= $previewImage->render(); ?>
18 18
                 </a>
19
-            <?php elseif(FileHelper::getExtension($file->file_name) == 'mp4'): ?>
20
-                <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" type="video/mp4" href="<?= $file->getUrl(); ?>#.mp4" title="<?= Html::encode($file->file_name) ?>">
19
+            <?php elseif (FileHelper::getExtension($file->file_name) == 'mp4'): ?>
20
+                <a data-ui-gallery="<?= "gallery-".$object->getUniqueId(); ?>" type="video/mp4" href="<?= $file->getUrl(); ?>#.mp4" title="<?= Html::encode($file->file_name) ?>">
21 21
                     <video src="<?= $file->getUrl() ?>" height="130" />
22 22
                 </a>
23
-            <?php elseif(FileHelper::getExtension($file->file_name) == 'ogv'): ?>
24
-                <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" type="video/ogg" href="<?= $file->getUrl(); ?>#.ogv" title="<?= Html::encode($file->file_name) ?>">
23
+            <?php elseif (FileHelper::getExtension($file->file_name) == 'ogv'): ?>
24
+                <a data-ui-gallery="<?= "gallery-".$object->getUniqueId(); ?>" type="video/ogg" href="<?= $file->getUrl(); ?>#.ogv" title="<?= Html::encode($file->file_name) ?>">
25 25
                     <video src="<?= $file->getUrl() ?>" height="130" />
26 26
                 </a>
27 27
             <?php endif; ?>
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     <?= \humhub\modules\file\widgets\FilePreview::widget([
47 47
         'hideImageFileInfo' => $hideImageFileInfo,
48 48
         'model' => $object,
49
-    ]);?>
49
+    ]); ?>
50 50
     
51 51
 </div>
52 52
 <?php endif; ?>
Please login to merge, or discard this patch.