Passed
Push — feature/add-2fa-support ( f7b805...d20abf )
by Grant
18:01 queued 08:21
created
app/Providers/ViewComposerServiceProvider.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
         View::composer(
66 66
             ['common/relatives','common/reference','common/relatives-projects',
67
-             'common/sample', 'common/skill', 'common/modals/create_reference'],
67
+                'common/sample', 'common/skill', 'common/modals/create_reference'],
68 68
             'App\Http\ViewComposers\RelativeComposer'
69 69
         );
70 70
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         );
64 64
 
65 65
         View::composer(
66
-            ['common/relatives','common/reference','common/relatives-projects',
66
+            ['common/relatives', 'common/reference', 'common/relatives-projects',
67 67
              'common/sample', 'common/skill', 'common/modals/create_reference'],
68 68
             'App\Http\ViewComposers\RelativeComposer'
69 69
         );
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
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
     protected function mapWebRoutes()
56 56
     {
57 57
         Route::middleware('web')
58
-             ->namespace($this->namespace)
59
-             ->group(base_path('routes/web.php'));
58
+                ->namespace($this->namespace)
59
+                ->group(base_path('routes/web.php'));
60 60
     }
61 61
 
62 62
     /**
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     protected function mapApiRoutes()
70 70
     {
71 71
         Route::prefix('api')
72
-             ->middleware('api')
73
-             ->namespace($this->namespace)
74
-             ->group(base_path('routes/api.php'));
72
+                ->middleware('api')
73
+                ->namespace($this->namespace)
74
+                ->group(base_path('routes/api.php'));
75 75
     }
76 76
 }
Please login to merge, or discard this patch.
app/Http/ViewComposers/LangMenuComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         $locale = LaravelLocalization::getCurrentLocale();
20 20
 
21
-        switch($locale) {
21
+        switch ($locale) {
22 22
             case 'en':
23 23
                 $linkLocale = 'fr';
24 24
                 break;
Please login to merge, or discard this patch.
app/Http/ViewComposers/ApplicationTrackerComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
         if (isset($view->getData()['job_application'])) {
31 31
             $job_application = $view->getData()['job_application'];
32 32
             if ($job_application != null && $job_application instanceof JobApplication) {
33
-                foreach($app_tracker['items'] as $key => $value) {
33
+                foreach ($app_tracker['items'] as $key => $value) {
34 34
                     $app_tracker['items'][$key]['status'] = $job_application->getSectionStatus($key);
35 35
                 }
36 36
             }
Please login to merge, or discard this patch.
app/Http/ViewComposers/ApplicantProfileMenuComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $profileMenu['portfolio']['link'] = route('profile.work_samples.edit', $view->getData()['applicant']);
27 27
 
28 28
         //Set active on the proper item
29
-        switch(Route::currentRouteName()) {
29
+        switch (Route::currentRouteName()) {
30 30
             case('profile.about'):
31 31
             case('profile.about.edit'):
32 32
             case('profile.about.update'):
Please login to merge, or discard this patch.
app/Http/Middleware/InitializeUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             // If no profile exists yet create one.
36 36
             // Admins should be given an applicant and manager profile
37 37
             if ($user->isApplicant() ||
38
-                    $user->isAdmin() ) {
38
+                    $user->isAdmin()) {
39 39
                 $applicantProfile = $user->applicant;
40 40
                 if ($applicantProfile === null) {
41 41
                     $applicantProfile = new Applicant();
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 class Authenticate extends Middleware
7 7
 {
8 8
     /**
9
-    * Get the path the user should be redirected to when they are not authenticated.
10
-    *
11
-    * @param  \Illuminate\Http\Request  $request
12
-    * @return string
13
-    */
9
+     * Get the path the user should be redirected to when they are not authenticated.
10
+     *
11
+     * @param  \Illuminate\Http\Request  $request
12
+     * @return string
13
+     */
14 14
     protected function redirectTo($request)
15 15
     {
16 16
         if (WhichPortal::isManagerPortal()) {
Please login to merge, or discard this patch.
app/Http/Middleware/VerifyCsrfToken.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,6 +50,6 @@
 block discarded – undo
50 50
                 )
51 51
             );
52 52
         }
53
-         return $response;
53
+            return $response;
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Api/JobApiController.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * Convert a job poster to the array expected by API requests,
30 30
      * with all criteria,
31 31
      * and with translation arrays in both languages.
32
-    *
32
+     *
33 33
      * @param  \App\Models\JobPoster $job Incoming Job Poster object.
34 34
      * @return mixed[]
35 35
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         $criteria = Criteria::where('job_poster_id', $job->id)->get();
39 39
 
40
-        $toApiArray = function ($model) {
40
+        $toApiArray = function($model) {
41 41
             return array_merge($model->toArray(), $model->getTranslationsArray());
42 42
         };
43 43
         $criteriaTranslated = $criteria->map($toApiArray);
Please login to merge, or discard this patch.