Completed
Pull Request — dev (#76)
by Sarah
02:56 queued 32s
created
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.
views/admin/widgets/prerequisitesList.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,9 +8,12 @@
 block discarded – undo
8 8
                         <i class="fa fa-check-circle check-ok animated bounceIn"></i>
9 9
                     <?php elseif ($check['state'] == 'WARNING') : ?>
10 10
                         <i class="fa fa-exclamation-triangle check-warning animated swing"></i>
11
-                    <?php else : ?>
11
+                    <?php else {
12
+    : ?>
12 13
                         <i class="fa fa-minus-circle check-error animated wobble"></i>
13
-                    <?php endif; ?>
14
+                    <?php endif;
15
+}
16
+?>
14 17
 
15 18
                     <strong><?= $check['title']; ?></strong>
16 19
 
Please login to merge, or discard this patch.
views/admin/setting/logs.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
 <?php $this->beginContent('@admin/views/setting/_advancedLayout.php') ?>
8 8
 
9 9
 <p><?= Yii::t('AdminModule.views_setting_logs',
10
-	'Old logs can significantly increase the size of your database while providing little information.') ?>
10
+    'Old logs can significantly increase the size of your database while providing little information.') ?>
11 11
 </p>
12 12
 <p><?= Yii::t('AdminModule.views_setting_logs',
13
-	'Currently there are {count} records in the database dating from {dating}.',
14
-	['count' => $logsCount, 'dating' => $dating])?>
13
+    'Currently there are {count} records in the database dating from {dating}.',
14
+    ['count' => $logsCount, 'dating' => $dating])?>
15 15
 </p>
16 16
 <br>
17 17
 
Please login to merge, or discard this patch.
views/admin/setting/file.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 <div class="form-group">
29 29
     <?= $form->labelEx($model, 'maxFileSize'); ?>
30 30
     <?= $form->textField($model, 'maxFileSize', ['class' => 'form-control', 'readonly' => Setting::IsFixed('maxFileSize', 'file')]); ?>
31
-    <p class="help-block" <?= ($model->maxFileSize > $maxUploadSize) ? 'style="color:'.$this->theme->variable('danger').' !important"' : ''?>>
31
+    <p class="help-block" <?= ($model->maxFileSize > $maxUploadSize) ? 'style="color:' . $this->theme->variable('danger') . ' !important"' : ''?>>
32 32
         <?= Yii::t('AdminModule.views_setting_file', 'PHP reported a maximum of {maxUploadSize} MB', ['{maxUploadSize}' => $maxUploadSizeText]); ?>
33 33
     </p>
34 34
 </div>
Please login to merge, or discard this patch.
views/admin/authentication/authentication_ldap.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,11 @@
 block discarded – undo
23 23
     <?php if ($enabled): ?>
24 24
         <?php if ($errorMessage != ""): ?>
25 25
             <div class="alert alert-danger"><?= Yii::t('AdminModule.views_setting_authentication_ldap', 'Status: Error! (Message: {message})', ['{message}' => $errorMessage]); ?></div>
26
-            <?php else: ?>
27
-            <div class="alert alert-success"><?= Yii::t('AdminModule.views_setting_authentication_ldap', 'Status: OK! ({userCount} Users)', ['{userCount}' => $userCount]); ?></div>
26
+            <?php else {
27
+    : ?>
28
+            <div class="alert alert-success"><?= Yii::t('AdminModule.views_setting_authentication_ldap', 'Status: OK! ({userCount} Users)', ['{userCount}' => $userCount]);
29
+}
30
+?></div>
28 31
             <?php endif; ?>
29 32
         <?php endif; ?>
30 33
 
Please login to merge, or discard this patch.
views/admin/space/index.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,9 @@  discard block
 block discarded – undo
42 42
                 'options' => ['width' => '40px'],
43 43
                 'format' => 'raw',
44 44
                 'value' => function($data) use ($visibilities) {
45
-                    if (isset($visibilities[$data->visibility]))
46
-                        return $visibilities[$data->visibility];
45
+                    if (isset($visibilities[$data->visibility])) {
46
+                                            return $visibilities[$data->visibility];
47
+                    }
47 48
                         return Html::encode($data->visibility);
48 49
                     },
49 50
             ],
@@ -53,8 +54,9 @@  discard block
 block discarded – undo
53 54
                 'filter' => \yii\helpers\Html::activeDropDownList($searchModel, 'join_policy', array_merge(['' => ''], $joinPolicies)),
54 55
                 'format' => 'raw',
55 56
                 'value' => function($data) use ($joinPolicies) {
56
-                    if (isset($joinPolicies[$data->join_policy]))
57
-                        return $joinPolicies[$data->join_policy];
57
+                    if (isset($joinPolicies[$data->join_policy])) {
58
+                                            return $joinPolicies[$data->join_policy];
59
+                    }
58 60
                         return Html::encode($data->join_policy);
59 61
                     },
60 62
             ],
Please login to merge, or discard this patch.
views/admin/user/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
                         'attribute' => 'last_login',
42 42
                         'options' => ['style' => 'width:86px;', 'class' => 'form-control'],
43 43
                     ]),
44
-                    'value' => function ($data) {
44
+                    'value' => function($data) {
45 45
                         return ($data->last_login == NULL) ? Yii::t('AdminModule.views_user_index', 'never') : Yii::$app->formatter->asDate($data->last_login);
46 46
                     }
47 47
                 ],
Please login to merge, or discard this patch.
views/admin/module/info.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
 
19 19
                     <?= \yii\helpers\Markdown::process($content); ?>
20 20
 
21
-                <?php else: ?>
22
-                    <?= $description; ?>
21
+                <?php else {
22
+    : ?>
23
+                    <?= $description;
24
+}
25
+?>
23 26
                     <br>
24 27
                     <br>
25 28
 
Please login to merge, or discard this patch.