Passed
Push — master ( 536ce7...e09305 )
by Thomas
07:57
created
app/Models/Period.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,8 +208,8 @@
 block discarded – undo
208 208
                 foreach ($course->enrollments as $enrollment) {
209 209
                     // if a student has no attendance record for the class (event)
210 210
                     $hasNotAttended = $course->attendance->where('student_id', $enrollment->student_id)
211
-                     ->where('event_id', $event->id)
212
-                     ->isEmpty();
211
+                        ->where('event_id', $event->id)
212
+                        ->isEmpty();
213 213
 
214 214
                     // count one and break loop
215 215
                     if ($hasNotAttended) {
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/MyAccountController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -228,8 +228,8 @@
 block discarded – undo
228 228
             $user = Student::where('id', $this->guard()->user()->id)->first();
229 229
 
230 230
             $user
231
-               ->addMedia($request->fileToUpload)
232
-               ->toMediaCollection('profile-picture');
231
+                ->addMedia($request->fileToUpload)
232
+                ->toMediaCollection('profile-picture');
233 233
         }
234 234
 
235 235
         // if the user has been selected for a forced update, move to the next step
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -166,9 +166,9 @@
 block discarded – undo
166 166
         // add photo
167 167
         if ($request->data['userPicture']) {
168 168
             $student
169
-               ->addMediaFromBase64($request->data['userPicture'])
170
-               ->usingFileName('profilePicture.jpg')
171
-               ->toMediaCollection('profile-picture');
169
+                ->addMediaFromBase64($request->data['userPicture'])
170
+                ->usingFileName('profilePicture.jpg')
171
+                ->toMediaCollection('profile-picture');
172 172
 
173 173
             Log::info('Profile picture added to the student profile');
174 174
         }
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ResultCrudController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
                             $q->where('firstname', 'like', '%'.$searchTerm.'%')
59 59
                             ->orWhere('lastname', 'like', '%'.$searchTerm.'%')
60 60
                             ->orWhere('email', 'like', '%'.$searchTerm.'%')
61
-                          ->orWhere('idnumber', 'like', '%'.$searchTerm.'%');
61
+                            ->orWhere('idnumber', 'like', '%'.$searchTerm.'%');
62 62
                         });
63 63
                     });
64 64
                 },
Please login to merge, or discard this patch.