Completed
Pull Request — dev (#76)
by Sarah
02:44
created
views/admin/module/listPurchases.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
             <div class="col-md-6">
17 17
                 <div class="form-group form-group-search">
18 18
                     <?= Html::textInput("licenceKey", $licenceKey, ["class" => "form-control form-search", "placeholder" => Yii::t('AdminModule.base', 'Add purchased module by licence key')]); ?>
19
-                    <?= Html::submitButton(Yii::t('AdminModule.module_listOnline', 'Register'), ['class' => 'btn btn-default btn-sm form-button-search' , 'data-ui-loader' => ""]); ?>
19
+                    <?= Html::submitButton(Yii::t('AdminModule.module_listOnline', 'Register'), ['class' => 'btn btn-default btn-sm form-button-search', 'data-ui-loader' => ""]); ?>
20 20
                 </div>
21 21
                 <?php if ($message != ""): ?>
22 22
                     <div style="color:<?= ($hasError) ? 'red' : 'green'; ?>"><?= Html::encode($message); ?></div>
Please login to merge, or discard this patch.
views/file/widgets/showFiles.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
                 <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" href="<?= $file->getUrl(); ?>#.jpeg" title="<?= Html::encode($file->file_name) ?>">
17 17
                     <?= $previewImage->render(); ?>
18 18
                 </a>
19
-            <?php elseif(FileHelper::getExtension($file->file_name) == 'mp4'): ?>
19
+            <?php elseif (FileHelper::getExtension($file->file_name) == 'mp4'): ?>
20 20
                 <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" type="video/mp4" href="<?= $file->getUrl(); ?>#.mp4" title="<?= Html::encode($file->file_name) ?>">
21 21
                     <video src="<?= $file->getUrl() ?>" height="130" />
22 22
                 </a>
23
-            <?php elseif(FileHelper::getExtension($file->file_name) == 'ogv'): ?>
23
+            <?php elseif (FileHelper::getExtension($file->file_name) == 'ogv'): ?>
24 24
                 <a data-ui-gallery="<?= "gallery-" . $object->getUniqueId(); ?>" type="video/ogg" href="<?= $file->getUrl(); ?>#.ogv" title="<?= Html::encode($file->file_name) ?>">
25 25
                     <video src="<?= $file->getUrl() ?>" height="130" />
26 26
                 </a>
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     <?= \humhub\modules\file\widgets\FilePreview::widget([
47 47
         'hideImageFileInfo' => $hideImageFileInfo,
48 48
         'model' => $object,
49
-    ]);?>
49
+    ]); ?>
50 50
     
51 51
 </div>
52 52
 <?php endif; ?>
53 53
\ No newline at end of file
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
-]);?>
8 7
\ No newline at end of file
8
+]); ?>
9 9
\ No newline at end of file
Please login to merge, or discard this patch.
views/widgets/loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<div <?= $id ? 'id="'.$id.'"' : ''?> class="loader humhub-ui-loader <?= $cssClass; ?>" <?php if(isset($show) && !$show) : ?> style="display:none;" <?php endif; ?>>
1
+<div <?= $id ? 'id="' . $id . '"' : ''?> class="loader humhub-ui-loader <?= $cssClass; ?>" <?php if (isset($show) && !$show) : ?> style="display:none;" <?php endif; ?>>
2 2
     <div class="sk-spinner sk-spinner-three-bounce">
3 3
         <div class="sk-bounce1"></div>
4 4
         <div class="sk-bounce2"></div>
Please login to merge, or discard this patch.
views/widgets/dataSaved.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <!-- check if flash message exists -->
2
-<?php if(Yii::$app->getSession()->hasFlash('data-saved')): ?>
2
+<?php if (Yii::$app->getSession()->hasFlash('data-saved')): ?>
3 3
 
4 4
     <script type="text/javascript">
