Completed
Push — master ( 1bc696...41d060 )
by Victor
02:48
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
@@ -2,8 +2,11 @@
 block discarded – undo
2 2
     <?php foreach ($vs as $k => $v) : ?>
3 3
         <?php if (count($v) === 2 ): // Isolated date.?>
4 4
             <div class='bar bar-date bar<?= $k; ?>' style='left:<?= $v[0] ?>%;' data-title='<?= $v[1] ?>'></div>
5
-        <?php else: ?>
6
-            <div class='bar bar-intv bar<?= $k; ?> <?= $v[2] ?> <?= strpos($v[5], '*') ? 'striped' : '' ?>'
5
+        <?php else {
6
+    : ?>
7
+            <div class='bar bar-intv bar<?= $k;
8
+}
9
+?> <?= $v[2] ?> <?= strpos($v[5], '*') ? 'striped' : '' ?>'
7 10
                  style='left:<?= $v[0] ?>%;right:<?= $v[1] ?>%'
8 11
                  data-title="<?= $v[3] . ' ➔ ' . $v[4] . (isset($v[5]) ? ' : ' . $v[5] : '') ?>">
9 12
             </div>
Please login to merge, or discard this patch.