Completed
Branch scrutinizer-patch-1 (02e149)
by Sarah
02:39
created
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/requestMembership.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
                         'success' => 'function(html){
39 39
 				jQuery("#lightbox_requestWorkspace").replaceWith(html);
40 40
 			}',
41
-                    ), array('class' => 'input_button', 'id' => 'requestSubmit'.uniqid()));
41
+                    ), array('class' => 'input_button', 'id' => 'requestSubmit' . uniqid()));
42 42
                     ?>
43 43
 
44 44
                     <?php echo CHtml::link(Yii::t('SpaceModule.widgets_views_requestMembership', 'Cancel'), '#', array('onclick'=>'RequestWorkspacebox.close()', 'class' => 'button', 'style' => 'color: #fff;')); ?>
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/widgets/reorderContent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 			var data = {};
19 19
 			var sortable = ui.item.closest('.<?php echo $containerClassName; ?>');
20 20
 			var items = sortable.find('.<?php echo $sortableItemClassName; ?>');
21
-			<?php foreach($additionalAjaxParams as $name => $value) {
22
-            if($name != null && $name != '' && $value != null && $value != '') { ?>
21
+			<?php foreach ($additionalAjaxParams as $name => $value) {
22
+            if ($name != null && $name != '' && $value != null && $value != '') { ?>
23 23
 			data.<?php echo $name ?> = '<?php echo $value ?>';	
24 24
 			<?php } } ?>
25 25
 			data.items = [];
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/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/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.