5 5
         $(function() {
Please login to merge, or discard this patch.
views/friendship/manage/sent-requests.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
                 'header' => 'Actions',
23 23
                 'class' => 'yii\grid\ActionColumn',
24 24
                 'buttons' => [
25
-                    'update' => function () {
25
+                    'update' => function() {
26 26
                         return;
27 27
                     },
28
-                    'view' => function () {
28
+                    'view' => function() {
29 29
                         return;
30 30
                     },
31 31
                     'delete' => function($url, $model) {
Please login to merge, or discard this patch.
views/comment/widgets/link.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 $commentCount = $this->context->getCommentsCount();
7 7
 $hasComments = ($commentCount > 0);
8
-$commentCountSpan = Html::tag('span', ' ('.$commentCount.')', [
8
+$commentCountSpan = Html::tag('span', ' (' . $commentCount . ')', [
9 9
     'class' => 'comment-count',
10 10
     'data-count' => $commentCount,
11 11
     'style' => ($hasComments) ? null : 'display:none'
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
 <?php if ($mode == \humhub\modules\comment\widgets\CommentLink::MODE_POPUP): ?>
16 16
     <?php $url = Url::to(['/comment/comment/show', 'contentModel' => $objectModel, 'contentId' => $objectId, 'mode' => 'popup']); ?>
17 17
     <a href="#" data-action-click="ui.modal.load" data-action-url="<?= $url ?>">
18
-        <?= Yii::t('CommentModule.widgets_views_link', "Comment").'('.$this->context->getCommentsCount().')' ?>
18
+        <?= Yii::t('CommentModule.widgets_views_link', "Comment") . '(' . $this->context->getCommentsCount() . ')' ?>
19 19
     </a>
20
-<?php elseif(Yii::$app->user->isGuest): ?>
21
-    <?= Html::a(Yii::t('CommentModule.widgets_views_link', "Comment").$commentCountSpan, Yii::$app->user->loginUrl, ['data-target' => '#globalModal']) ?>
20
+<?php elseif (Yii::$app->user->isGuest): ?>
21
+    <?= Html::a(Yii::t('CommentModule.widgets_views_link', "Comment") . $commentCountSpan, Yii::$app->user->loginUrl, ['data-target' => '#globalModal']) ?>
22 22
 <?php else : ?>
23
-    <?= Html::a(Yii::t('CommentModule.widgets_views_link', "Comment").$commentCountSpan, "#",['onClick' => "$('#comment_" . $id . "').slideToggle('fast');$('#newCommentForm_" . $id . "').focus();return false;"]); ?>
23
+    <?= Html::a(Yii::t('CommentModule.widgets_views_link', "Comment") . $commentCountSpan, "#", ['onClick' => "$('#comment_" . $id . "').slideToggle('fast');$('#newCommentForm_" . $id . "').focus();return false;"]); ?>
24 24
 <?php endif; ?>
25 25
\ No newline at end of file
Please login to merge, or discard this patch.
views/comment/widgets/form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             'id' => 'comment_create_upload_' . $id,
25 25
             'progress' => '#comment_create_upload_progress_' . $id,
26 26
             'preview' => '#comment_create_upload_preview_' . $id,
27
-            'dropZone' => '#comment_create_form_'.$id,
27
+            'dropZone' => '#comment_create_form_' . $id,
28 28
             'max' => Yii::$app->getModule('content')->maxAttachedFiles
29 29
         ]);
30 30
         ?>
Please login to merge, or discard this patch.
views/comment/comment/edit.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
     <?=
14 14
 	humhub\widgets\RichtextField::widget([
15
-        'id' => 'comment_input_'.$comment->id,
15
+        'id' => 'comment_input_' . $comment->id,
16 16
         'placeholder' => Yii::t('CommentModule.views_edit', 'Edit your comment...'),
17 17
         'model' => $comment,
18 18
         'attribute' => 'message'
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
         \humhub\modules\file\widgets\UploadButton::widget([
26 26
             'id' => 'comment_upload_' . $comment->id,
27 27
             'model' => $comment,
28
-            'dropZone' => '#comment_'.$comment->id,
29
-            'preview' => '#comment_upload_preview_'.$comment->id,
30
-            'progress' => '#comment_upload_progress_'.$comment->id,
28
+            'dropZone' => '#comment_' . $comment->id,
29
+            'preview' => '#comment_upload_preview_' . $comment->id,
30
+            'progress' => '#comment_upload_progress_' . $comment->id,
31 31
             'max' => Yii::$app->getModule('content')->maxAttachedFiles
32 32
         ]);
33 33
         ?>
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     <?=
49 49
 	\humhub\modules\file\widgets\FilePreview::widget([
50
-        'id' => 'comment_upload_preview_'.$comment->id,
50
+        'id' => 'comment_upload_preview_' . $comment->id,
51 51
         'options' => ['style' => 'margin-top:10px'],
52 52
         'model' => $comment,
53 53
         'edit' => true
Please login to merge, or discard this patch.