Passed
Push — master ( 25d1e0...c0a5de )
by Xavier
02:16
created
src/Admin/Controller/AdminController.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,9 @@
 block discarded – undo
33 33
 
34 34
             $res = [];
35 35
             foreach($students as $student) {
36
-                if ($student['uid'][0] != null)
37
-                    $res += [ $student['uid'][0] => $student['displayname'][0] ];
36
+                if ($student['uid'][0] != null) {
37
+                                    $res += [ $student['uid'][0] => $student['displayname'][0] ];
38
+                }
38 39
             }
39 40
 
40 41
             return $this->json($response, $res);
Please login to merge, or discard this patch.