Passed
Pull Request — master (#52)
by
unknown
04:27
created
app/Http/Controllers/DoctorController.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,9 +135,9 @@
 block discarded – undo
135 135
 
136 136
     public function searchDoctor(Request $request)
137 137
     {
138
-        if ($request->nama == null AND $request->location != null){
138
+        if ($request->nama == null and $request->location != null){
139 139
             $doctor = Doctor::where('city_id',$request->location)->orderBy('name','asc')->paginate(5);
140
-        }elseif ($request->location == null AND $request->nama != null){
140
+        }elseif ($request->location == null and $request->nama != null){
141 141
             $doctor = Doctor::where('name','LIKE','%'.$request->nama.'%')->orderBy('name','asc')->paginate(5);
142 142
         }else{
143 143
             $doctor = Doctor::where('name','LIKE','%'.$request->nama.'%')->where('city_id',$request->location)->orderBy('name','asc')->paginate(5);
Please login to merge, or discard this patch.