Passed
Branch master (956e68)
by Sarah
03:30 queued 01:26
created
views/comment/widgets/showComment.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -24,16 +24,16 @@  discard block
 block discarded – undo
24 24
 						<?php if ($canWrite): ?>
25 25
 							<li>
26 26
 								<?php
27
-								echo AjaxButton::widget([
28
-									'label' => '<i class="fa fa-pencil"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Edit'),
29
-									'ajaxOptions' => [
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(); }"),
32
-										'url' => Url::to(['/comment/comment/edit', 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]),
33
-									],
34
-									'tag' => 'a'
35
-								]);
36
-								?>
27
+                                echo AjaxButton::widget([
28
+                                    'label' => '<i class="fa fa-pencil"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Edit'),
29
+                                    'ajaxOptions' => [
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(); }"),
32
+                                        'url' => Url::to(['/comment/comment/edit', 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]),
33
+                                    ],
34
+                                    'tag' => 'a'
35
+                                ]);
36
+                                ?>
37 37
 
38 38
 							</li>
39 39
 						<?php endif; ?>
@@ -43,18 +43,18 @@  discard block
 block discarded – undo
43 43
 
44 44
 								<!-- load modal confirm widget -->
45 45
 								<?php
46
-								echo humhub\widgets\ModalConfirm::widget(array(
47
-									'uniqueID' => 'modal_commentdelete_' . $comment->id,
48
-									'linkOutput' => 'a',
49
-									'title' => Yii::t('CommentModule.widgets_views_showComment', '<strong>Confirm</strong> comment deleting'),
50
-									'message' => Yii::t('CommentModule.widgets_views_showComment', 'Do you really want to delete this comment?'),
51
-									'buttonTrue' => Yii::t('CommentModule.widgets_views_showComment', 'Delete'),
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'),
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(); }"
56
-								));
57
-								?>
46
+                                echo humhub\widgets\ModalConfirm::widget(array(
47
+                                    'uniqueID' => 'modal_commentdelete_' . $comment->id,
48
+                                    'linkOutput' => 'a',
49
+                                    'title' => Yii::t('CommentModule.widgets_views_showComment', '<strong>Confirm</strong> comment deleting'),
50
+                                    'message' => Yii::t('CommentModule.widgets_views_showComment', 'Do you really want to delete this comment?'),
51
+                                    'buttonTrue' => Yii::t('CommentModule.widgets_views_showComment', 'Delete'),
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'),
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(); }"
56
+                                ));
57
+                                ?>
58 58
 							</li>
59 59
 						<?php endif; ?>
60 60
 					</ul>
Please login to merge, or discard this 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.
views/user/layouts/main_auth.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,8 +81,11 @@
 block discarded – undo
81 81
         <!-- start: show content (and check, if exists a sublayout -->
82 82
         <?php if (isset($this->subLayout) && $this->subLayout != "") : ?>
83 83
             <?php echo $this->renderPartial($this->subLayout, array('content' => $content)); ?>
84
-        <?php else: ?>
85
-            <?php echo $content; ?>
84
+        <?php else {
85
+    : ?>
86
+            <?php echo $content;
87
+}
88
+?>
86 89
         <?php endif; ?>
87 90
         <!-- end: show content -->
88 91
 
Please login to merge, or discard this patch.
views/socialshare/widgets/shareLink.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
 
26 26
 			";
27 27
 		?>
28
-		<?= Html::a('<i class="fa fa-facebook" style="font-size:16px;color:#3a5795">&nbsp;</i>', 'https://www.facebook.com/sharer/sharer.php?u=' . urlencode($permalink) . '&description=' . urlencode($object->getContentDescription()),['onclick'=> $option]);?>
29
-		<?= Html::a('<i class="fa fa-twitter" style="font-size:16px;color:#55acee">&nbsp;</i>&nbsp;</i>', 'https://twitter.com/intent/tweet?text=' . urlencode($object->getContentDescription()) . '&url=' . urlencode($permalink),['onclick'=> $option]);?>
30
-		<?= Html::a('<i class="fa fa-linkedin-square" style="font-size:16px;color:#0177b5"></i>', 'https://www.linkedin.com/shareArticle?summary=&mini=true&source=&title=' . urlencode($object->getContentDescription()) . '&url=' . urlencode($permalink) . '&ro=false', ['onclick'=> $option]);?>
28
+		<?= Html::a('<i class="fa fa-facebook" style="font-size:16px;color:#3a5795">&nbsp;</i>', 'https://www.facebook.com/sharer/sharer.php?u='.urlencode($permalink).'&description='.urlencode($object->getContentDescription()), ['onclick'=> $option]); ?>
29
+		<?= Html::a('<i class="fa fa-twitter" style="font-size:16px;color:#55acee">&nbsp;</i>&nbsp;</i>', 'https://twitter.com/intent/tweet?text='.urlencode($object->getContentDescription()).'&url='.urlencode($permalink), ['onclick'=> $option]); ?>
30
+		<?= Html::a('<i class="fa fa-linkedin-square" style="font-size:16px;color:#0177b5"></i>', 'https://www.linkedin.com/shareArticle?summary=&mini=true&source=&title='.urlencode($object->getContentDescription()).'&url='.urlencode($permalink).'&ro=false', ['onclick'=> $option]); ?>
31 31
 	</div>
32 32
   </div>
33 33
 </div>
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
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.