| @@ -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 | } | 
| @@ -264,10 +264,10 @@ discard block | ||
| 264 | 264 | } | 
| 265 | 265 | |
| 266 | 266 | /** | 
| 267 | - * Check if the user has the specified role. | |
| 268 | - * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'. | |
| 269 | - * @return boolean | |
| 270 | - */ | |
| 267 | + * Check if the user has the specified role. | |
| 268 | + * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'. | |
| 269 | + * @return boolean | |
| 270 | + */ | |
| 271 | 271 | public function hasRole($role) | 
| 272 | 272 |      { | 
| 273 | 273 |          switch ($role) { | 
| @@ -288,8 +288,8 @@ discard block | ||
| 288 | 288 | * Set this user to the specified role. | 
| 289 | 289 | * | 
| 290 | 290 | * @param string $role Must be either 'applicant', 'manager', 'hr_advisor' or 'admin'. | 
| 291 | - * @return void | |
| 292 | - */ | |
| 291 | + * @return void | |
| 292 | + */ | |
| 293 | 293 | public function setRole(string $role): void | 
| 294 | 294 |      { | 
| 295 | 295 |          $this->user_role()->associate(UserRole::where('key', $role)->firstOrFail()); | 
| @@ -29,9 +29,9 @@ discard block | ||
| 29 | 29 | $files = Resource::all(); | 
| 30 | 30 |              foreach ($files as $file) { | 
| 31 | 31 | array_push($resources, [ | 
| 32 | - 'link' => Storage::url($file->file), | |
| 33 | - 'title' => '', | |
| 34 | - 'text' => $file->name, | |
| 32 | + 'link' => 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 | } |