Passed
Push — master ( 0643ea...01e983 )
by Struan
04:28
created
www/includes/easyparliament/templates/html/mp/error.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
             <p><?= $error ?></p>
8 8
 
9
-        <?php if ( $rep_search_url ) { ?>
9
+        <?php if ($rep_search_url) { ?>
10 10
         </div>
11 11
 
12 12
         <div class="full-page__unit">
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/homepage/featured.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1
-                        <?php if ( $featured['featured'] ) { ?>
1
+                        <?php if ($featured['featured']) { ?>
2 2
                         <h2>In the news</h2>
3
-                        <?php if ( isset($featured['headline']) ) { ?>
3
+                        <?php if (isset($featured['headline'])) { ?>
4 4
                         <h3 class="in-the-news__topic"><a href="<?= $featured['list_url'] ?>"><?= $featured['headline'] ?></a></h3>
5
-                        <?php if ( isset($featured['context']) ) { ?>
5
+                        <?php if (isset($featured['context'])) { ?>
6 6
                         <p class="in-the-news__context"><?= $featured['context'] ?></p>
7 7
                         <?php } ?>
8 8
                         <?php } ?>
@@ -15,21 +15,21 @@  discard block
 block discarded – undo
15 15
                             <p class="meta excerpt__category"><a href="<?= $featured['more_url'] ?>"><?= $featured['desc'] ?></a></p>
16 16
                             <p class="excerpt__statement">
17 17
                                 <q>
18
-                                <?php if ( $featured['child']['speaker'] ) { ?>
18
+                                <?php if ($featured['child']['speaker']) { ?>
19 19
                                 <a href="<?= $featured['child']['speaker']['url'] ?>"><?= $featured['child']['speaker']['name'] ?></a> :
20 20
                                 <?php } ?>
21 21
                                 <?= trim_characters($featured['child']['body'], 0, 200) ?>
22 22
                                 </q>
23 23
                             </p>
24 24
                         </div>
25
-                        <?php if ( count($featured['related']) ) { ?>
25
+                        <?php if (count($featured['related'])) { ?>
26 26
                         <div class="in-the-news__key-events">
27 27
                             <!-- No maximum, but less than 4 looks best -->
28 28
                             <ul class="key-events__list">
29 29
                                 <li>
30 30
                                     <h4>Key events</h4>
31 31
                                 </li>
32
-                                <?php foreach ( $featured['related'] as $related ) { ?>
32
+                                <?php foreach ($featured['related'] as $related) { ?>
33 33
                                  <li>
34 34
                                      <a href="<?= $related['list_url'] ?>"><?= $related['parent']['body'] ?></a>
35 35
                                     <p class="meta"><?= format_date($related['hdate'], SHORTDATEFORMAT) ?></p>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/section/_business_list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
         <div class="business-section__primary">
2 2
             <ul class="business-list">
3
-              <?php foreach ( $data as $item ) { ?>
3
+              <?php foreach ($data as $item) { ?>
4 4
                 <li>
5 5
                     <?php include '_business_list_item.php'; ?>
6 6
                 </li>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/section/year.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,20 +8,20 @@
 block discarded – undo
8 8
         </div>
9 9
         <div class="business-section__solo">
10 10
             <div class="calendar__controls">
11
-                <?php if ( isset( $prev ) ) { ?>
11
+                <?php if (isset($prev)) { ?>
12 12
                 <a href="<?= $prev['url'] ?>" class="calendar__controls__previous">&larr; <?= $prev['title'] ?></a>
13 13
                 <?php } else { ?>
14 14
                 <span class="calendar__controls__previous"></span>
15 15
                 <?php } ?>
16 16
                 <span class="calendar__controls__current"><?= $year ?></span>
17
-                <?php if ( isset( $next ) ) { ?>
17
+                <?php if (isset($next)) { ?>
18 18
                 <a href="<?= $next['url'] ?>" class="calendar__controls__next"><?= $next['title'] ?> &rarr;</a>
19 19
                 <?php } else { ?>
20 20
                 <span class="calendar__controls__next"></span>
21 21
                 <?php } ?>
22 22
             </div>
23
-            <?php if ( isset($years) ) {
24
-                foreach ( $years as $year => $months ) { ?>
23
+            <?php if (isset($years)) {
24
+                foreach ($years as $year => $months) { ?>
25 25
             <div class="calendar-year">
26 26
                 <?php foreach ($months as $month => $dates) {
27 27
                   include '_calendar.php';
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/section/pbc_index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,14 +22,14 @@
 block discarded – undo
22 22
 
23 23
         <div class="business-section__primary">
24 24
             <ul class="business-list">
25
-                <?php foreach ( $content['data'] as $date => $bills ) { ?>
25
+                <?php foreach ($content['data'] as $date => $bills) { ?>
26 26
                 <li>
27 27
                     <span class="business-list__title">
28 28
                         <h3>
29 29
                             <?= $date ?>
30 30
                         </h3>
31 31
                     </span>
32
-                    <?php foreach ( $bills as $bill ) { ?>
32
+                    <?php foreach ($bills as $bill) { ?>
33 33
                     <p>
34 34
                     <a href="<?= $bill['url'] ?>" class="business-list__title">
35 35
                         <?= $bill['bill'] ?> &ndash; <?= $bill['sitting'] ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/section/_calendar_section.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
2
-            foreach ( $calendar as $year => $months ) {
2
+            foreach ($calendar as $year => $months) {
3 3
                 foreach ($months as $month => $dates) {
4 4
                      include '_calendar.php';
5 5
                 }
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/section/_search.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,17 +10,17 @@
 block discarded – undo
10 10
                         <input type="submit" value="Search" class="button search-section__submit">
11 11
                     </div>
12 12
                 </div>
13
-                <?php if ( isset($search_sections) ) { ?>
14
-                    <?php if ( count($search_sections) == 1 ) { ?>
13
+                <?php if (isset($search_sections)) { ?>
14
+                    <?php if (count($search_sections) == 1) { ?>
15 15
                     <input name="section" value="<?= $search_sections[0]['section'] ?>" type="hidden">
16
-                    <?php } else if ( count($search_sections) > 1 ) { ?>
16
+                    <?php } else if (count($search_sections) > 1) { ?>
17 17
                     <div class="search-section__filters">
18
-                        <?php foreach ( $search_sections as $section ) { ?>
18
+                        <?php foreach ($search_sections as $section) { ?>
19 19
                             <label><input name="section[]" value="<?= $section['section'] ?>" type="checkbox" checked="checked"><?= $section['title'] ?></label>
20 20
                     <?php } ?>
21 21
                     </div>
22 22
                     <?php }
23
-                } else if ( isset($section) ) { ?>
23
+                } else if (isset($section)) { ?>
24 24
                 <input name="section" value="<?= $section ?>" type="hidden">
25 25
                 <?php } ?>
26 26
             </form>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/sidebar/looking_for.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-    <?php if ( isset($mini_survey) ) {
2
-        if ( $mini_survey['show'] ) { ?>
1
+    <?php if (isset($mini_survey)) {
2
+        if ($mini_survey['show']) { ?>
3 3
                 <form class="minisurvey" method="post" action="<?=OPTION_SURVEY_URL?>">
4 4
                     <p>Did you find what you were looking for?</p>
5 5
                     <input type="hidden" name="sourceidentifier" value="twfy-mini-2">
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
                     <input type="submit" value="Submit answer">
19 19
                 </form>
20
-        <?php } else if ( $mini_survey['answered'] ) { ?>
20
+        <?php } else if ($mini_survey['answered']) { ?>
21 21
             <p>Thanks for answering</p>
22 22
         <?php } ?>
23 23
     <?php } ?>
Please login to merge, or discard this patch.
www/includes/easyparliament/templates/html/footer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -84,13 +84,13 @@
 block discarded – undo
84 84
         $db->display_total_duration();
85 85
 
86 86
         $duration = getmicrotime() - STARTTIME;
87
-        twfy_debug ("TIME", "Total time for page: $duration seconds.");
87
+        twfy_debug("TIME", "Total time for page: $duration seconds.");
88 88
         if (!isset($_SERVER['WINDIR'])) {
89 89
             $rusage = getrusage();
90
-            $duration = $rusage['ru_utime.tv_sec']*1000000 + $rusage['ru_utime.tv_usec'] - STARTTIMEU;
91
-            twfy_debug ('TIME', "Total user time: $duration microseconds.");
92
-            $duration = $rusage['ru_stime.tv_sec']*1000000 + $rusage['ru_stime.tv_usec'] - STARTTIMES;
93
-            twfy_debug ('TIME', "Total system time: $duration microseconds.");
90
+            $duration = $rusage['ru_utime.tv_sec'] * 1000000 + $rusage['ru_utime.tv_usec'] - STARTTIMEU;
91
+            twfy_debug('TIME', "Total user time: $duration microseconds.");
92
+            $duration = $rusage['ru_stime.tv_sec'] * 1000000 + $rusage['ru_stime.tv_usec'] - STARTTIMES;
93
+            twfy_debug('TIME', "Total system time: $duration microseconds.");
94 94
         }
95 95
 
96 96
 ?>
Please login to merge, or discard this patch.