Completed
Pull Request — dev (#76)
by Sarah
02:56 queued 32s
created
views/notification/widgets/overview.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use yii\helpers\Url;
4 4
 
5 5
 $this->registerJsConfig('notification', [
6
-    'icon' => $this->theme->getBaseUrl().'/ico/notification-o.png',
6
+    'icon' => $this->theme->getBaseUrl() . '/ico/notification-o.png',
7 7
     'loadEntriesUrl' => Url::to(['/notification/list']),
8 8
     'sendDesktopNotifications' => boolval(Yii::$app->notification->getDesktopNoficationSettings(Yii::$app->user->getIdentity())),
9 9
     'text' =>  [
Please login to merge, or discard this patch.
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/search/search/index.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 use yii\helpers\Url;
4 4
 use yii\helpers\Html;
5 5
 use yii\bootstrap\ActiveForm;
6
-
7 6
 use humhub\modules\search\models\forms\SearchForm;
8 7
 use humhub\modules\content\components\ContentActiveRecord;
9 8
 use humhub\modules\content\components\ContentContainerActiveRecord;
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.