| @@ -21,8 +21,8 @@ discard block | ||
| 21 | 21 | */ | 
| 22 | 22 | public function indexByJob(JobPoster $jobPoster) | 
| 23 | 23 |      { | 
| 24 | -          $comments = Comment::where('job_poster_id', $jobPoster->id)->get(); | |
| 25 | - return response()->json(new ResourceCollection($comments)); | |
| 24 | +            $comments = Comment::where('job_poster_id', $jobPoster->id)->get(); | |
| 25 | + return response()->json(new ResourceCollection($comments)); | |
| 26 | 26 | } | 
| 27 | 27 | |
| 28 | 28 | /** | 
| @@ -34,12 +34,12 @@ discard block | ||
| 34 | 34 | */ | 
| 35 | 35 | public function store(StoreComment $request, JobPoster $jobPoster) | 
| 36 | 36 |      { | 
| 37 | - $data = $request->validated(); | |
| 38 | - $comment = new Comment(); | |
| 39 | - $comment->user_id = $request->user()->id; | |
| 40 | - $comment->job_poster_id = $jobPoster->id; | |
| 41 | - $comment->fill($data); | |
| 42 | - $comment->save(); | |
| 43 | - return response()->json(new JsonResource($comment)); | |
| 37 | + $data = $request->validated(); | |
| 38 | + $comment = new Comment(); | |
| 39 | + $comment->user_id = $request->user()->id; | |
| 40 | + $comment->job_poster_id = $jobPoster->id; | |
| 41 | + $comment->fill($data); | |
| 42 | + $comment->save(); | |
| 43 | + return response()->json(new JsonResource($comment)); | |
| 44 | 44 | } | 
| 45 | 45 | } | 
| @@ -947,7 +947,7 @@ | ||
| 947 | 947 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. | 
| 948 | 948 | * @param string $application_step Current step in application. | 
| 949 | 949 | * @return array | 
| 950 | - */ | |
| 950 | + */ | |
| 951 | 951 | public function customBreadcrumbs(JobPoster $jobPoster, string $application_step) | 
| 952 | 952 |      { | 
| 953 | 953 |          $step_lang = Lang::get('applicant/application_template.tracker_label'); | 
| @@ -32,7 +32,7 @@ | ||
| 32 | 32 | * Skill declaration validator constructor. | 
| 33 | 33 | * @param SkillDeclaration $skillDeclaration The skill declaration input data. | 
| 34 | 34 | * @return ValidationValidator | 
| 35 | - */ | |
| 35 | + */ | |
| 36 | 36 | public function validator(SkillDeclaration $skillDeclaration) | 
| 37 | 37 |      { | 
| 38 | 38 | $uniqueSkillRule = new UniqueSkillDeclarationRule($skillDeclaration->skillable->skill_declarations, $skillDeclaration->id); | 
| @@ -24,7 +24,6 @@ | ||
| 24 | 24 | * | 
| 25 | 25 | * @param \Illuminate\Http\Request $request Incoming Request. | 
| 26 | 26 | * @param \App\Models\JobPoster $jobPoster Incoming JobPoster object. | 
| 27 | - | |
| 28 | 27 | * @return \Illuminate\Http\Response | 
| 29 | 28 | */ | 
| 30 | 29 | public function show(Request $request, JobPoster $jobPoster) | 
| @@ -40,7 +40,7 @@ | ||
| 40 | 40 |              'searchLogic' => function ($query, $column, $searchTerm) { | 
| 41 | 41 |                  $query->orWhereHas('user', function ($q) use ($searchTerm) { | 
| 42 | 42 |                      $q->where('first_name', 'ilike', '%'.$searchTerm.'%') | 
| 43 | -                      ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); | |
| 43 | +                        ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); | |
| 44 | 44 | }); | 
| 45 | 45 | } | 
| 46 | 46 | ]); | 
| @@ -29,9 +29,9 @@ discard block | ||
| 29 | 29 | $files = Resource::all(); | 
| 30 | 30 |              foreach ($files as $file) { | 
| 31 | 31 | array_push($resources, [ | 
| 32 | - 'link' => asset(Storage::url($file->file)), | |
| 33 | - 'title' => '', | |
| 34 | - 'text' => $file->name, | |
| 32 | + 'link' => asset(Storage::url($file->file)), | |
| 33 | + 'title' => '', | |
| 34 | + 'text' => $file->name, | |
| 35 | 35 | ]); | 
| 36 | 36 | } | 
| 37 | 37 | |
| @@ -44,11 +44,11 @@ discard block | ||
| 44 | 44 | $portal = WhichPortal::isHrPortal() ? 'hr' : 'manager'; | 
| 45 | 45 | |
| 46 | 46 |          return view('common/resources', [ | 
| 47 | - // Localized strings. | |
| 48 | - 'resources_template' => $resources_template, | |
| 49 | - 'portal' => $portal, | |
| 50 | - // List of resource downloads. | |
| 51 | - 'resources' => $resources, | |
| 47 | + // Localized strings. | |
| 48 | + 'resources_template' => $resources_template, | |
| 49 | + 'portal' => $portal, | |
| 50 | + // List of resource downloads. | |
| 51 | + 'resources' => $resources, | |
| 52 | 52 | ]); | 
| 53 | 53 | } | 
| 54 | 54 | } | 
| @@ -29,7 +29,7 @@ | ||
| 29 | 29 |      { | 
| 30 | 30 | // Validate job application answer. | 
| 31 | 31 | $validatedData = $request->validate([ | 
| 32 | - 'answer' => 'required|nullable|string', | |
| 32 | + 'answer' => 'required|nullable|string', | |
| 33 | 33 | ]); | 
| 34 | 34 | |
| 35 | 35 | // Update existing object with data and save to db. | 
| @@ -536,7 +536,7 @@ | ||
| 536 | 536 | * Attach steps to new application (version 2). | 
| 537 | 537 | * | 
| 538 | 538 | * @return void | 
| 539 | - */ | |
| 539 | + */ | |
| 540 | 540 | public function attachSteps(): void | 
| 541 | 541 |      { | 
| 542 | 542 |          if ($this->touched_application_steps->isEmpty()) { | 
| @@ -15,7 +15,7 @@ | ||
| 15 | 15 | * | 
| 16 | 16 | * @param \App\Models\JobApplication $application Incoming Application object. | 
| 17 | 17 | * @return \Illuminate\Http\Response | 
| 18 | - */ | |
| 18 | + */ | |
| 19 | 19 | public function show(JobApplication $jobApplication, string $requestedStep = null) | 
| 20 | 20 |      { | 
| 21 | 21 | $jobApplicationSteps = $jobApplication->jobApplicationSteps(); |