Passed
Push — feature/add-2fa-support ( 330d32...373a46 )
by Tristan
08:00
created
app/Policies/BasePolicy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
     public function before($user, $ability)
13 13
     {
14 14
         if ($user->isAdmin()) {
15
-            $userText = '{id='.$user->id.'}';
16
-            Log::notice('User '.$userText.' has bypassed policy as an Admin');
15
+            $userText = '{id=' . $user->id . '}';
16
+            Log::notice('User ' . $userText . ' has bypassed policy as an Admin');
17 17
             return true;
18 18
         }
19 19
     }
Please login to merge, or discard this patch.
app/Policies/ApplicationPolicy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $authManager = ($user->isManager() &&
26 26
             $jobApplication->job_poster->manager->user->is($user));
27 27
 
28
-        return $authApplicant||$authManager;
28
+        return $authApplicant || $authManager;
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/Api/CriteriaController.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
 class CriteriaController extends Controller
13 13
 {
14 14
 /**
15
-     * Converts a Criteria to the shape sent and recieved by the api.
16
-     *
17
-     * @param Criteria $model
18
-     * @return void
19
-     */
15
+ * Converts a Criteria to the shape sent and recieved by the api.
16
+ *
17
+ * @param Criteria $model
18
+ * @return void
19
+ */
20 20
     public function toApiArray(Criteria $model)
21 21
     {
22 22
         return array_merge($model->toArray(), $model->getTranslationsArray());
Please login to merge, or discard this patch.
app/Http/Requests/StoreRatingGuideAnswer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         // Ensure the user can make answers, question exists, and user is the owner of the question it answers.
21 21
         if ($this->user()->can('create', RatingGuideAnswer::class)) {
22
-            $questionId = (int) $this->input('rating_guide_question_id');
22
+            $questionId = (int)$this->input('rating_guide_question_id');
23 23
             if ($questionId) {
24 24
                 $question = RatingGuideQuestion::find($questionId);
25 25
                 return $question && $this->user()->can('update', $question);
Please login to merge, or discard this patch.
app/Models/User.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@
 block discarded – undo
304 304
      * Returns a user's full name.
305 305
      *
306 306
      * @return string
307
-    */
307
+     */
308 308
     public function getFullNameAttribute(): string
309 309
     {
310 310
         return $this->first_name . ' ' . $this->last_name;
Please login to merge, or discard this patch.
app/Exceptions/AdminException.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@
 block discarded – undo
52 52
 
53 53
     /**
54 54
      * Override, custom exception doesn't return a status code.
55
-    *
56
-    * @return mixed
57
-    */
55
+     *
56
+     * @return mixed
57
+     */
58 58
     public function getStatusCode()
59 59
     {
60 60
         return 500;
Please login to merge, or discard this patch.
app/Http/Middleware/Google2FA.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
             $remember = $request->cookie($user->getRememberDeviceKey());
24 24
             // If tokens do not match, cookie is no longer valid.
25 25
             if ($remember !== null && $remember !== $user->getRememberDeviceToken()) {
26
-                 Cookie::queue(
27
-                     Cookie::forget($user->getRememberDeviceKey())
28
-                 );
26
+                    Cookie::queue(
27
+                        Cookie::forget($user->getRememberDeviceKey())
28
+                    );
29 29
             }
30 30
 
31 31
             if ($authenticator->isAuthenticated() || ($remember !== null && $remember === $user->getRememberDeviceToken())) {
Please login to merge, or discard this patch.
app/Http/ViewComposers/MenuComposer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -209,13 +209,13 @@
 block discarded – undo
209 209
                 'settings_link' => route('manager.settings.edit'),
210 210
             ];
211 211
         } elseif (WhichPortal::isAdminPortal()) {
212
-             $loginModals = [
212
+                $loginModals = [
213 213
                 'modals' => Lang::get('common/login_modals'),
214 214
                 'register_link' => route('register'),
215 215
                 'login_link' => backpack_url('login'),
216 216
                 'logout_link' => backpack_url('logout'),
217 217
                 'settings_link' => route('settings.edit'),
218
-             ];
218
+                ];
219 219
         } else {
220 220
             $loginModals = [
221 221
                 'modals' => Lang::get('common/login_modals'),
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/TwoFactorController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             $user->email,
21 21
             $secret
22 22
         );
23
-         $profile_url = '';
23
+            $profile_url = '';
24 24
         if (WhichPortal::isApplicantPortal()) {
25 25
             $profile_url = route('settings.edit');
26 26
         } elseif (WhichPortal::isManagerPortal()) {
Please login to merge, or discard this patch.