Passed
Push — master ( aeed11...c6540d )
by William
03:07
created
application/blocks/autonav/templates/breadcrumb.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
     
11 11
         foreach ($navItems as $ni) {
12 12
             if ($ni->isCurrent) {
13
-                echo '<a>' . $ni->name . '</a>';
13
+                echo '<a>'.$ni->name.'</a>';
14 14
             } else {
15
-                echo '<a href="' . $ni->url . '" target="' . $ni->target . '">' . $ni->name . '</a> / ';
15
+                echo '<a href="'.$ni->url.'" target="'.$ni->target.'">'.$ni->name.'</a> / ';
16 16
             }
17 17
         }
18 18
     
Please login to merge, or discard this patch.
application/blocks/autonav/templates/Side Navigation/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     <?php foreach ($navItems as $ni) {
10 10
         
11 11
         echo '<li>'; 
12
-        echo '<a href="' . ($ni->level = 1 && $ni->hasSubmenu ? '#' : $ni->url) . '" class="' . ($ni->level = 1 && $ni->hasSubmenu ? 'submenu-button' : $ni->classes) . '">';
12
+        echo '<a href="'.($ni->level = 1 && $ni->hasSubmenu ? '#' : $ni->url).'" class="'.($ni->level = 1 && $ni->hasSubmenu ? 'submenu-button' : $ni->classes).'">';
13 13
        
14 14
         echo $ni->name;
15 15
 
Please login to merge, or discard this patch.
application/blocks/list_files_from_set/templates/table_layout.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -19,16 +19,16 @@  discard block
 block discarded – undo
19 19
         <th><?php echo t('Name'); ?></th>
20 20
         <?php
21 21
             if ($extension == 'brackets') {
22
-                echo '<th id="file">' . t('Type') . '</th>';
22
+                echo '<th id="file">'.t('Type').'</th>';
23 23
             }
24 24
             if ($displaySize) {
25
-                echo '<th id="size">' . t('File Size') . '</th>';
25
+                echo '<th id="size">'.t('File Size').'</th>';
26 26
             }
27 27
             if ($displayDateAdded) {
28
-                echo '<th id="date">' . t('Upload Date') . '</th>';
28
+                echo '<th id="date">'.t('Upload Date').'</th>';
29 29
             }
30 30
             if ($forceDownload) {
31
-                echo '<th id="download">' . t('Download') . '</th>';
31
+                echo '<th id="download">'.t('Download').'</th>';
32 32
             }
33 33
         ?>
34 34
         </thead>
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
                 }
68 68
 
69 69
                 if (str_replace(',', '', $fv->getSize()) >= 1000) {
70
-                    $filesize_IF = $fv->getSize() * 1 . ' MB';
70
+                    $filesize_IF = $fv->getSize() * 1.' MB';
71 71
                 } else {
72
-                    $filesize_IF = round($fv->getSize(), 1) . ' KB';
72
+                    $filesize_IF = round($fv->getSize(), 1).' KB';
73 73
                 }
74 74
             ?>
75 75
 
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
 
83 83
                     <?php
84 84
                     if ($extension == 'brackets') {
85
-                        echo '<td>' . $ext . '</td>';
85
+                        echo '<td>'.$ext.'</td>';
86 86
                     }
87 87
 
88 88
                     if ($displaySize) {
89
-                        echo '<td id="size">&nbsp;' . $filesize_IF;
89
+                        echo '<td id="size">&nbsp;'.$filesize_IF;
90 90
                     } echo '</td>';
91 91
 
92 92
 
@@ -99,13 +99,13 @@  discard block
 block discarded – undo
99 99
                         global $u;
100 100
 
101 101
                         if ($u->getUserName() == 'david') {
102
-                            echo '<td id="date">&nbsp;20' . $newdate['2'] . '/' . $newdate['0'] . '/' . $newdate['1'] . '</td>';
102
+                            echo '<td id="date">&nbsp;20'.$newdate['2'].'/'.$newdate['0'].'/'.$newdate['1'].'</td>';
103 103
                         } else {
104
-                            echo '<td id="date">&nbsp;' . $newdate['1'] . '/' . $newdate['0'] . '/20' . $newdate['2'] . '</td>';
104
+                            echo '<td id="date">&nbsp;'.$newdate['1'].'/'.$newdate['0'].'/20'.$newdate['2'].'</td>';
105 105
                         }
106 106
                     }
107 107
                     if ($forceDownload) {
108
-                        echo '<td id="download"> <a href="' . $url = $f->getForceDownloadURL() . '" style="text-decoration: none"> &nbsp;&nbsp;&nbsp;&nbsp; <i class="fa fa-download"></i> </a> </td>';
108
+                        echo '<td id="download"> <a href="'.$url = $f->getForceDownloadURL().'" style="text-decoration: none"> &nbsp;&nbsp;&nbsp;&nbsp; <i class="fa fa-download"></i> </a> </td>';
109 109
                     }
110 110
                     ?>
111 111
                 </tr>
Please login to merge, or discard this patch.
application/blocks/vivid_simple_accordion/form.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 <?php  print Loader::helper('concrete/ui')->tabs(array(
24 24
     array('pane-items', t('Items'), $addSelected),
25 25
     array('pane-settings', t('Settings'))
26
-));?>
26
+)); ?>
27 27
 </p>
