Passed
Push — master ( 000527...89a5ea )
by William
03:18
created
application/blocks/autonav/templates/breadcrumb.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 if (count($navItems) > 0) {
7 7
     
8 8
         echo '<i class="fa fa-home fa-lg" aria-hidden="true"></i>';
9
-	echo '<span role="navigation" aria-label="breadcrumb">';
9
+    echo '<span role="navigation" aria-label="breadcrumb">';
10 10
     
11 11
         foreach ($navItems as $ni) {
12 12
             if ($ni->isCurrent) {
Please login to merge, or discard this patch.
application/blocks/file/templates/Bulletin Attachment/view.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 $f = $controller->getFileObject();
3 3
 $fp = new Permissions($f);
4 4
 if ($f && $fp->canViewFile()) {
5
-	$c = Page::getCurrentPage();
6
-	if($c instanceof Page) {
7
-		$cID = $c->getCollectionID();
8
-	}
5
+    $c = Page::getCurrentPage();
6
+    if($c instanceof Page) {
7
+        $cID = $c->getCollectionID();
8
+    }
9 9
 
10
-	?>
10
+    ?>
11 11
 	<div class="ccm-block-file">
12 12
 		<a href="<?php echo ($forceDownload ? $f->getForceDownloadURL() : $f->getDownloadURL()); ?>"> <i class="fa fa-paperclip"></i> &nbsp; &nbsp; <?php echo stripslashes($controller->getLinkText()) ?></a>
13 13
 	</div>
Please login to merge, or discard this patch.
application/blocks/file/templates/Bulletin Attachment - No File/view.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@  discard block
 block discarded – undo
2 2
 $f = $controller->getFileObject();
3 3
 $fp = new Permissions($f);
4 4
 if ($f && $fp->canViewFile()) {
5
-	$c = Page::getCurrentPage();
6
-	if($c instanceof Page) {
7
-		$cID = $c->getCollectionID();
8
-	}
5
+    $c = Page::getCurrentPage();
6
+    if($c instanceof Page) {
7
+        $cID = $c->getCollectionID();
8
+    }
9 9
 
10
-	?>
10
+    ?>
11 11
 	<div class="ccm-block-file">
12 12
 		<a href="<?php echo ($forceDownload ? $f->getForceDownloadURL() : $f->getDownloadURL()); ?>"> <i class="fa fa-paperclip"></i> &nbsp; &nbsp; <?php echo stripslashes($controller->getLinkText()) ?></a>
13 13
 	</div>
@@ -16,6 +16,6 @@  discard block
 block discarded – undo
16 16
 <?php }
17 17
 
18 18
 $c = Page::getCurrentPage();
19
- if (!$f && $c->isEditMode()) { ?>
19
+    if (!$f && $c->isEditMode()) { ?>
20 20
     <div class="ccm-edit-mode-disabled-item">There are no attached files.</div>
21 21
 <?php }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
application/blocks/file/view.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@  discard block
 block discarded – undo
2 2
 $f = $controller->getFileObject();
3 3
 $fp = new Permissions($f);
4 4
 if ($f && $fp->canViewFile()) {
5
-	$c = Page::getCurrentPage();
6
-	if($c instanceof Page) {
7
-		$cID = $c->getCollectionID();
8
-	}
5
+    $c = Page::getCurrentPage();
6
+    if($c instanceof Page) {
7
+        $cID = $c->getCollectionID();
8
+    }
9 9
 
10
-	?>
10
+    ?>
11 11
 	<style>
12 12
 		.related-file-block a {
13 13
 			text-decoration: none;
@@ -24,6 +24,6 @@  discard block
 block discarded – undo
24 24
 <?php }
25 25
 
26 26
 $c = Page::getCurrentPage();
27
- if (!$f && $c->isEditMode()) { ?>
27
+    if (!$f && $c->isEditMode()) { ?>
28 28
     <div class="ccm-edit-mode-disabled-item"><?php echo t('Empty File Block.')?></div>
29 29
 <?php }
Please login to merge, or discard this patch.
application/blocks/content/templates/Bulletin Content/view.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2
-	defined('C5_EXECUTE') or die("Access Denied.");
3
-	$c = Page::getCurrentPage();
4
-	if (!$content && is_object($c) && $c->isEditMode()) { ?>
2
+    defined('C5_EXECUTE') or die("Access Denied.");
3
+    $c = Page::getCurrentPage();
4
+    if (!$content && is_object($c) && $c->isEditMode()) { ?>
5 5
 		<div class="ccm-edit-mode-disabled-item"><?php echo t('Empty Content Block.')?></div> 
6 6
 	<?php } else { ?>
7 7
             <div class="bulletin-content"><style>input#unsubscribe, input#subscribe{margin:-89px -20px 0 0 !important;}</style> <?php
8
-		print $content;
9
-		?> </div> <!-- END bulletin-content --> <?php
10
-	}
11 8
\ No newline at end of file
9
+        print $content;
10
+        ?> </div> <!-- END bulletin-content --> <?php
11
+    }
12 12
\ No newline at end of file
Please login to merge, or discard this patch.
application/mail/block_form_submission.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
 $submittedData='';
5 5
 foreach($questionAnswerPairs as $questionAnswerPair){
6
-	$submittedData .= $questionAnswerPair['question']."\r\n".$questionAnswerPair['answerDisplay']."\r\n"."\r\n";
6
+    $submittedData .= $questionAnswerPair['question']."\r\n".$questionAnswerPair['answerDisplay']."\r\n"."\r\n";
7 7
 } 
8 8
 $formDisplayUrl=URL::to('/dashboard/reports/forms') . '?qsid='.$questionSetId;
9 9
 
Please login to merge, or discard this patch.
application/single_pages/account/avatar.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 $save_url = \Concrete\Core\Url\Url::createFromUrl($view->action('save_thumb'));
4 4
 $save_url = $save_url->setQuery(array(
5
-	'ccm_token' => \Core::make('token')->generate('avatar/save_thumb')
5
+    'ccm_token' => \Core::make('token')->generate('avatar/save_thumb')
6 6
 ));
7 7
 ?>
8 8
 
Please login to merge, or discard this patch.
application/single_pages/account/edit_profile.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 
14 14
 	<form method="post" action="<?php echo $view->action('save')?>" enctype="multipart/form-data">
15 15
 	<?php  $attribs = UserAttributeKey::getEditableInProfileList();
16
-	$valt->output('profile_edit');
17
-	?>
16
+    $valt->output('profile_edit');
17
+    ?>
18 18
 	<fieldset>
19 19
 	<legend><?php echo t('Basic Information')?></legend>
20 20
 	<div class="form-group">
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
 		<div class="form-group">
26 26
 			<?php echo  $form->label('uTimezone', t('Time Zone'))?>
27 27
 			<?php echo  $form->select('uTimezone',
28
-				Core::make('helper/date')->getTimezones(),
29
-				($profile->getUserTimezone()?$profile->getUserTimezone():date_default_timezone_get())
30
-		); ?>
28
+                Core::make('helper/date')->getTimezones(),
29
+                ($profile->getUserTimezone()?$profile->getUserTimezone():date_default_timezone_get())
30
+        ); ?>
31 31
 		</div>
32 32
 	<?php  } ?>
33 33
 	<?php  if (is_array($locales) && count($locales)) { ?>
@@ -37,38 +37,38 @@  discard block
 block discarded – undo
37 37
 		</div>
38 38
 	<?php  } ?>
39 39
 	<?php
40
-	if(is_array($attribs) && count($attribs)) {
41
-		$af = Loader::helper('form/attribute');
42
-		$af->setAttributeObject($profile);
43
-		foreach($attribs as $ak) {
44
-			print '<div class="ccm-profile-attribute">';
45
-			print $af->display($ak, $ak->isAttributeKeyRequiredOnProfile());
46
-			print '</div>';
47
-		}
48
-	}
49
-	?>
40
+    if(is_array($attribs) && count($attribs)) {
41
+        $af = Loader::helper('form/attribute');
42
+        $af->setAttributeObject($profile);
43
+        foreach($attribs as $ak) {
44
+            print '<div class="ccm-profile-attribute">';
45
+            print $af->display($ak, $ak->isAttributeKeyRequiredOnProfile());
46
+            print '</div>';
47
+        }
48
+    }
49
+    ?>
50 50
 	</fieldset>
51 51
 	<?php
52
-	$ats = AuthenticationType::getList(true, true);
52
+    $ats = AuthenticationType::getList(true, true);
53 53
 
54 54
     $ats = array_filter($ats, function(AuthenticationType $type) {
55 55
         return $type->hasHook();
56 56
     });
57 57
 
58
-	$count = count($ats);
59
-	if ($count) {
60
-		?>
58
+    $count = count($ats);
59
+    if ($count) {
60
+        ?>
61 61
 		<fieldset>
62 62
 			<legend><?php echo t('Authentication Types')?></legend>
63 63
 			<?php
64
-			foreach ($ats as $at) {
65
-				$at->renderHook();
66
-			}
67
-			?>
64
+            foreach ($ats as $at) {
65
+                $at->renderHook();
66
+            }
67
+            ?>
68 68
 		</fieldset>
69 69
 		<?php
70
-	}
71
-	?>
70
+    }
71
+    ?>
72 72
         <br/>
73 73
 	<fieldset>
74 74
     	<legend><?php echo t('Change Password')?></legend>
Please login to merge, or discard this patch.
application/elements/header.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,11 +67,11 @@
 block discarded – undo
67 67
                         define('IV_SIZE', mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC));
68 68
 
69 69
                         function encrypt ($key, $username) {
70
-                          $iv = mcrypt_create_iv(IV_SIZE, MCRYPT_DEV_URANDOM);
71
-                          $crypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $username, MCRYPT_MODE_CBC, $iv);
72
-                          $combo = $iv . $crypt;
73
-                          $output = base64_encode($iv . $crypt);
74
-                          return $output;
70
+                            $iv = mcrypt_create_iv(IV_SIZE, MCRYPT_DEV_URANDOM);
71
+                            $crypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $username, MCRYPT_MODE_CBC, $iv);
72
+                            $combo = $iv . $crypt;
73
+                            $output = base64_encode($iv . $crypt);
74
+                            return $output;
75 75
                         }
76 76
 
77 77
                         $key = "dnqyypv8y6qcm8n38cvmsuqkevcvmhy2";
Please login to merge, or discard this patch.