Passed
Branch master (ccb8e7)
by Sarah
05:57 queued 03:52
created
views/widgets/logo.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,10 @@
 block discarded – undo
22 22
                  id="img-logo"/>
23 23
         </a>
24 24
         <br>
25
-    <?php else: ?>
26
-        <h1 id="app-title" class="animated fadeIn"><a href="<?php echo Yii::$app->homeUrl; ?>"><?php echo Html::encode(Yii::$app->name); ?></a></h1>
25
+    <?php else {
26
+    : ?>
27
+        <h1 id="app-title" class="animated fadeIn"><a href="<?php echo Yii::$app->homeUrl;
28
+}
29
+?>"><?php echo Html::encode(Yii::$app->name); ?></a></h1>
27 30
     <?php endif; ?>
28 31
 <?php endif; ?>
29 32
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     <?php endif; ?>
11 11
     <a class="navbar-brand" style="<?php if ($logo->hasImage()) : ?>display:none;<?php endif; ?> "
12 12
        href="<?php echo Yii::$app->homeUrl; ?>" id="text-logo">
13
-			<!-- <img src="<?php echo $this->theme->getBaseUrl() . '/img/logo.png'; ?>"></img> -->
13
+			<!-- <img src="<?php echo $this->theme->getBaseUrl().'/img/logo.png'; ?>"></img> -->
14 14
 			<?php echo Html::encode(Yii::$app->name); ?>
15 15
     </a>
16 16
 <?php endif; ?>
Please login to merge, or discard this patch.
views/layouts/main.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,8 +119,11 @@
 block discarded – undo
119 119
     <!-- start: show content (and check, if exists a sublayout -->
120 120
     <?php if (isset($this->context->subLayout) && $this->context->subLayout != "") : ?>
121 121
         <?php echo $this->render($this->context->subLayout, array('content' => $content)); ?>
122
-    <?php else: ?>
123
-        <?php echo $content; ?>
122
+    <?php else {
123
+    : ?>
124
+        <?php echo $content;
125
+}
126
+?>
124 127
     <?php endif; ?>
125 128
     <!-- end: show content -->
126 129
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
     <body>
83 83
 	
84
-	<script src="<?php echo $this->theme->getBaseUrl() . '/js/lightbox-plus-jquery.min.js'; ?>"></script>
84
+	<script src="<?php echo $this->theme->getBaseUrl().'/js/lightbox-plus-jquery.min.js'; ?>"></script>
85 85
 	
86 86
     <?php $this->beginBody() ?>
87 87
 	
Please login to merge, or discard this patch.
views/socialshare/widgets/shareLink.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
   <div class="dropdown-menu">
8 8
 	<div class="shareContainer">
9 9
 		<?php
10
-		$option = "
10
+        $option = "
11 11
 			var width = 575,
12 12
 				height = 400,
13 13
 				left = ($(window).width() - width) / 2,
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 				return false;
25 25
 
26 26
 			";
27
-		?>
27
+        ?>
28 28
 		<?= Html::a('<i class="fa fa-facebook" style="font-size:16px;color:#3a5795">&nbsp;</i>', 'https://www.facebook.com/sharer/sharer.php?u=' . urlencode($permalink) . '&description=' . urlencode($object->getContentDescription()),['onclick'=> $option]);?>
29 29
 		<?= Html::a('<i class="fa fa-twitter" style="font-size:16px;color:#55acee">&nbsp;</i>&nbsp;</i>', 'https://twitter.com/intent/tweet?text=' . urlencode($object->getContentDescription()) . '&url=' . urlencode($permalink),['onclick'=> $option]);?>
30 30
 		<?= Html::a('<i class="fa fa-linkedin-square" style="font-size:16px;color:#0177b5"></i>', 'https://www.linkedin.com/shareArticle?summary=&mini=true&source=&title=' . urlencode($object->getContentDescription()) . '&url=' . urlencode($permalink) . '&ro=false', ['onclick'=> $option]);?>
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
 
26 26
 			";
27 27
 		?>
28
-		<?= Html::a('<i class="fa fa-facebook" style="font-size:16px;color:#3a5795">&nbsp;</i>', 'https://www.facebook.com/sharer/sharer.php?u=' . urlencode($permalink) . '&description=' . urlencode($object->getContentDescription()),['onclick'=> $option]);?>
29
-		<?= Html::a('<i class="fa fa-twitter" style="font-size:16px;color:#55acee">&nbsp;</i>&nbsp;</i>', 'https://twitter.com/intent/tweet?text=' . urlencode($object->getContentDescription()) . '&url=' . urlencode($permalink),['onclick'=> $option]);?>
30
-		<?= Html::a('<i class="fa fa-linkedin-square" style="font-size:16px;color:#0177b5"></i>', 'https://www.linkedin.com/shareArticle?summary=&mini=true&source=&title=' . urlencode($object->getContentDescription()) . '&url=' . urlencode($permalink) . '&ro=false', ['onclick'=> $option]);?>
28
+		<?= Html::a('<i class="fa fa-facebook" style="font-size:16px;color:#3a5795">&nbsp;</i>', 'https://www.facebook.com/sharer/sharer.php?u='.urlencode($permalink).'&description='.urlencode($object->getContentDescription()), ['onclick'=> $option]); ?>
29
+		<?= Html::a('<i class="fa fa-twitter" style="font-size:16px;color:#55acee">&nbsp;</i>&nbsp;</i>', 'https://twitter.com/intent/tweet?text='.urlencode($object->getContentDescription()).'&url='.urlencode($permalink), ['onclick'=> $option]); ?>
30
+		<?= Html::a('<i class="fa fa-linkedin-square" style="font-size:16px;color:#0177b5"></i>', 'https://www.linkedin.com/shareArticle?summary=&mini=true&source=&title='.urlencode($object->getContentDescription()).'&url='.urlencode($permalink).'&ro=false', ['onclick'=> $option]); ?>
31 31
 	</div>
32 32
   </div>
33 33
 </div>
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
views/like/widgets/likeLink.php 2 patches
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 (Yii::$app->user->isGuest): ?>
11 11
         <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-heart-o"></i>'), Yii::$app->user->loginUrl, array('data-target' => '#globalModal')); ?>
12
-    <?php else: ?>
13
-        <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $likeUrl, ['style' => 'display:' . ((!$currentUserLiked) ? 'inline' : 'none'), 'class' => 'like likeAnchor', 'data-objectId' => $id]); ?>
12
+    <?php else {
13
+    : ?>
14
+        <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $likeUrl, ['style' => 'display:' . ((!$currentUserLiked) ? 'inline' : 'none'), 'class' => 'like likeAnchor', 'data-objectId' => $id]);
15
+}
16
+?>
14 17
         <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $unlikeUrl, ['style' => 'display:' . (($currentUserLiked) ? 'inline' : 'none'), 'class' => 'unlike likeAnchor', 'data-objectId' => $id]); ?>
