Passed
Pull Request — master (#61)
by
unknown
04:07
created
app/Http/Middleware/TrustProxies.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
app/Http/Middleware/EncryptCookies.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
app/Http/Middleware/VerifyCsrfToken.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
app/Http/Middleware/TrimStrings.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
app/Http/Controllers/HospitalController.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
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
     /**
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
         $hospital->public_services = $request->input('public_services');
64 64
         $hospital->cover_images_id = 1;
65 65
 
66
-        if($hospital->save()) {
67
-            return redirect (route('hospital.index'))->with('success', 'Rumah sakit berhasil di tambahkan !');
66
+        if ($hospital->save()) {
67
+            return redirect(route('hospital.index'))->with('success', 'Rumah sakit berhasil di tambahkan !');
68 68
         }
69 69
 
70
-        return redirect (route('hospital.index'))->with('failed', 'Gagal menambahkan rumah sakit !');
70
+        return redirect(route('hospital.index'))->with('failed', 'Gagal menambahkan rumah sakit !');
71 71
     }
72 72
 
73 73
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     public function show($id)
80 80
     {
81 81
         $hospital = Hospital::find($id);
82
-        if(!$hospital) {
82
+        if (!$hospital) {
83 83
             abort(401);
84 84
         }
85 85
         $data = [
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
         $hospital->public_services = $request->input('public_services');
137 137
         $hospital->cover_images_id = 1;
138 138
 
139
-        if($hospital->save()) {
140
-            return redirect (route('hospital.index'))->with('success', 'Rumah sakit berhasil di perbaharui');
139
+        if ($hospital->save()) {
140
+            return redirect(route('hospital.index'))->with('success', 'Rumah sakit berhasil di perbaharui');
141 141
         }
142 142
 
143
-        return redirect (route('hospital.edit', $id))->with('failed', 'Gagal memperbaharui rumah sakit !');
143
+        return redirect(route('hospital.edit', $id))->with('failed', 'Gagal memperbaharui rumah sakit !');
144 144
     }
145 145
 
146 146
     /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $hospital = Hospital::find($id);
155 155
         $rooms = $this->deleteRoomsAndRoomDetail($id);
156 156
 
157
-        if($hospital->delete() && $rooms) {
157
+        if ($hospital->delete() && $rooms) {
158 158
             return redirect(route('hospital.index'));
159 159
         }
160 160
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             ->where('hospital_id', '=', $hospital_id)
175 175
             ->delete();
176 176
 
177
-        if($delroom && $deldetail) {
177
+        if ($delroom && $deldetail) {
178 178
             return true;
179 179
         }
180 180
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
         $rooms = DB::table('rooms')
191 191
             ->selectRaw(DB::raw('rooms.*'))
192 192
             ->leftJoin('room_details', 'rooms.id', '=', 'room_details.room_id')
193
-            ->where('room_details.hospital_id','=',$hospital_id)
193
+            ->where('room_details.hospital_id', '=', $hospital_id)
194 194
             ->get();
195 195
 
196 196
         return $rooms;
Please login to merge, or discard this patch.
app/Http/Controllers/ThreadController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
app/Http/Controllers/Controller.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/VerificationController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/ForgotPasswordController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 use App\Http\Controllers\Controller;
6 6
 use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
7 7
 
8
-class ForgotPasswordController extends Controller
9
-{
8
+class ForgotPasswordController extends Controller {
10 9
     /*
11 10
     |--------------------------------------------------------------------------
12 11
     | Password Reset Controller
Please login to merge, or discard this patch.