Passed
Push — task/job-index-page ( 35c3e1...5d2876 )
by Yonathan
08:55 queued 11s
created
app/Models/User.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -190,10 +190,10 @@  discard block
 block discarded – undo
190 190
     }
191 191
 
192 192
     /**
193
-    * Check if the user has the specified role.
194
-    * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
195
-    * @return boolean
196
-    */
193
+     * Check if the user has the specified role.
194
+     * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
195
+     * @return boolean
196
+     */
197 197
     public function hasRole($role)
198 198
     {
199 199
         switch ($role) {
@@ -214,8 +214,8 @@  discard block
 block discarded – undo
214 214
      * Set this user to the specified role.
215 215
      *
216 216
      * @param string $role Must be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
217
-    * @return void
218
-    */
217
+     * @return void
218
+     */
219 219
     public function setRole(string $role): void
220 220
     {
221 221
         $this->user_role()->associate(UserRole::where('name', $role)->firstOrFail());
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      * Returns a user's full name.
251 251
      *
252 252
      * @return string
253
-    */
253
+     */
254 254
     public function getFullNameAttribute(): string
255 255
     {
256 256
         return $this->first_name . ' ' . $this->last_name;
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
@@ -238,12 +238,12 @@
 block discarded – undo
238 238
                 'logout_link' => route('hr_advisor.logout'),
239 239
             ];
240 240
         } elseif (WhichPortal::isAdminPortal()) {
241
-             $loginModals = [
241
+                $loginModals = [
242 242
                 'modals' => Lang::get('common/login_modals'),
243 243
                 'register_link' => route('register'),
244 244
                 'login_link' => backpack_url('login'),
245 245
                 'logout_link' => backpack_url('logout'),
246
-             ];
246
+                ];
247 247
         } else {
248 248
             $loginModals = [
249 249
                 'modals' => Lang::get('common/login_modals'),
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.
app/Models/WorkplacePhotoCaption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  * @property \App\Models\WorkEnvironment $work_environment
22 22
  * @property \App\Models\WorkplacePhoto $workplace_photo
23 23
  */
24
-class WorkplacePhotoCaption extends BaseModel {
24
+class WorkplacePhotoCaption extends BaseModel{
25 25
 
26 26
     protected $casts = [
27 27
         'work_environment_id' => 'int',
Please login to merge, or discard this patch.