Completed
Push — dev ( 9bccb6...c3a9bc )
by Sarah
01:58
created
views/mail/mail/index.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
 						<?php foreach ($userMessages as $userMessage) : ?>
19 19
 							<?php echo $this->render('_messagePreview', array('userMessage' => $userMessage)); ?>
20 20
 						<?php endforeach; ?>
21
-					<?php else: ?>
22
-						<li class="placeholder"><?php echo Yii::t('MailModule.views_mail_index', 'There are no messages yet.'); ?></li>
21
+					<?php else {
22
+    : ?>
23
+						<li class="placeholder"><?php echo Yii::t('MailModule.views_mail_index', 'There are no messages yet.');
24
+}
25
+?></li>
23 26
 					<?php endif; ?>
24 27
 				</ul>
25 28
 			</div>
Please login to merge, or discard this patch.
views/user/account/connected-accounts.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,11 @@
 block discarded – undo
27 27
                         <?php echo Html::a(Yii::t('UserModule.base', 'Currently in use'), '#', ['class' => 'btn btn-default btn-sm', 'data-method' => 'POST', 'disabled' => 'disabled']); ?>
28 28
                     <?php elseif (in_array($client->getId(), $activeAuthClientIds)) : ?>
29 29
                         <?php echo Html::a(Yii::t('UserModule.base', 'Disconnect account'), ['connected-accounts', 'disconnect' => $client->getId()], ['class' => 'btn btn-danger btn-sm', 'data-method' => 'POST']); ?>
30
-                    <?php else: ?>
31
-                        <?php echo Html::a(Yii::t('UserModule.base', 'Connect account'), Url::to(['/user/auth/external', 'authclient' => $client->getId()]), ['class' => 'btn btn-success  btn-sm']); ?>
30
+                    <?php else {
31
+    : ?>
32
+                        <?php echo Html::a(Yii::t('UserModule.base', 'Connect account'), Url::to(['/user/auth/external', 'authclient' => $client->getId()]), ['class' => 'btn btn-success  btn-sm']);
33
+}
34
+?>
32 35
                     <?php endif; ?>
33 36
                 </td>
34 37
             </tr>
Please login to merge, or discard this patch.
views/user/profile/home.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
     'contentContainer' => $user,
6 6
     'streamAction' => '//user/profile/stream',
7 7
     'messageStreamEmpty' => ($user->permissionManager->can(new \humhub\modules\post\permissions\CreatePost())) ?
8
-            Yii::t('UserModule.views_profile_index', '<b>Your profile stream is still empty</b><br>Get started and post something...') :
9
-            Yii::t('UserModule.views_profile_index', '<b>This profile stream is still empty!</b>'),
8
+            Yii::t('UserModule.views_profile_index', '<b>Your profile stream is still empty</b><br>Get started and post something...') : Yii::t('UserModule.views_profile_index', '<b>This profile stream is still empty!</b>'),
10 9
     'messageStreamEmptyCss' => ($user->permissionManager->can(new \humhub\modules\post\permissions\CreatePost())) ?
11
-            'placeholder-empty-stream' :
12
-            '',
10
+            'placeholder-empty-stream' : '',
13 11
 ));
14 12
 ?>
Please login to merge, or discard this patch.
views/space/widgets/header-.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,11 @@
 block discarded – undo
22 22
 				   data-footer='<button type="button" class="btn btn-primary" data-dismiss="modal"><?php echo Yii::t('SpaceModule.widgets_views_profileHeader', 'Close'); ?></button>'>
23 23
 					   <?php echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 64]); ?>
24 24
 				</a>
25
-			<?php else : ?>
26
-				<?php echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 64]); ?>
25
+			<?php else {
26
+    : ?>
27
+				<?php echo \humhub\modules\space\widgets\Image::widget(['space' => $space, 'width' => 64]);
28
+}
29
+?>
27 30
 			<?php endif; ?>
28 31
 
29 32
 			<!-- check if the current user is the profile owner and can change the images -->
Please login to merge, or discard this patch.
views/widgets/leftNavigation.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,10 @@
 block discarded – undo
12 12
     <?php foreach ($this->context->getItemGroups() as $group) : ?>
13 13
 
14 14
         <?php $items = $this->context->getItems($group['id']); ?>
15
-        <?php if (count($items) == 0) continue; ?>
15
+        <?php if (count($items) == 0) {
16
+    continue;
17
+}
18
+?>
16 19
 
17 20
         <?php if ($group['label'] != "") : ?>
18 21
             <div class="panel-heading"><?php echo $group['label']; ?></div>
Please login to merge, or discard this patch.
views/widgets/dropdownNavigation.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,10 @@
 block discarded – undo
9 9
 <?php foreach ($this->context->getItemGroups() as $group) : ?>
10 10
 
11 11
     <?php $items = $this->context->getItems($group['id']); ?>
12
-    <?php if (count($items) == 0) continue; ?>
12
+    <?php if (count($items) == 0) {
13
+    continue;
14
+}
15
+?>
13 16
 
14 17
     <div class="btn-group dropdown-navigation">
15 18
         <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
Please login to merge, or discard this patch.
views/user/account/_userProfileLayout.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php 
2
- humhub\assets\TabbedFormAsset::register($this);
2
+    humhub\assets\TabbedFormAsset::register($this);
3 3
 ?>
4 4
 
5 5
 <div class="panel-heading">
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/_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.