aboutsummaryrefslogtreecommitdiff
path: root/model/Relive.php
diff options
context:
space:
mode:
authorMaZderMind2016-12-10 18:24:03 +0100
committerMaZderMind2016-12-10 18:26:34 +0100
commitb137ccc18be2f8addf10b0db5257da8c3767dba9 (patch)
tree188c7e465cba8187ccb696413556c181cf5afb2f /model/Relive.php
parent3de0b86d9c3c82428ed7d1f0e04cec9fa2d0d758 (diff)
repair indentation
Diffstat (limited to '')
-rw-r--r--model/Relive.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/model/Relive.php b/model/Relive.php
index ca32f19..7f0e747 100644
--- a/model/Relive.php
+++ b/model/Relive.php
@@ -34,22 +34,22 @@ class Relive
$mapping = $this->getScheduleToRoomMapping();
- usort($talks, function($a, $b) {
- // first, make sure that live talks are always on top
- if($a['status'] == 'live' && $b['status'] != 'live') {
- return -1;
- } else if($a['status'] != 'live' && $b['status'] == 'live') {
- return 1;
- } else if($a['status'] == 'live' && $b['status'] == 'live') {
- // sort live talks by room
-
- return strcmp($a['room'], $b['room']);
- }
-
- // all other talks get sorted by their name
-
- return strcmp($a['title'], $b['title']);
- });
+ usort($talks, function($a, $b) {
+ // first, make sure that live talks are always on top
+ if($a['status'] == 'live' && $b['status'] != 'live') {
+ return -1;
+ }
+ else if($a['status'] != 'live' && $b['status'] == 'live') {
+ return 1;
+ }
+ else if($a['status'] == 'live' && $b['status'] == 'live') {
+ // sort live talks by room
+ return strcmp($a['room'], $b['room']);
+ }
+
+ // all other talks get sorted by their name
+ return strcmp($a['title'], $b['title']);
+ });
$talks_by_id = array();
foreach ($talks as $talk)