Passed
Push — chore/format-php ( 5ef121 )
by Grant
16:21
created
app/CRUD/TalentCloudCrudTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         // create an instance of the model to be able to get the table name
25 25
         $instance = new static();
26 26
         $conn = DB::connection($instance->getConnectionName());
27
-        $table = Config::get('database.connections.'.Config::get('database.default').'.pr e fix').$instance->getTable();
27
+        $table = Config::get('database.connections.' . Config::get('database.default') . '.pr e fix') . $instance->getTable();
28 28
         // MongoDB columns are alway nullable
29 29
         if ($conn->getConfig()['driver'] === 'mongodb') {
30 30
             return true;
Please login to merge, or discard this patch.
app/Listeners/JobPublished.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         // If job is being modified, only want to log when it goes from unpublished to published
33 33
         if (($job->wasRecentlyCreated && $job->published) ||
34 34
                 (!$job->wasRecentlyCreated && $job->published && !$job->getOriginal('published'))) {
35
-            Log::notice('Job published: job {id='.$job->id.'} published by manager {id='.$job->manager->id.', email='.$job->manager->user->email.'}');
35
+            Log::notice('Job published: job {id=' . $job->id . '} published by manager {id=' . $job->manager->id . ', email=' . $job->manager->user->email . '}');
36 36
         }
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
app/Providers/AuthServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     protected function defineGates(): void
67 67
     {
68
-        Gate::define('view-assessment-plan', function ($user, $jobPoster) {
68
+        Gate::define('view-assessment-plan', function($user, $jobPoster){
69 69
             return $user->isAdmin() ||
70 70
                 $user->isManager() && $jobPoster->manager->user_id === $user->id;
71 71
         });
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     protected function defineGates(): void
67 67
     {
68
-        Gate::define('view-assessment-plan', function ($user, $jobPoster) {
68
+        Gate::define('view-assessment-plan', function ($user, $jobPoster){
69 69
             return $user->isAdmin() ||
70 70
                 $user->isManager() && $jobPoster->manager->user_id === $user->id;
71 71
         });
Please login to merge, or discard this patch.
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/Providers/AppServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function register()
32 32
     {
33
-        $this->app->singleton(WhichPortal::class, function ($app) {
33
+        $this->app->singleton(WhichPortal::class, function($app){
34 34
             return new WhichPortal();
35 35
         });
36 36
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function register()
32 32
     {
33
-        $this->app->singleton(WhichPortal::class, function ($app) {
33
+        $this->app->singleton(WhichPortal::class, function ($app){
34 34
             return new WhichPortal();
35 35
         });
36 36
     }
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
@@ -198,12 +198,12 @@
 block discarded – undo
198 198
                 'logout_link' => route('manager.logout'),
199 199
             ];
200 200
         } elseif (WhichPortal::isAdminPortal()) {
201
-             $loginModals = [
201
+                $loginModals = [
202 202
                 'modals' => Lang::get('common/login_modals'),
203 203
                 'register_link' => route('register'),
204 204
                 'login_link' => backpack_url('login'),
205 205
                 'logout_link' => backpack_url('logout'),
206
-             ];
206
+                ];
207 207
         } else {
208 208
             $loginModals = [
209 209
                 'modals' => Lang::get('common/login_modals'),
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.