Completed
Pull Request — dev (#76)
by Sarah
07:34
created
views/directory/directory/userPosts.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,10 +5,8 @@
 block discarded – undo
5 5
 echo \humhub\modules\stream\widgets\StreamViewer::widget(array(
6 6
     'streamAction' => '//directory/directory/stream',
7 7
     'messageStreamEmpty' => (!Yii::$app->user->isGuest) ?
8
-            Yii::t('DirectoryModule.base', '<b>Nobody wrote something yet.</b><br>Make the beginning and post something...') :
9
-            Yii::t('DirectoryModule.base', '<b>There are no profile posts yet!</b>'),
8
+            Yii::t('DirectoryModule.base', '<b>Nobody wrote something yet.</b><br>Make the beginning and post something...') : Yii::t('DirectoryModule.base', '<b>There are no profile posts yet!</b>'),
10 9
     'messageStreamEmptyCss' => (!Yii::$app->user->isGuest) ?
11
-            'placeholder-empty-stream' :
12
-            '',
10
+            'placeholder-empty-stream' : '',
13 11
 ));
14 12
 ?>
15 13
\ No newline at end of file
Please login to merge, or discard this patch.
views/directory/directory/members.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
     <div class="panel-heading">
19 19
         <?php if ($group === null) : ?>
20 20
             <?= Yii::t('DirectoryModule.base', '<strong>Member</strong> directory'); ?>
21
-        <?php else: ?>
22
-            <?= Yii::t('DirectoryModule.base', '<strong>Group</strong> members - {group}', ['{group}' => Html::encode($group->name)]); ?>
21
+        <?php else {
22
+    : ?>
23
+            <?= Yii::t('DirectoryModule.base', '<strong>Group</strong> members - {group}', ['{group}' => Html::encode($group->name)]);
24
+}
25
+?>
23 26
         <?php endif; ?>
24 27
     </div>
25 28
 
Please login to merge, or discard this patch.
views/directory/widgets/newSpaces.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     <div class="panel-body">
15 15
         <?php foreach ($newSpaces as $space) : ?>
16 16
             <?=
17
-             \humhub\modules\space\widgets\Image::widget([
17
+                \humhub\modules\space\widgets\Image::widget([
18 18
                 'space' => $space,
19 19
                 'width' => 40,
20 20
                 'link' => true,
Please login to merge, or discard this patch.
views/admin/user-profile/editField.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,11 @@
 block discarded – undo
11 11
 
12 12
     <?php if (!$field->isNewRecord) : ?>
13 13
         <h4><?= Yii::t('AdminModule.views_userprofile_editField', 'Edit profile field'); ?></h4>
14
-    <?php else: ?>
15
-        <h4><?= Yii::t('AdminModule.views_userprofile_editField', 'Create new profile field'); ?></h4>
14
+    <?php else {
15
+    : ?>
16
+        <h4><?= Yii::t('AdminModule.views_userprofile_editField', 'Create new profile field');
17
+}
18
+?></h4>
16 19
     <?php endif; ?>
17 20
 
18 21
     <br>
Please login to merge, or discard this patch.
views/admin/user-profile/editCategory.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,11 @@
 block discarded – undo
12 12
 
13 13
     <?php if (!$category->isNewRecord) : ?>
14 14
         <h4><?= Yii::t('AdminModule.views_userprofile_editCategory', 'Edit profile category'); ?></h4>
15
-    <?php else: ?>
16
-        <h4><?= Yii::t('AdminModule.views_userprofile_editCategory', 'Create new profile category'); ?></h4>
15
+    <?php else {
16
+    : ?>
17
+        <h4><?= Yii::t('AdminModule.views_userprofile_editCategory', 'Create new profile category');
18
+}
19
+?></h4>
17 20
     <?php endif; ?>
18 21
     <br>
19 22
 
Please login to merge, or discard this patch.
views/admin/group/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                 'label' => Yii::t('AdminModule.views_group_index', 'Members'),
33 33
                 'format' => 'raw',
34 34
                 'options' => ['style' => 'text-align:center;'],
35
-                'value' => function ($data) {
35
+                'value' => function($data) {
36 36
                     return $data->getGroupUsers()->count();
37 37
                 }
38 38
             ],
Please login to merge, or discard this patch.
views/admin/group/_manageLayout.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 (!$group->isNewRecord) : ?>
11 11
         <h4><?= Yii::t('AdminModule.user', 'Manage group: {groupName}', ['groupName' => $group->name]); ?></h4>
12
-    <?php else: ?>
13
-        <h4><?= Yii::t('AdminModule.user', 'Add new group'); ?></h4>
12
+    <?php else {
13
+    : ?>
14
+        <h4><?= Yii::t('AdminModule.user', 'Add new group');
15
+}
16
+?></h4>
14 17
     <?php endif; ?>
15 18
 </div>
16 19
 
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
 <?php $this->endContent(); ?>
92 92
\ No newline at end of file
Please login to merge, or discard this patch.
views/admin/approval/index.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     </div>
14 14
 
15 15
     <?=
16
-	GridView::widget([
16
+    GridView::widget([
17 17
         'dataProvider' => $dataProvider,
18 18
         'filterModel' => $searchModel,
19 19
         'columns' => [
Please login to merge, or discard this patch.