@@ -5,8 +5,7 @@ |
||
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | 6 | use Fideloper\Proxy\TrustProxies as Middleware; |
| 7 | 7 | |
| 8 | -class TrustProxies extends Middleware |
|
| 9 | -{ |
|
| 8 | +class TrustProxies extends Middleware { |
|
| 10 | 9 | /** |
| 11 | 10 | * The trusted proxies for this application. |
| 12 | 11 | * |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Cookie\Middleware\EncryptCookies as Middleware; |
| 6 | 6 | |
| 7 | -class EncryptCookies extends Middleware |
|
| 8 | -{ |
|
| 7 | +class EncryptCookies extends Middleware { |
|
| 9 | 8 | /** |
| 10 | 9 | * The names of the cookies that should not be encrypted. |
| 11 | 10 | * |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware; |
| 6 | 6 | |
| 7 | -class VerifyCsrfToken extends Middleware |
|
| 8 | -{ |
|
| 7 | +class VerifyCsrfToken extends Middleware { |
|
| 9 | 8 | /** |
| 10 | 9 | * Indicates whether the XSRF-TOKEN cookie should be set on the response. |
| 11 | 10 | * |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware; |
| 6 | 6 | |
| 7 | -class TrimStrings extends Middleware |
|
| 8 | -{ |
|
| 7 | +class TrimStrings extends Middleware { |
|
| 9 | 8 | /** |
| 10 | 9 | * The names of the attributes that should not be trimmed. |
| 11 | 10 | * |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | 6 | use App\DoctorSpecialization; |
| 7 | 7 | |
| 8 | -class SpecializationController extends Controller |
|
| 9 | -{ |
|
| 8 | +class SpecializationController extends Controller { |
|
| 10 | 9 | /** |
| 11 | 10 | * Display a listing of the resource. |
| 12 | 11 | * |
@@ -51,11 +51,11 @@ discard block |
||
| 51 | 51 | $specialty->name = $request->input('name'); |
| 52 | 52 | $specialty->detail = $request->input('detail'); |
| 53 | 53 | |
| 54 | - if($specialty->save()) { |
|
| 55 | - return redirect (route('specialty.index'))->with('success', 'Spesialisasi telah di tambahkan'); |
|
| 54 | + if ($specialty->save()) { |
|
| 55 | + return redirect(route('specialty.index'))->with('success', 'Spesialisasi telah di tambahkan'); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - return redirect (route('specialty.index'))->with('failed', 'Gagal menambah spesialisasi !'); |
|
| 58 | + return redirect(route('specialty.index'))->with('failed', 'Gagal menambah spesialisasi !'); |
|
| 59 | 59 | |
| 60 | 60 | } |
| 61 | 61 | |
@@ -103,11 +103,11 @@ discard block |
||
| 103 | 103 | $specialty->name = $request->input('name'); |
| 104 | 104 | $specialty->detail = $request->input('detail'); |
| 105 | 105 | |
| 106 | - if($specialty->save()) { |
|
| 107 | - return redirect (route('specialty.index'))->with('success', 'Spesialisasi telah di update'); |
|
| 106 | + if ($specialty->save()) { |
|
| 107 | + return redirect(route('specialty.index'))->with('success', 'Spesialisasi telah di update'); |
|
| 108 | 108 | } |
| 109 | 109 | |
| 110 | - return redirect (route('specialty.edit', $id))->with('failed', 'Gagal memperbaharui spesialisasi !'); |
|
| 110 | + return redirect(route('specialty.edit', $id))->with('failed', 'Gagal memperbaharui spesialisasi !'); |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | public function destroy($id) |
| 120 | 120 | { |
| 121 | 121 | $specialty = DoctorSpecialization::find($id); |
| 122 | - if($specialty->delete()) { |
|
| 122 | + if ($specialty->delete()) { |
|
| 123 | 123 | return redirect(route('specialty.index')); |
| 124 | 124 | } |
| 125 | 125 | } |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | public function indexSearch() |
| 138 | 138 | { |
| 139 | - $specialization = DoctorSpecialization::orderBy('created_at','desc')->orderBy('name', 'asc')->take(6)->get(); |
|
| 139 | + $specialization = DoctorSpecialization::orderBy('created_at', 'desc')->orderBy('name', 'asc')->take(6)->get(); |
|
| 140 | 140 | $data = [ |
| 141 | 141 | 'specialization' => $specialization |
| 142 | 142 | ]; |
@@ -8,8 +8,7 @@ |
||
| 8 | 8 | use App\Hospital; |
| 9 | 9 | use App\City; |
| 10 | 10 | |
| 11 | -class HospitalController extends Controller |
|
| 12 | -{ |
|
| 11 | +class HospitalController extends Controller { |
|
| 13 | 12 | /** |
| 14 | 13 | * Display a listing of the resource. |
| 15 | 14 | * |
@@ -17,12 +17,12 @@ discard block |
||
| 17 | 17 | */ |
| 18 | 18 | public function index() |
| 19 | 19 | { |
| 20 | - $hospital = Hospital::orderBy('city_id','asc')->paginate(10); |
|
| 20 | + $hospital = Hospital::orderBy('city_id', 'asc')->paginate(10); |
|
| 21 | 21 | $data = [ |
| 22 | 22 | 'role' => session('role'), |
| 23 | 23 | 'hospital' => $hospital |
| 24 | 24 | ]; |
| 25 | - return view('pages.hospital')->with('data',$data); |
|
| 25 | + return view('pages.hospital')->with('data', $data); |
|
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
@@ -62,11 +62,11 @@ discard block |
||
| 62 | 62 | $hospital->public_services = $request->input('public_services'); |
| 63 | 63 | $hospital->cover_images_id = 1; |
| 64 | 64 | |
| 65 | - if($hospital->save()) { |
|
| 66 | - return redirect (route('hospital.index'))->with('success', 'Rumah sakit berhasil di tambahkan !'); |
|
| 65 | + if ($hospital->save()) { |
|
| 66 | + return redirect(route('hospital.index'))->with('success', 'Rumah sakit berhasil di tambahkan !'); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - return redirect (route('hospital.index'))->with('failed', 'Gagal menambahkan rumah sakit !'); |
|
| 69 | + return redirect(route('hospital.index'))->with('failed', 'Gagal menambahkan rumah sakit !'); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
@@ -132,11 +132,11 @@ discard block |
||
| 132 | 132 | $hospital->public_services = $request->input('public_services'); |
| 133 | 133 | $hospital->cover_images_id = 1; |
| 134 | 134 | |
| 135 | - if($hospital->save()) { |
|
| 136 | - return redirect (route('hospital.index'))->with('success', 'Rumah sakit berhasil di perbaharui'); |
|
| 135 | + if ($hospital->save()) { |
|
| 136 | + return redirect(route('hospital.index'))->with('success', 'Rumah sakit berhasil di perbaharui'); |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | - return redirect (route('hospital.edit', $id))->with('failed', 'Gagal memperbaharui rumah sakit !'); |
|
| 139 | + return redirect(route('hospital.edit', $id))->with('failed', 'Gagal memperbaharui rumah sakit !'); |
|
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /** |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | $hospital = Hospital::find($id); |
| 151 | 151 | $rooms = $this->deleteRoomsAndRoomDetail($id); |
| 152 | 152 | |
| 153 | - if($hospital->delete() && $rooms) { |
|
| 153 | + if ($hospital->delete() && $rooms) { |
|
| 154 | 154 | return redirect(route('hospital.index')); |
| 155 | 155 | } |
| 156 | 156 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | ->where('hospital_id', '=', $hospital_id) |
| 171 | 171 | ->delete(); |
| 172 | 172 | |
| 173 | - if($delroom && $deldetail) { |
|
| 173 | + if ($delroom && $deldetail) { |
|
| 174 | 174 | return true; |
| 175 | 175 | } |
| 176 | 176 | |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | $rooms = DB::table('rooms') |
| 187 | 187 | ->selectRaw(DB::raw('rooms.*')) |
| 188 | 188 | ->leftJoin('room_details', 'rooms.id', '=', 'room_details.room_id') |
| 189 | - ->where('room_details.hospital_id','=',$hospital_id) |
|
| 189 | + ->where('room_details.hospital_id', '=', $hospital_id) |
|
| 190 | 190 | ->get(); |
| 191 | 191 | |
| 192 | 192 | return $rooms; |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Http\Request; |
| 6 | 6 | |
| 7 | -class ThreadController extends Controller |
|
| 8 | -{ |
|
| 7 | +class ThreadController extends Controller { |
|
| 9 | 8 | /** |
| 10 | 9 | * Display a listing of the resource. |
| 11 | 10 | * |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Illuminate\Foundation\Validation\ValidatesRequests; |
| 8 | 8 | use Illuminate\Foundation\Auth\Access\AuthorizesRequests; |
| 9 | 9 | |
| 10 | -class Controller extends BaseController |
|
| 11 | -{ |
|
| 10 | +class Controller extends BaseController { |
|
| 12 | 11 | use AuthorizesRequests, DispatchesJobs, ValidatesRequests; |
| 13 | 12 | } |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | use App\Http\Controllers\Controller; |
| 6 | 6 | use Illuminate\Foundation\Auth\VerifiesEmails; |
| 7 | 7 | |
| 8 | -class VerificationController extends Controller |
|
| 9 | -{ |
|
| 8 | +class VerificationController extends Controller { |
|
| 10 | 9 | /* |
| 11 | 10 | |-------------------------------------------------------------------------- |
| 12 | 11 | | Email Verification Controller |