Completed
Pull Request — dev (#76)
by Sarah
02:56 queued 32s
created
views/notification/admin/defaults.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             'showSpaces' => true
18 18
         ]) ?>
19 19
         <br />
20
-        <button type="submit" class="btn btn-primary" data-ui-loader><?= Yii::t('base', 'Save');?></button>
20
+        <button type="submit" class="btn btn-primary" data-ui-loader><?= Yii::t('base', 'Save'); ?></button>
21 21
     <?php ActiveForm::end(); ?> 
22 22
 </div>
23 23
 
Please login to merge, or discard this patch.
views/like/widgets/likeLink.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,14 +10,17 @@
 block discarded – undo
10 10
     <?php if (Yii::$app->user->isGuest): ?>
11 11
 
12 12
         <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', 'Like'), Yii::$app->user->loginUrl, ['data-target' => '#globalModal']); ?>
13
-    <?php else: ?>
13
+    <?php else {
14
+    : ?>
14 15
         <a href="#" data-action-click="like.toggleLike" data-action-url="<?= $likeUrl ?>" class="like likeAnchor" style="<?= (!$currentUserLiked) ? '' : 'display:none'?>">
15 16
             <?= Yii::t('LikeModule.widgets_views_likeLink', 'Like') ?>
16 17
         </a>
17 18
         <a href="#" data-action-click="like.toggleLike" data-action-url="<?= $unlikeUrl ?>" class="unlike likeAnchor" style="<?= ($currentUserLiked) ? '' : 'display:none'?>">
18 19
             <?= Yii::t('LikeModule.widgets_views_likeLink', 'Unlike') ?>
19 20
         </a>
20
-    <?php endif; ?>
21
+    <?php endif;
22
+}
23
+?>
21 24
 
22 25
     <?php if (count($likes) > 0) { ?>
23 26
         <!-- Create link to show all users, who liked this -->
Please login to merge, or discard this patch.
views/file/widgets/showFiles.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 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'): ?>
19
+            <?php elseif (FileHelper::getExtension($file->file_name) == 'mp4'): ?>
20 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'): ?>
23
+            <?php elseif (FileHelper::getExtension($file->file_name) == 'ogv'): ?>
24 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>
@@ -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.