Passed
Push — master ( 3254a3...a20484 )
by William
02:32
created
application/elements/header.php 2 patches
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.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,17 +60,17 @@
 block discarded – undo
60 60
             <?php 
61 61
                 $u = new User();
62 62
                 global $u;
63
-                $u = new User(); if($u->inGroup(Group::getByName('Staff'))){ 
63
+                $u = new User(); if ($u->inGroup(Group::getByName('Staff'))) { 
64 64
 
65
-                    if(!isset($_COOKIE['CI-CONCRETE5'])) {
65
+                    if (!isset($_COOKIE['CI-CONCRETE5'])) {
66 66
 
67 67
                         define('IV_SIZE', mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC));
68 68
 
69
-                        function encrypt ($key, $username) {
69
+                        function encrypt($key, $username) {
70 70
                           $iv = mcrypt_create_iv(IV_SIZE, MCRYPT_DEV_URANDOM);
71 71
                           $crypt = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $username, MCRYPT_MODE_CBC, $iv);
72
-                          $combo = $iv . $crypt;
73
-                          $output = base64_encode($iv . $crypt);
72
+                          $combo = $iv.$crypt;
73
+                          $output = base64_encode($iv.$crypt);
74 74
                           return $output;
75 75
                         }
76 76
 
Please login to merge, or discard this patch.
application/elements/navigation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,13 +124,13 @@
 block discarded – undo
124 124
     <?php
125 125
         $url = $_SERVER['REQUEST_URI'];
126 126
 
127
-        if (strpos($url,'computing-support') !== false) {
127
+        if (strpos($url, 'computing-support') !== false) {
128 128
             $dept_name = 'Computing Support';
129 129
             $dept_url = 'computing-support';
130
-        } elseif (strpos($url,'marketing') !== false) {
130
+        } elseif (strpos($url, 'marketing') !== false) {
131 131
             $dept_name = 'Marketing';
132 132
             $dept_url = 'marketing';
133
-        } elseif (strpos($url,'human-resources') !== false) {
133
+        } elseif (strpos($url, 'human-resources') !== false) {
134 134
             $dept_name = 'Human Resources';
135 135
             $dept_url = 'human-resources';
136 136
         } else {
Please login to merge, or discard this patch.
application/elements/page_types/composer/form/output/form.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@
 block discarded – undo
35 35
 		<?php } ?>
36 36
 		<?php $controls = PageTypeComposerFormLayoutSetControl::getList($cfl);
37 37
 
38
-		foreach($controls as $con) {
39
-			if (is_object($page)) { // we are loading content in
40
-				$con->setPageObject($page);
41
-			}
38
+        foreach($controls as $con) {
39
+            if (is_object($page)) { // we are loading content in
40
+                $con->setPageObject($page);
41
+            }
42 42
             $con->setTargetParentPageID($targetParentPageID);
43 43
             ?>
44 44
 			<?php $con->render(); ?>
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
 <div class="alert alert-info" style="display: none" id="ccm-page-type-composer-form-save-status"></div>
20 20
 
21 21
     <style>.form-group.ccm-composer-url-slug {display:none}</style>
22
-<?php $u = new User(); if($u->inGroup(Group::getByName('Administrators'))){ ?>
22
+<?php $u = new User(); if ($u->inGroup(Group::getByName('Administrators'))) { ?>
23 23
     <style>.form-group.ccm-composer-url-slug {display:block !important}</style>
24 24
 <?php } ?>
25 25
 
26 26
     <input type="hidden" name="ptID" value="<?php echo $pagetype->getPageTypeID()?>" />
27 27
 
28
-<?php foreach($fieldsets as $cfl) { ?>
28
+<?php foreach ($fieldsets as $cfl) { ?>
29 29
 	<fieldset>
30 30
 		<?php if ($cfl->getPageTypeComposerFormLayoutSetDisplayName()) { ?>
31 31
 			<legend><?php echo $cfl->getPageTypeComposerFormLayoutSetDisplayName()?></legend>
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 		<?php } ?>
36 36
 		<?php $controls = PageTypeComposerFormLayoutSetControl::getList($cfl);
37 37
 
38
-		foreach($controls as $con) {
38
+		foreach ($controls as $con) {
39 39
 			if (is_object($page)) { // we are loading content in
40 40
 				$con->setPageObject($page);
41 41
 			}
Please login to merge, or discard this patch.
application/elements/page_types/view.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@
 block discarded – undo
35 35
 		<?php } ?>
36 36
 		<?php $controls = PageTypeComposerFormLayoutSetControl::getList($cfl);
37 37
 
38
-		foreach($controls as $con) {
39
-			if (is_object($page)) { // we are loading content in
40
-				$con->setPageObject($page);
41
-			}
38
+        foreach($controls as $con) {
39
+            if (is_object($page)) { // we are loading content in
40
+                $con->setPageObject($page);
41
+            }
42 42
             $con->setTargetParentPageID($targetParentPageID);
43 43
             ?>
44 44
 			<?php $con->render(); ?>
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@  discard block
 block discarded – undo
19 19
 <div class="alert alert-info" style="display: none" id="ccm-page-type-composer-form-save-status"></div>
20 20
 
21 21
     <style>.form-group.ccm-composer-url-slug {display:none}</style>
22
-<?php $u = new User(); if($u->inGroup(Group::getByName('Administrators'))){ ?>
22
+<?php $u = new User(); if ($u->inGroup(Group::getByName('Administrators'))) { ?>
23 23
     <style>.form-group.ccm-composer-url-slug {display:block !important}</style>
24 24
 <?php } ?>
25 25
 
26 26
     <input type="hidden" name="ptID" value="<?php echo $pagetype->getPageTypeID()?>" />
27 27
 
28
-<?php foreach($fieldsets as $cfl) { ?>
28
+<?php foreach ($fieldsets as $cfl) { ?>
29 29
 	<fieldset>
30 30
 		<?php if ($cfl->getPageTypeComposerFormLayoutSetDisplayName()) { ?>
31 31
 			<legend><?php echo $cfl->getPageTypeComposerFormLayoutSetDisplayName()?></legend>
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 		<?php } ?>
36 36
 		<?php $controls = PageTypeComposerFormLayoutSetControl::getList($cfl);
37 37
 
38
-		foreach($controls as $con) {
38
+		foreach ($controls as $con) {
39 39
 			if (is_object($page)) { // we are loading content in
40 40
 				$con->setPageObject($page);
41 41
 			}
Please login to merge, or discard this patch.
application/elements/logged-in-user.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 global $u;
24 24
 
25 25
 if ($u->isLoggedIn()) {
26
-    echo '<p class="welcome-username">Welcome ' . $u->getUserName() . '</p>';
26
+    echo '<p class="welcome-username">Welcome '.$u->getUserName().'</p>';
27 27
 } else {
28 28
     echo '<p class="welcome-username"><a href="/login">Click here to Login</a></p>';
29 29
 
Please login to merge, or discard this patch.