Passed
Pull Request — master (#52)
by
unknown
04:27
created
app/Http/Controllers/SpecializationController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
 use App\City;
7 7
 use App\DoctorSpecialization;
8 8
 
9
-class SpecializationController extends Controller
10
-{
9
+class SpecializationController extends Controller {
11 10
     /**
12 11
      * Display a listing of the resource.
13 12
      *
Please login to merge, or discard this patch.
app/Http/Controllers/DoctorController.php 1 patch
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@  discard block
 block discarded – undo
8 8
 use Illuminate\Support\Facades\Hash;
9 9
 
10 10
 
11
-class DoctorController extends Controller
12
-{
11
+class DoctorController extends Controller {
13 12
     /**
14 13
      * Display a listing of the resource.
15 14
      *
@@ -135,11 +134,11 @@  discard block
 block discarded – undo
135 134
 
136 135
     public function searchDoctor(Request $request)
137 136
     {
138
-        if ($request->nama == null AND $request->location != null){
137
+        if ($request->nama == null AND $request->location != null) {
139 138
             $doctor = Doctor::where('city_id',$request->location)->orderBy('name','asc')->paginate(5);
140
-        }elseif ($request->location == null AND $request->nama != null){
139
+        } elseif ($request->location == null AND $request->nama != null) {
141 140
             $doctor = Doctor::where('name','LIKE','%'.$request->nama.'%')->orderBy('name','asc')->paginate(5);
142
-        }else{
141
+        } else {
143 142
             $doctor = Doctor::where('name','LIKE','%'.$request->nama.'%')->where('city_id',$request->location)->orderBy('name','asc')->paginate(5);
144 143
         }
145 144
 
Please login to merge, or discard this patch.