Completed
Push — dev ( db2df6...716f17 )
by Sarah
10s
created
views/post/post/edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
     <!-- create contenteditable div for HEditorWidget to place the data -->
11 11
         <?= humhub\widgets\RichtextField::widget([
12
-            'id' => 'post_input_'. $post->id,
12
+            'id' => 'post_input_' . $post->id,
13 13
             'placeholder' => Yii::t('PostModule.views_edit', 'Edit your post...'),
14 14
             'model' => $post,
15 15
             'attribute' => 'message'
Please login to merge, or discard this patch.
views/post/widgets/form.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?= humhub\widgets\RichtextField::widget([
2
-   'id' =>  'contentForm_message',
3
-   'placeholder' => Yii::t("PostModule.widgets_views_postForm", "What's on your mind?"),
2
+    'id' =>  'contentForm_message',
3
+    'placeholder' => Yii::t("PostModule.widgets_views_postForm", "What's on your mind?"),
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."),
Please login to merge, or discard this 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/content/widgets/editLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 ?>
7 7
 
8 8
 <li>
9
-    <?php if($mode === WallEntry::EDIT_MODE_INLINE) : ?>
9
+    <?php if ($mode === WallEntry::EDIT_MODE_INLINE) : ?>
10 10
             <a href="#" class="stream-entry-edit-link" data-action-click="edit" data-action-url="<?= $editUrl ?>">
11 11
                 <i class="fa fa-pencil"></i> <?= Yii::t('ContentModule.widgets_views_editLink', 'Edit') ?>
12 12
             </a>
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/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.