15 18
     <?php endif; ?>
16 19
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
     <?php if (Yii::$app->user->isGuest): ?>
11 11
         <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-heart-o"></i>'), Yii::$app->user->loginUrl, array('data-target' => '#globalModal')); ?>
12 12
     <?php else: ?>
13
-        <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $likeUrl, ['style' => 'display:' . ((!$currentUserLiked) ? 'inline' : 'none'), 'class' => 'like likeAnchor', 'data-objectId' => $id]); ?>
14
-        <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $unlikeUrl, ['style' => 'display:' . (($currentUserLiked) ? 'inline' : 'none'), 'class' => 'unlike likeAnchor', 'data-objectId' => $id]); ?>
13
+        <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $likeUrl, ['style' => 'display:'.((!$currentUserLiked) ? 'inline' : 'none'), 'class' => 'like likeAnchor', 'data-objectId' => $id]); ?>
14
+        <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $unlikeUrl, ['style' => 'display:'.(($currentUserLiked) ? 'inline' : 'none'), 'class' => 'unlike likeAnchor', 'data-objectId' => $id]); ?>
15 15
     <?php endif; ?>
16 16
 
17 17
 <?php if (count($likes) > 0) { ?>
Please login to merge, or discard this patch.
views/space/space/_layout.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,10 +14,13 @@
 block discarded – undo
14 14
             <div class="col-md-12 layout-content-container">
15 15
                 <?php echo $content; ?>
16 16
             </div>
17
-        <?php else: ?>
17
+        <?php else {
18
+    : ?>
18 19
             <div class="col-md-4 layout-sidebar-container">
19 20
 				<div class="panel-light no-icons">
20
-					<?php echo \humhub\modules\space\widgets\Menu::widget(['space' => $space]); ?>
21
+					<?php echo \humhub\modules\space\widgets\Menu::widget(['space' => $space]);
22
+}
23
+?>
21 24
 				</div>
22 25
                 <?php
23 26
                 echo \humhub\modules\space\widgets\Sidebar::widget(['space' => $space, 'widgets' => [
Please login to merge, or discard this patch.
views/user/auth/createAccount_success.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
                     <p><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'After activating your account by the administrator, you will receive a notification by email.'); ?></p>
19 19
                     <br/>
20 20
                     <a href="<?php echo Url::home() ?>" class="btn btn-primary"><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'back to home') ?></a>
21
-                <?php else: ?>
22
-                    <p><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'To log in with your new account, click the button below.'); ?></p>
21
+                <?php else {
22
+    : ?>
23
+                    <p><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'To log in with your new account, click the button below.');
24
+}
25
+?></p>
23 26
                     <br/>
