@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $events['moodle'] = null; |
| 44 | 44 | |
| 45 | 45 | if ($events['all'] != null) { |
| 46 | - usort($events['all'], function ($a, $b) { |
|
| 46 | + usort($events['all'], function($a, $b) { |
|
| 47 | 47 | return $a->eventTime < $b->eventTime; |
| 48 | 48 | }); |
| 49 | 49 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $events = Klass::eventsForUser($id, self::loggedUser()); |
| 131 | 131 | |
| 132 | 132 | if ($events != null) |
| 133 | - usort($events, function($a, $b) {return $a->eventTime < $b->eventTime;}); |
|
| 133 | + usort($events, function($a, $b) {return $a->eventTime < $b->eventTime; }); |
|
| 134 | 134 | |
| 135 | 135 | return $this->render('User/class.twig', [ |
| 136 | 136 | 'class' => $class, |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | return $this->json($res); |
| 166 | - }catch (Exception $e) { |
|
| 166 | + } catch (Exception $e) { |
|
| 167 | 167 | return new Response($e->getMessage(), 404); |
| 168 | 168 | } |
| 169 | 169 | |
@@ -36,9 +36,9 @@ discard block |
||
| 36 | 36 | $students = $this->ldap($filter, ['displayname', 'uid']); |
| 37 | 37 | $res = []; |
| 38 | 38 | |
| 39 | - foreach($students as $student) { |
|
| 39 | + foreach ($students as $student) { |
|
| 40 | 40 | if ($student['uid'][0] != null) |
| 41 | - $res += [ $student['uid'][0] => $student['displayname'][0] ]; |
|
| 41 | + $res += [$student['uid'][0] => $student['displayname'][0]]; |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | return $this->json($res); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public function viewAs(Request $request, String $id) |
| 58 | 58 | { |
| 59 | - $_SESSION['username'] = $_SESSION['phpCAS']['user']; |
|
| 59 | + $_SESSION['username'] = $_SESSION['phpCAS']['user']; |
|
| 60 | 60 | $_SESSION['phpCAS']['user'] = $id; |
| 61 | 61 | return $this->redirectToRoute('home'); |
| 62 | 62 | } |