Completed
Push — master ( 1dcecf...081e08 )
by Victor
08:54
created
index.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,9 @@  discard block
 block discarded – undo
51 51
 
52 52
 // An aggregate function for arrays representing fractions with the same denominator.
53 53
 $agg = function ($a, $b) {
54
-    if ($a === null && $b === null) return null;
54
+    if ($a === null && $b === null) {
55
+        return null;
56
+    }
55 57
     return [$a[0] + $b[0], $b[1]];
56 58
 };
57 59
 
@@ -198,7 +200,9 @@  discard block
 block discarded – undo
198 200
 };
199 201
 
200 202
 $agg2 = function ($a, $b) {
201
-    if ($a === null && $b === null) return null;
203
+    if ($a === null && $b === null) {
204
+        return null;
205
+    }
202 206
     return [
203 207
         $a[0] + $b[0],
204 208
         $b[1],
Please login to merge, or discard this patch.
src/template.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,14 @@
 block discarded – undo
4 4
         <?php if (count($v) === 2): // Isolated date.?>
5 5
             <div class='bar bar-date bar<?= $k ?>' style='left:<?= $v[0] . ((int)$v[0] !== 0 ? '%' : '') ?>;'
6 6
                  data-title='<?= $v[1] ?>'></div>
7
-        <?php else: ?>
7
+        <?php else {
8
+    : ?>
8 9
             <div class='bar bar-intv bar<?= $k ?> <?= $v[2] ?> <?= strpos($v[5], '*') ? 'striped' : '' ?>'
9 10
                  style='left:<?= $v[0] . ((int)$v[0] !== 0 ? '%' : '') ?>;right:<?= $v[1] . ((int)$v[1] !== 0 ? '%' : '') ?>'
10 11
                  data-title="<?= $v[3] . ' ➔ ' . $v[4] . (isset($v[5]) ? ' : ' . $v[5] : '') ?>">
11 12
             </div>
12
-        <?php endif; ?>
13
+        <?php endif;
14
+}
15
+?>
13 16
     <?php endforeach; ?>
14 17
 </div>
15 18
\ No newline at end of file
Please login to merge, or discard this patch.