Passed
Pull Request — master (#9)
by Sarah
03:50 queued 01:40
created
views/like/widgets/likeLink.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 block discarded – undo
11 11
         <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-heart-o"></i>'), Yii::$app->user->loginUrl, array('data-target' => '#globalModal')); ?>
12 12
     <?php else {
13 13
     : ?>
14
-        <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $likeUrl, ['style' => 'display:' . ((!$currentUserLiked) ? 'inline' : 'none'), 'class' => 'like likeAnchor', 'data-objectId' => $id]);
14
+        <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $likeUrl, ['style' => 'display:'.((!$currentUserLiked) ? 'inline' : 'none'), 'class' => 'like likeAnchor', 'data-objectId' => $id]);
15 15
 }
16 16
 ?>
17
-        <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $unlikeUrl, ['style' => 'display:' . (($currentUserLiked) ? 'inline' : 'none'), 'class' => 'unlike likeAnchor', 'data-objectId' => $id]); ?>
17
+        <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $unlikeUrl, ['style' => 'display:'.(($currentUserLiked) ? 'inline' : 'none'), 'class' => 'unlike likeAnchor', 'data-objectId' => $id]); ?>
18 18
     <?php endif; ?>
19 19
 
20 20
 <?php if (count($likes) > 0) { ?>
Please login to merge, or discard this patch.
views/comment/widgets/showComment.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
 							<li>
26 26
 								<?php
27 27
                                 echo AjaxButton::widget([
28
-                                    'label' => '<i class="fa fa-pencil"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Edit'),
28
+                                    'label' => '<i class="fa fa-pencil"></i> '.Yii::t('CommentModule.widgets_views_showComment', 'Edit'),
29 29
                                     'ajaxOptions' => [
30 30
                                         'type' => 'POST',
31
-                                        'success' => new yii\web\JsExpression("function(html){ $('.preferences .dropdown').removeClass('open'); $('#comment_editarea_" . $comment->id . "').replaceWith(html); $('#comment_input_" . $comment->id . "_contenteditable').focus(); }"),
31
+                                        'success' => new yii\web\JsExpression("function(html){ $('.preferences .dropdown').removeClass('open'); $('#comment_editarea_".$comment->id."').replaceWith(html); $('#comment_input_".$comment->id."_contenteditable').focus(); }"),
32 32
                                         'url' => Url::to(['/comment/comment/edit', 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]),
33 33
                                     ],
34 34
                                     'tag' => 'a'
@@ -44,15 +44,15 @@  discard block
 block discarded – undo
44 44
 								<!-- load modal confirm widget -->
45 45
 								<?php
46 46
                                 echo humhub\widgets\ModalConfirm::widget(array(
47
-                                    'uniqueID' => 'modal_commentdelete_' . $comment->id,
47
+                                    'uniqueID' => 'modal_commentdelete_'.$comment->id,
48 48
                                     'linkOutput' => 'a',
49 49
                                     'title' => Yii::t('CommentModule.widgets_views_showComment', '<strong>Confirm</strong> comment deleting'),
50 50
                                     'message' => Yii::t('CommentModule.widgets_views_showComment', 'Do you really want to delete this comment?'),
51 51
                                     'buttonTrue' => Yii::t('CommentModule.widgets_views_showComment', 'Delete'),
52 52
                                     'buttonFalse' => Yii::t('CommentModule.widgets_views_showComment', 'Cancel'),
53
-                                    'linkContent' => '<i class="fa fa-trash-o"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Delete'),
53
+                                    'linkContent' => '<i class="fa fa-trash-o"></i> '.Yii::t('CommentModule.widgets_views_showComment', 'Delete'),
54 54
                                     'linkHref' => Url::to(["/comment/comment/delete", 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]),
55
-                                    'confirmJS' => "function(html) { $('#comment_" . $comment->id . "').slideUp(); }"
55
+                                    'confirmJS' => "function(html) { $('#comment_".$comment->id."').slideUp(); }"
56 56
                                 ));
57 57
                                 ?>
58 58
 							</li>
Please login to merge, or discard this patch.