Passed
Branch master (ccb8e7)
by Sarah
05:57 queued 03:52
created
views/widgets/logo.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,10 @@
 block discarded – undo
22 22
                  id="img-logo"/>
23 23
         </a>
24 24
         <br>
25
-    <?php else: ?>
26
-        <h1 id="app-title" class="animated fadeIn"><a href="<?php echo Yii::$app->homeUrl; ?>"><?php echo Html::encode(Yii::$app->name); ?></a></h1>
25
+    <?php else {
26
+    : ?>
27
+        <h1 id="app-title" class="animated fadeIn"><a href="<?php echo Yii::$app->homeUrl;
28
+}
29
+?>"><?php echo Html::encode(Yii::$app->name); ?></a></h1>
27 30
     <?php endif; ?>
28 31
 <?php endif; ?>
29 32
\ No newline at end of file
Please login to merge, or discard this patch.
views/layouts/main.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,8 +119,11 @@
 block discarded – undo
119 119
     <!-- start: show content (and check, if exists a sublayout -->
120 120
     <?php if (isset($this->context->subLayout) && $this->context->subLayout != "") : ?>
121 121
         <?php echo $this->render($this->context->subLayout, array('content' => $content)); ?>
122
-    <?php else: ?>
123
-        <?php echo $content; ?>
122
+    <?php else {
123
+    : ?>
124
+        <?php echo $content;
125
+}
126
+?>
124 127
     <?php endif; ?>
125 128
     <!-- end: show content -->
126 129
 
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
@@ -9,8 +9,11 @@
 block discarded – undo
9 9
 
10 10
     <?php if (Yii::$app->user->isGuest): ?>
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
-    <?php else: ?>
13
-        <?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]); ?>
12
+    <?php else {
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]);
15
+}
16
+?>
14 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]); ?>
15 18
     <?php endif; ?>
16 19
 
Please login to merge, or discard this patch.
views/space/space/_layout.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,13 @@
 block discarded – undo
14 14
             <div class="col-md-12 layout-content-container">
15 15
                 <?php echo $content; ?>
16 16
             </div>
17
-        <?php else: ?>
17
+        <?php else {
18
+    : ?>
18 19
             <div class="col-md-4 layout-sidebar-container">
19 20
 				<div class="panel-light no-icons">
20
-					<?php echo \humhub\modules\space\widgets\Menu::widget(['space' => $space]); ?>
21
+					<?php echo \humhub\modules\space\widgets\Menu::widget(['space' => $space]);
22
+}
23
+?>
21 24
 				</div>
22 25
                 <?php
23 26
                 echo \humhub\modules\space\widgets\Sidebar::widget(['space' => $space, 'widgets' => [
Please login to merge, or discard this patch.
views/user/auth/createAccount_success.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,11 @@
 block discarded – undo
18 18
                     <p><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'After activating your account by the administrator, you will receive a notification by email.'); ?></p>
19 19
                     <br/>
20 20
                     <a href="<?php echo Url::home() ?>" class="btn btn-primary"><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'back to home') ?></a>
21
-                <?php else: ?>
22
-                    <p><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'To log in with your new account, click the button below.'); ?></p>
21
+                <?php else {
22
+    : ?>
23
+                    <p><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'To log in with your new account, click the button below.');
24
+}
25
+?></p>
23 26
                     <br/>
24 27
                     <a href="<?php echo Url::home() ?>"
25 28
                        class="btn btn-primary"><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'Go to login page') ?></a>
Please login to merge, or discard this patch.
views/user/layouts/main.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/user/profile/_layout.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,10 +12,13 @@
 block discarded – undo
12 12
             <div class="col-md-12 layout-content-container">
13 13
                 <?php echo $content; ?>
14 14
             </div>
15
-        <?php else: ?>
15
+        <?php else {
16
+    : ?>
16 17
 			<div class="col-md-4 layout-sidebar-container">
17 18
 				<div class="panel-light">
18
-					<?= \humhub\modules\user\widgets\ProfileMenu::widget(['user' => $this->context->user]); ?>
19
+					<?= \humhub\modules\user\widgets\ProfileMenu::widget(['user' => $this->context->user]);
20
+}
21
+?>
19 22
                 </div>
20 23
 				<?php
21 24
                 echo \humhub\modules\user\widgets\ProfileSidebar::widget([
Please login to merge, or discard this patch.
views/file/widgets/showFiles.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,9 @@
 block discarded – undo
23 23
     <ul class="files" style="list-style: none; margin: 0;" id="files-<?php echo $object->getPrimaryKey(); ?>">
24 24
         <?php foreach ($files as $file) : ?>
25 25
             <?php
26
-            if ($file->getMimeBaseType() == "image" && $hideImageFileInfo)
27
-                continue;
26
+            if ($file->getMimeBaseType() == "image" && $hideImageFileInfo) {
27
+                            continue;
28
+            }
28 29
             ?>
29 30
             <li class="mime <?php echo \humhub\libs\MimeHelper::getMimeIconClassByExtension($file->getExtension()); ?>"><a
30 31
                     href="<?php echo $file->getUrl(); ?>" target="_blank"><span
Please login to merge, or discard this patch.
views/comment/widgets/link.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,11 +10,13 @@
 block discarded – undo
10 10
        class=""
11 11
        title="" data-target="#globalModal"
12 12
        data-original-title="Comments">Comments - <?php echo $this->context->getCommentsCount(); ?></a>
13
-<?php else: ?>
13
+<?php else {
14
+    : ?>
14 15
 	<div class="pull-right">
15 16
     <?php
16 17
     if (Yii::$app->user->isGuest) {
17 18
         echo Html::a(Yii::t('CommentModule.widgets_views_link', "<i class='fa fa-comments-o'></i>"), Yii::$app->user->loginUrl, array('data-target' => '#globalModal'));
19
+}
18 20
     } else {
19 21
         echo Html::a(Yii::t('CommentModule.widgets_views_link', "<i class='fa fa-comments-o'></i>"), "#", array('onClick' => "$('#comment_" . $id . "').show();$('#newCommentForm_" . $id . "_contenteditable').focus();return false;"));
20 22
     }
Please login to merge, or discard this patch.