-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
operation_module_code_clean #3751
Changes from 1 commit
fe16764
7b9b2ee
ca3f5fe
7a2bb34
b98ade0
d48a2de
d5a0f5a
a8405a9
99da9e1
1813038
933e3d0
fd1045d
e39eb25
d983b40
fd9e7d4
d8ad8aa
220849a
107fa24
6ee2d98
e02b973
b3c16cf
1280e6a
ea771b4
2b31556
a22c28e
44a06bb
eb47b95
a5571d4
db46c19
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
use Modules\CodeTrek\Entities\CodeTrekApplicant; | ||
use Modules\CodeTrek\Http\Requests\CodeTrekRequest; | ||
use Modules\CodeTrek\Services\CodeTrekService; | ||
use Modules\Operations\Entities\OfficeLocation; | ||
use Modules\User\Entities\User; | ||
|
||
class CodeTrekController extends Controller | ||
|
@@ -28,7 +27,7 @@ public function index(Request $request) | |
{ | ||
// $this->authorize('view', $applicant); There are some issues in the production, which is why these lines are commented out. | ||
|
||
$centres = OfficeLocation::all(); | ||
// $centres = OfficeLocation::all(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Remove commented code instead of leaving it The commented lines related to - // $centres = OfficeLocation::all();
- // 'centres' => $centres, Also applies to: 43-43 |
||
$mentors = User::all(); | ||
$applicantData = $this->service->getCodeTrekApplicants($request->all()); | ||
$applicants = $applicantData['applicants']; | ||
|
@@ -41,7 +40,7 @@ public function index(Request $request) | |
|
||
return view('codetrek::index', [ | ||
'applicants' => $applicants, | ||
'centres' => $centres, | ||
// 'centres' => $centres, | ||
'mentors' => $mentors, | ||
'reportApplicationCounts' => $reportApplicationCounts, | ||
'statusCounts' => $statusCounts, | ||
|
@@ -78,12 +77,12 @@ public function edit(CodeTrekApplicant $applicant) | |
{ | ||
// $this->authorize('update', $applicant); There are some issues in the production, which is why these lines are commented out. | ||
|
||
$centres = OfficeLocation::all(); | ||
// $centres = OfficeLocation::all(); | ||
|
||
$mentors = User::all(); | ||
$this->service->edit($applicant); | ||
|
||
return view('codetrek::edit', ['applicant' => $applicant, 'centres' => $centres, 'mentors' => $mentors]); | ||
return view('codetrek::edit', ['applicant' => $applicant, 'mentors' => $mentors]); | ||
} | ||
public function evaluate(CodeTrekApplicant $applicant) | ||
{ | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Remove commented-out code instead of keeping it.
Since we're removing the office_location dependencies as per PR objectives, we should remove this commented-out code entirely rather than keeping it. Commented-out code creates technical debt and can confuse future developers.
Apply this diff: