Completed
Pull Request — dev (#71)
by Sarah
02:19
created
views/space/widgets/header.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,11 @@
 block discarded – undo
99 99
                 <a data-ui-gallery="spaceHeader" href="<?= $space->profileImage->getUrl('_org'); ?>">
100 100
                        <?= \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 140]); ?>
101 101
                 </a>
102
-            <?php else : ?>
103
-                <?= \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 140]); ?>
102
+            <?php else {
103
+    : ?>
104
+                <?= \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 140]);
105
+}
106
+?>
104 107
             <?php endif; ?>
105 108
 
106 109
             <!-- check if the current user is the profile owner and can change the images -->
Please login to merge, or discard this patch.
views/post/widgets/form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,4 @@
 block discarded – undo
4 4
     'name' => 'message',
5 5
     'disabled' => (property_exists(Yii::$app->controller, 'contentContainer') && Yii::$app->controller->contentContainer->isArchived()),
6 6
     'disabledText' => Yii::t("PostModule.widgets_views_postForm", "This space is archived."),
7
-]);?>
7
+]); ?>
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="<?php echo $likeUrl ?>" class="like likeAnchor" style="<?php echo (!$currentUserLiked) ? '' : 'display:none'?>">
15 16
             <?php echo Yii::t('LikeModule.widgets_views_likeLink', 'Like') ?>
16 17
         </a>
17 18
         <a href="#" data-action-click="like.toggleLike" data-action-url="<?php echo $unlikeUrl ?>" class="unlike likeAnchor" style="<?php echo ($currentUserLiked) ? '' : 'display:none'?>">
18 19
             <?php echo 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/search/search/index.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,16 +109,22 @@
 block discarded – undo
109 109
                                 <?= humhub\modules\stream\actions\Stream::renderEntry($result) ?>
110 110
                             <?php elseif ($result instanceof ContentContainerActiveRecord) : ?>
111 111
                                  <?= $result->getWallOut(); ?>
112
-                            <?php else: ?>
113
-                                No Output for Class <?= get_class($result); ?>
112
+                            <?php else {
113
+    : ?>
114
+                                No Output for Class <?= get_class($result);
115
+}
116
+?>
114 117
                             <?php endif; ?>
115 118
                         <?php endforeach; ?>
116
-                    <?php else: ?>
119
+                    <?php else {
120
+    : ?>
117 121
 
118 122
 
119 123
                         <div class="panel panel-default">
120 124
                             <div class="panel-body">
121
-                                <p><strong><?= Yii::t('SearchModule.views_search_index', 'Your search returned no matches.'); ?></strong></p>
125
+                                <p><strong><?= Yii::t('SearchModule.views_search_index', 'Your search returned no matches.');
126
+}
127
+?></strong></p>
122 128
                             </div>
123 129
                         </div>
124 130
                     <?php endif; ?>
Please login to merge, or discard this patch.
views/admin/group/members.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
                         'visible' => $isManagerApprovalSetting,
54 54
                         'label' => Yii::t('AdminModule.views_user_index', 'Group Manager'),
55 55
                         'format' => 'raw',
56
-                        'value' => function ($data) use ($group, $actionUrl) {
56
+                        'value' => function($data) use ($group, $actionUrl) {
57 57
                             $isManager = $group->isManager($data);
58 58
                             $yesSelected = ($isManager) ? 'selected' : '';
59 59
                             $noSelected = ($isManager) ? '' : 'selected';
60
-                            $result = '<select class="editableCell form-control" data-action-change="admin.group.setManagerRole" data-action-url="'.$actionUrl.'" data-userid="' . $data->id . '"  data-groupid="' . $group->id . '">';
60
+                            $result = '<select class="editableCell form-control" data-action-change="admin.group.setManagerRole" data-action-url="' . $actionUrl . '" data-userid="' . $data->id . '"  data-groupid="' . $group->id . '">';
61 61
                             $result .= '<option value="0" ' . $noSelected . '>' . Yii::t('AdminModule.views_group_manageGroupUser', 'No') . '</option>';
62 62
                             $result .= '<option value="1" ' . $yesSelected . '>' . Yii::t('AdminModule.views_group_manageGroupUser', 'Yes') . '</option>';
63 63
                             return $result;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                     ],
86 86
                 ],
87 87
             ]
88
-        );?>
88
+        ); ?>
89 89
     </div>
90 90
 </div>
91 91
 <script>		
Please login to merge, or discard this patch.