24 27
                     <a href="<?php echo Url::home() ?>"
25 28
                        class="btn btn-primary"><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'Go to login page') ?></a>
Please login to merge, or discard this patch.
views/user/layouts/main.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,8 +81,11 @@
 block discarded – undo
81 81
         <!-- start: show content (and check, if exists a sublayout -->
82 82
         <?php if (isset($this->subLayout) && $this->subLayout != "") : ?>
83 83
             <?php echo $this->renderPartial($this->subLayout, array('content' => $content)); ?>
84
-        <?php else: ?>
85
-            <?php echo $content; ?>
84
+        <?php else {
85
+    : ?>
86
+            <?php echo $content;
87
+}
88
+?>
86 89
         <?php endif; ?>
87 90
         <!-- end: show content -->
88 91
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@
 block discarded – undo
64 64
 		<div id="trailer" class="is_overlay">
65 65
 			<div class="is_frame"></div>
66 66
 			<video id="video" width="100%" height="auto" autoplay="autoplay" muted="" loop="loop" preload="auto">
67
-				<source src="<?php echo $this->theme->getBaseUrl() . '/video/intro.mp4'; ?>"></source>
68
-				<source src="<?php echo $this->theme->getBaseUrl() . '/video/intro.webm'; ?>" type="video/webm"></source>
67
+				<source src="<?php echo $this->theme->getBaseUrl().'/video/intro.mp4'; ?>"></source>
68
+				<source src="<?php echo $this->theme->getBaseUrl().'/video/intro.webm'; ?>" type="video/webm"></source>
69 69
 			</video>
70 70
 		</div>
71 71
 		
Please login to merge, or discard this patch.
views/user/profile/_layout.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,10 +12,13 @@
 block discarded – undo
12 12
             <div class="col-md-12 layout-content-container">
13 13
                 <?php echo $content; ?>
14 14
             </div>
15
-        <?php else: ?>
15
+        <?php else {
16
+    : ?>
16 17
 			<div class="col-md-4 layout-sidebar-container">
17 18
 				<div class="panel-light">
18
-					<?= \humhub\modules\user\widgets\ProfileMenu::widget(['user' => $this->context->user]); ?>
19
+					<?= \humhub\modules\user\widgets\ProfileMenu::widget(['user' => $this->context->user]);
20
+}
21
+?>
19 22
                 </div>
20 23
 				<?php
21 24
                 echo \humhub\modules\user\widgets\ProfileSidebar::widget([
Please login to merge, or discard this patch.
views/file/widgets/showFiles.php 2 patches
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,9 @@
 block discarded – undo
23 23
     <ul class="files" style="list-style: none; margin: 0;" id="files-<?php echo $object->getPrimaryKey(); ?>">
24 24
         <?php foreach ($files as $file) : ?>
25 25
             <?php
26
-            if ($file->getMimeBaseType() == "image" && $hideImageFileInfo)
27
-                continue;
26
+            if ($file->getMimeBaseType() == "image" && $hideImageFileInfo) {
27
+                            continue;
28
+            }
28 29
             ?>
29 30
             <li class="mime <?php echo \humhub\libs\MimeHelper::getMimeIconClassByExtension($file->getExtension()); ?>"><a
30 31
                     href="<?php echo $file->getUrl(); ?>" target="_blank"><span
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     <div class="post-files" data-layout="<?php echo $object->getUniqueId(); ?>" data-id="photoset-<?php echo $object->getUniqueId(); ?>">
13 13
         <?php foreach ($files as $file) : ?>
14 14
             <?php if ($file->getMimeBaseType() == "image") : ?>
15
-                <a class="image-grid <?php if (count($files) < 3) { echo "half"; } ?> <?php if (count($files) < 2) { echo "full"; } ?>" data-lightbox="<?php if (count($files) > 0) { echo "image-" . $object->getUniqueId(); } ?>" href="<?php echo $file->getUrl(); ?>#.jpeg">
15
+                <a class="image-grid <?php if (count($files) < 3) { echo "half"; } ?> <?php if (count($files) < 2) { echo "full"; } ?>" data-lightbox="<?php if (count($files) > 0) { echo "image-".$object->getUniqueId(); } ?>" href="<?php echo $file->getUrl(); ?>#.jpeg">
16 16
                     <img src="<?php echo $file->getUrl(); ?>#.jpeg" data-highres="<?php echo $file->getUrl(); ?>#.jpeg">
17 17
                 </a> 
18 18
             <?php endif; ?>
Please login to merge, or discard this patch.