28 28
 <div class="ccm-tab-content" id="ccm-tab-content-pane-items">
29 29
         
@@ -40,15 +40,15 @@  discard block
 block discarded – undo
40 40
 <div class="ccm-tab-content" id="ccm-tab-content-pane-settings">
41 41
            
42 42
     <div class="form-group">                    
43
-        <label class="form-label"><?php  echo t('Use Framework Markup');?></label>
43
+        <label class="form-label"><?php  echo t('Use Framework Markup'); ?></label>
44 44
         <div class="well">
45
-            <?php  echo t('If your theme uses the bootstrap framework, then select that. Otherwise, just choose none');?>
45
+            <?php  echo t('If your theme uses the bootstrap framework, then select that. Otherwise, just choose none'); ?>
46 46
         </div>
47
-        <?php  echo $form->select("framework",array(""=>t("None"), "bootstrap"=>t("Bootstrap")),$framework); ?>                 
47
+        <?php  echo $form->select("framework", array(""=>t("None"), "bootstrap"=>t("Bootstrap")), $framework); ?>                 
48 48
     </div>
49 49
     <div class="form-group">                    
50
-        <label class="form-label"><?php  echo t('Semantic Tag for Title');?></label>
51
-        <?php  echo $form->select("semantic",array("h2"=>t("H2"), "h3"=>t("H3"), "h4"=>t("H4"), "span"=>t("Span"), "paragraph"=>t("Paragraph")),$semantic); ?>                 
50
+        <label class="form-label"><?php  echo t('Semantic Tag for Title'); ?></label>
51
+        <?php  echo $form->select("semantic", array("h2"=>t("H2"), "h3"=>t("H3"), "h4"=>t("H4"), "span"=>t("Span"), "paragraph"=>t("Paragraph")), $semantic); ?>                 
52 52
     </div>    
53 53
         
54 54
 </div>
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
                 <label class="col-xs-3 control-label"><?php echo t('State')?></label>
81 81
                 <div class="col-xs-9">
82 82
                     <select class="form-control" name="state[]">
83
-                        <option value="open" <%= state=='open' ? 'selected' : '' %>><?php  echo t('Open');?></option>
84
-                        <option value="closed" <%= state=='closed' ? 'selected' : '' %>><?php  echo t('Closed');?></option>
83
+                        <option value="open" <%= state=='open' ? 'selected' : '' %>><?php  echo t('Open'); ?></option>
84
+                        <option value="closed" <%= state=='closed' ? 'selected' : '' %>><?php  echo t('Closed'); ?></option>
85 85
                     </select>
86 86
                 </div>
87 87
             </div>     
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         
151 151
         //for each Item, apply the template.
152 152
         <?php  
153
-        if($items) {
153
+        if ($items) {
154 154
             foreach ($items as $item) { 
155 155
         ?>
156 156
         itemsContainer.append(itemTemplate({
Please login to merge, or discard this patch.
application/blocks/vivid_simple_accordion/view.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php  defined('C5_EXECUTE') or die(_("Access Denied.")); 
2
-if(count($items)<1){ ?>
2
+if (count($items) < 1) { ?>
3 3
     <div class="well"><?php echo t('There is no content here.')?></div>
4 4
 <?php  } else { ?>
5 5
 <div class="vivid-simple-accordion" id="vivid-simple-accordion-<?php echo $bID?>">
6
-    <?php  foreach($items as $item){?>
6
+    <?php  foreach ($items as $item) {?>
7 7
 	<a name="<?php echo $item['title']?>"></a>
8 8
     <div class="simple-accordion-group <?php echo $item['state']?>">
9 9
         <div class="simple-accordion-title-shell">
Please login to merge, or discard this patch.
application/blocks/login_logout_link/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php  defined('C5_EXECUTE') or die("Access Denied."); ?>
2 2
 
3 3
 <div class="login-out">
4
-    <a href="<?php  echo $url;?>"><?php  echo h($label)?></a>
4
+    <a href="<?php  echo $url; ?>"><?php  echo h($label)?></a>
5 5
 </div>
Please login to merge, or discard this patch.
application/blocks/file/templates/Bulletin Attachment/view.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 $fp = new Permissions($f);
4 4
 if ($f && $fp->canViewFile()) {
5 5
 	$c = Page::getCurrentPage();
6
-	if($c instanceof Page) {
6
+	if ($c instanceof Page) {
7 7
 		$cID = $c->getCollectionID();
8 8
 	}
9 9
 
Please login to merge, or discard this patch.
application/blocks/file/templates/Bulletin Attachment - No File/view.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 $fp = new Permissions($f);
4 4
 if ($f && $fp->canViewFile()) {
5 5
 	$c = Page::getCurrentPage();
6
-	if($c instanceof Page) {
6
+	if ($c instanceof Page) {
7 7
 		$cID = $c->getCollectionID();
8 8
 	}
9 9
 
Please login to merge, or discard this patch.
application/blocks/file/view.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 $fp = new Permissions($f);
4 4
 if ($f && $fp->canViewFile()) {
5 5
 	$c = Page::getCurrentPage();
6
-	if($c instanceof Page) {
6
+	if ($c instanceof Page) {
7 7
 		$cID = $c->getCollectionID();
8 8
 	}
9 9
 
Please login to merge, or discard this patch.