Passed
Push — release/1.0.17 ( 79d20b...8e152c )
by Tristan
08:58
created
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.
routes/web.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -480,7 +480,7 @@
 block discarded – undo
480 480
         ->middleware('can:update,jobPoster');
481 481
 
482 482
 
483
-     Route::get('jobs/{jobPoster}/criteria', 'Api\CriteriaController@indexByJob')
483
+        Route::get('jobs/{jobPoster}/criteria', 'Api\CriteriaController@indexByJob')
484 484
         ->where('jobPoster', '[0-9]+')
485 485
         ->middleware('can:view,jobPoster');
486 486
     Route::put('jobs/{jobPoster}/criteria', 'Api\CriteriaController@batchUpdate')
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
         ->name('api.jobs.submit');
495 495
     Route::resource('jobs', 'Api\JobApiController')->only([
496 496
         'show', 'store', 'update'
497
-    ])->names([ // Specify custom names because default names collied with existing routes.
497
+    ])->names([// Specify custom names because default names collied with existing routes.
498 498
         'show' => 'api.jobs.show',
499 499
         'store' => 'api.jobs.store',
500 500
         'update' => 'api.jobs.update'
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
 
503 503
     Route::resource('managers', 'Api\ManagerApiController')->only([
504 504
         'show', 'update'
505
-    ])->names([ // Specify custom names because default names collied with existing routes
505
+    ])->names([// Specify custom names because default names collied with existing routes
506 506
         'show' => 'api.managers.show',
507 507
         'update' => 'api.managers.update'
508 508
     ]);
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/Services/Validation/JobApplicationAnswerValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use Illuminate\Support\Facades\Validator;
8 8
 use Illuminate\Validation\Rule;
9 9
 
10
-class JobApplicationAnswerValidator {
10
+class JobApplicationAnswerValidator{
11 11
 
12 12
     protected $application;
13 13
     protected $questionIds;
Please login to merge, or discard this patch.
app/Models/WorkplacePhoto.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
  * @property \App\Models\WorkplacePhotoCaption $workplace_photo_caption
21 21
  */
22
-class WorkplacePhoto extends BaseModel {
22
+class WorkplacePhoto extends BaseModel{
23 23
 
24 24
     protected $casts = [
25 25
         'image' => 'boolean',
Please login to merge, or discard this patch.
app/Models/WorkEnvironmentTranslation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  *
21 21
  * @property \App\Models\WorkEnvironment $work_environment
22 22
  */
23
-class WorkEnvironmentTranslation extends BaseModel {
23
+class WorkEnvironmentTranslation extends BaseModel{
24 24
 
25 25
     protected $fillable = [
26 26
         'things_to_know'
Please login to merge, or discard this patch.
app/Models/JobPosterQuestionTranslation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * 
21 21
  * @property \App\Models\JobPosterQuestion $job_poster_question
22 22
  */
23
-class JobPosterQuestionTranslation extends BaseModel {
23
+class JobPosterQuestionTranslation extends BaseModel{
24 24
 
25 25
     protected $casts = [
26 26
         'job_poster_question_id' => 'int'
Please login to merge, or discard this patch.
app/Models/ApplicantProfileAnswer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  * @property \App\Models\Applicant $applicant
21 21
  * @property \App\Models\Lookup\ApplicantProfileQuestion $applicant_profile_question
22 22
  */
23
-class ApplicantProfileAnswer extends BaseModel {
23
+class ApplicantProfileAnswer extends BaseModel{
24 24
 
25 25
     protected $casts = [
26 26
         'applicant_id' => 'int',
Please login to merge, or discard this patch.