| @@ -27,7 +27,7 @@ | ||
| 27 | 27 | return $query | 
| 28 | 28 | ->leftJoin( | 
| 29 | 29 | 'seat_hr_corporation_questions', | 
| 30 | -            function ($join) use ($corporation_id) { | |
| 30 | +            function($join) use ($corporation_id) { | |
| 31 | 31 |                  $join->on('seat_hr_questions.id', '=', 'seat_hr_corporation_questions.question_id') | 
| 32 | 32 |                      ->where('seat_hr_corporation_questions.corporation_id', $corporation_id); | 
| 33 | 33 | }) | 
| @@ -20,18 +20,18 @@ discard block | ||
| 20 | 20 |      { | 
| 21 | 21 | return datatables() | 
| 22 | 22 | ->eloquent($query) | 
| 23 | -            ->editColumn('active', function ($row) { | |
| 23 | +            ->editColumn('active', function($row) { | |
| 24 | 24 | $bool = $row->active; | 
| 25 | 25 |                  return view('seat-hr::configuration.corporation_questions.partials.bool', ['bool' => $bool]); | 
| 26 | 26 | }) | 
| 27 | -            ->editColumn('corporation_question_active', function ($row) { | |
| 27 | +            ->editColumn('corporation_question_active', function($row) { | |
| 28 | 28 | // $bool = !is_null($row->id); | 
| 29 | 29 | $bool = $row->corporation_question_active ?? false; | 
| 30 | 30 |                  return view('seat-hr::configuration.corporation_questions.partials.bool', ['bool' => $bool]); | 
| 31 | 31 | }) | 
| 32 | 32 |              ->editColumn('type', fn($row): string => ucwords((string) $row->type)) | 
| 33 | 33 |              ->addColumn('action', fn($row) => view('seat-hr::configuration.corporation_questions.partials.actions', ['row' => $row])) | 
| 34 | -            ->addColumn('debug', function ($row) use ($query) { | |
| 34 | +            ->addColumn('debug', function($row) use ($query) { | |
| 35 | 35 | return $query->toSql(); | 
| 36 | 36 | }); | 
| 37 | 37 | } | 
| @@ -97,6 +97,6 @@ discard block | ||
| 97 | 97 | */ | 
| 98 | 98 | protected function filename(): string | 
| 99 | 99 |      { | 
| 100 | -        return 'CorporationQuestion_' . date('YmdHis'); | |
| 100 | +        return 'CorporationQuestion_'.date('YmdHis'); | |
| 101 | 101 | } | 
| 102 | 102 | } |