Passed
Pull Request — develop (#11)
by
unknown
06:16
created
app/Http/Controllers/GroupController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
         $students = [];
123 123
         $group = 0;
124
-        if (! is_null($membership)) {
124
+        if ( ! is_null($membership)) {
125 125
             $group = $membership->group()->first();
126 126
             $memberships = $group->memberships()->get();
127 127
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
         Auth::student()->leave($group);
194 194
 
195
-        if (! ($group->memberships()->count())) {
195
+        if ( ! ($group->memberships()->count())) {
196 196
             $invitations = Invitation::whereGroupId($group->id)->get();
197 197
 
198 198
             foreach ($invitations as $invitation) {
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/GroupController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
      */
15 15
     public function index()
16 16
     {
17
-        $courses = DB::transaction(function () {
17
+        $courses = DB::transaction(function() {
18 18
             return Course::orderedList()->get();
19 19
         });
20 20
 
21
-        $courses = $courses->groupBy(function ($course) {
21
+        $courses = $courses->groupBy(function($course) {
22 22
             return $course->present()->getOrdinalYear();
23 23
         });
24 24
 
Please login to merge, or discard this patch.