diff --git a/app/Http/Controllers/Api/CalculatorController.php b/app/Http/Controllers/Api/CalculatorController.php index 96dfa79..73065e8 100644 --- a/app/Http/Controllers/Api/CalculatorController.php +++ b/app/Http/Controllers/Api/CalculatorController.php @@ -9,7 +9,6 @@ use App\Models\EntranceExamination; use App\Models\Faculty; use Illuminate\Http\Request; - class CalculatorController extends Controller { public function findDirectionFromSubjects(Request $request) @@ -24,8 +23,7 @@ class CalculatorController extends Controller ->map(function ($direction) { return $direction->map(fn($item) => $item['subject_id']); }) - ->filter(fn($direction) => count($direction) <= $countUserSubjects) - ->keys(); + ->filter(fn($direction) => count($direction) <= $countUserSubjects)->keys(); $directions = Direction::whereIn('id', $filteredDirectionIds)->get(); @@ -33,7 +31,7 @@ class CalculatorController extends Controller $generateHtml = function ($acc, $direction) { $department = Department::find($direction->department_id); $faculty = Faculty::find($department->faculty_id); - + // phpcs:disable return "{$acc}