From eb7ed9cfb2f3053d8e9bb93087c029703bd48e32 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 1 Jun 2022 11:38:01 +0000 Subject: [PATCH 1/2] Restyled by php-cs-fixer --- app/Http/Controllers/Institution.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Http/Controllers/Institution.php b/app/Http/Controllers/Institution.php index 90202baa..0ded2e0b 100644 --- a/app/Http/Controllers/Institution.php +++ b/app/Http/Controllers/Institution.php @@ -8,10 +8,12 @@ class Institution extends Controller { public function view() { - return view('institutions', - [ + return view( + 'institutions', + [ 'all' => \App\Models\Institution::query()->orderByDesc('institutions.institution')->paginate(25), - ]); + ] + ); } public function manage($joincode) @@ -75,8 +77,7 @@ public function process($joincode, Request $request) $user = \App\Models\User::all()->where('email', $email)->all(); $user->Institution()->associate($id); $user->save(); - } - else { + } else { abort(404, 'User not found'); } return view(route('institution.users', $joincode)); @@ -93,8 +94,7 @@ public function deletedelete($joincode) { $institution = \App\Models\Institution::query()->where('joincode', $joincode)->get('id'); - foreach (\App\Models\User::query()->where('institution_id', $institution)->get('id') as $u) - { + foreach (\App\Models\User::query()->where('institution_id', $institution)->get('id') as $u) { $u->Instituion->dissociate($u); $u->save(); } From f1bd54a87ff805881576332dd7ad5cd34da92762 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 1 Jun 2022 11:38:03 +0000 Subject: [PATCH 2/2] Restyled by whitespace --- resources/views/institutionadduser.blade.php | 2 +- resources/views/institutionmanage.blade.php | 2 +- resources/views/institutionnew.blade.php | 2 +- resources/views/institutions.blade.php | 2 +- resources/views/institutionusers.blade.php | 2 +- resources/views/requestinstitutiondelete.blade.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/views/institutionadduser.blade.php b/resources/views/institutionadduser.blade.php index bc4e9f31..fe775158 100644 --- a/resources/views/institutionadduser.blade.php +++ b/resources/views/institutionadduser.blade.php @@ -105,4 +105,4 @@ class="origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg bg-white - \ No newline at end of file + diff --git a/resources/views/institutionmanage.blade.php b/resources/views/institutionmanage.blade.php index e9952a45..6ac61aa5 100644 --- a/resources/views/institutionmanage.blade.php +++ b/resources/views/institutionmanage.blade.php @@ -157,4 +157,4 @@ class="origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg bg-white - \ No newline at end of file + diff --git a/resources/views/institutionnew.blade.php b/resources/views/institutionnew.blade.php index b234dc94..d30e0f17 100644 --- a/resources/views/institutionnew.blade.php +++ b/resources/views/institutionnew.blade.php @@ -139,4 +139,4 @@ class="origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg bg-white - \ No newline at end of file + diff --git a/resources/views/institutions.blade.php b/resources/views/institutions.blade.php index fefbfdd3..b4cdcf3c 100644 --- a/resources/views/institutions.blade.php +++ b/resources/views/institutions.blade.php @@ -137,4 +137,4 @@ class="origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg bg-white - \ No newline at end of file + diff --git a/resources/views/institutionusers.blade.php b/resources/views/institutionusers.blade.php index fefebbdd..1923659b 100644 --- a/resources/views/institutionusers.blade.php +++ b/resources/views/institutionusers.blade.php @@ -142,4 +142,4 @@ class="origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg bg-white - \ No newline at end of file + diff --git a/resources/views/requestinstitutiondelete.blade.php b/resources/views/requestinstitutiondelete.blade.php index b2bcdb96..8925c59b 100644 --- a/resources/views/requestinstitutiondelete.blade.php +++ b/resources/views/requestinstitutiondelete.blade.php @@ -143,4 +143,4 @@ class="origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg bg-white - \ No newline at end of file +