Passed
Push — feature/add-2fa-support ( f7b805...d20abf )
by Grant
18:01 queued 08:21
created
database/factories/RatingGuideAnswerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 use App\Models\Skill;
6 6
 use App\Models\Criteria;
7 7
 
8
-$factory->define(RatingGuideAnswer::class, function (Faker\Generator $faker) {
8
+$factory->define(RatingGuideAnswer::class, function(Faker\Generator $faker) {
9 9
     return [
10
-        'rating_guide_question_id' => function () {
10
+        'rating_guide_question_id' => function() {
11 11
             return factory(RatingGuideQuestion::class)->create()->id;
12 12
         },
13 13
         'criterion_id' => null,
Please login to merge, or discard this patch.
database/factories/TeamCultureFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 use App\Models\TeamCulture;
6 6
 use App\Models\Manager;
7 7
 
8
-$factory->define(TeamCulture::class, function (Faker $faker) {
8
+$factory->define(TeamCulture::class, function(Faker $faker) {
9 9
     $faker_fr = FakerFactory::create('fr');
10 10
     return [
11 11
         'team_size' => $faker->numberBetween(5, 15),
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         'operating_context:fr' => $faker_fr->paragraph(),
19 19
         'what_we_value:fr' => $faker_fr->paragraph(),
20 20
         'how_we_work:fr' => $faker_fr->paragraph(),
21
-        'manager_id' => function () {
21
+        'manager_id' => function() {
22 22
             return factory(Manager::class)->create()->id;
23 23
         }
24 24
     ];
Please login to merge, or discard this patch.
app/Services/WhichPortal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@
 block discarded – undo
56 56
         if (WhichPortal::isApplicantPortal()) {
57 57
             return $routeName;
58 58
         } elseif (WhichPortal::isManagerPortal()) {
59
-            return 'manager.' . $routeName;
59
+            return 'manager.'.$routeName;
60 60
         } elseif (WhichPortal::isAdminPortal()) {
61
-            return 'admin.' . $routeName;
61
+            return 'admin.'.$routeName;
62 62
         }
63 63
         return $routeName;
64 64
     }
Please login to merge, or discard this patch.
app/Traits/RememberDeviceTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function getRememberDeviceToken()
22 22
     {
23
-        if (! empty($this->getRememberDeviceTokenName())) {
24
-            return (string) $this->{$this->getRememberDeviceTokenName()};
23
+        if (!empty($this->getRememberDeviceTokenName())) {
24
+            return (string)$this->{$this->getRememberDeviceTokenName()};
25 25
         }
26 26
     }
27 27
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function setRememberDeviceToken($value)
35 35
     {
36
-        if (! empty($this->getRememberDeviceTokenName())) {
36
+        if (!empty($this->getRememberDeviceTokenName())) {
37 37
             // Make sure new value is immediately saved to db, as well as to model object.
38 38
             $this->where('id', $this->id)->update([$this->getRememberDeviceTokenName() => $value]);
39 39
             $this->{$this->getRememberDeviceTokenName()} = $value;
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.
app/Http/Controllers/Auth/RecoveryCodeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         if ($valid_codes->contains($recovery_code)) {
70 70
             $authenticator = app(Authenticator::class)->boot($request);
71 71
             $authenticator->login();
72
-            $still_valid_codes = $valid_codes->filter(function ($value) use ($recovery_code) {
72
+            $still_valid_codes = $valid_codes->filter(function($value) use ($recovery_code) {
73 73
                 return $value != $recovery_code;
74 74
             });
75 75
             $user->recovery_codes = $still_valid_codes->toArray();
Please login to merge, or discard this patch.