Completed
Push — master ( 0bfc5e...68d7a2 )
by Faiq
18s
created
app/Http/Controllers/AdminController.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@  discard block
 block discarded – undo
9 9
 use App\Admin;
10 10
 use Illuminate\Support\Facades\Storage;
11 11
 
12
-class AdminController extends Controller
13
-{
12
+class AdminController extends Controller {
14 13
     /**
15 14
      * AdminController constructor.
16 15
      */
@@ -243,7 +242,8 @@  discard block
 block discarded – undo
243 242
     /**
244 243
      * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
245 244
      */
246
-    public function destroy() {
245
+    public function destroy()
246
+    {
247 247
         $admin = $this->currentUser();
248 248
 
249 249
         if($admin->delete()) {
Please login to merge, or discard this patch.
app/Http/Controllers/RoomController.php 1 patch
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\Room;
10 10
 
11
-class RoomController extends Controller
12
-{
11
+class RoomController extends Controller {
13 12
     /**
14 13
      * Show the form for creating a new resource.
15 14
      *
Please login to merge, or discard this patch.
app/Http/Kernel.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\Kernel as HttpKernel;
6 6
 
7
-class Kernel extends HttpKernel
8
-{
7
+class Kernel extends HttpKernel {
9 8
     /**
10 9
      * The application's global HTTP middleware stack.
11 10
      *
Please login to merge, or discard this patch.
app/Hospital.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\Database\Eloquent\Model;
6 6
 
7
-class Hospital extends Model
8
-{
7
+class Hospital extends Model {
9 8
     /**
10 9
      * @var string
11 10
      */
Please login to merge, or discard this patch.
app/DoctorDetail.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\Database\Eloquent\Model;
6 6
 
7
-class DoctorDetail extends Model
8
-{
7
+class DoctorDetail extends Model {
9 8
     /**
10 9
      * @var string
11 10
      */
Please login to merge, or discard this patch.
app/Http/Controllers/DocController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
10 10
 use Illuminate\Support\Facades\Hash;
11 11
 use Illuminate\Support\Facades\Storage;
12 12
 
13
-class DocController extends Controller
14
-{
13
+class DocController extends Controller {
15 14
     /**
16 15
      * Create a new controller instance
17 16
      *
Please login to merge, or discard this patch.
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/DoctorSpecialization.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 use Illuminate\Database\Eloquent\Model;
6 6
 
7
-class DoctorSpecialization extends Model
8
-{
7
+class DoctorSpecialization extends Model {
9 8
     /**
10 9
      * @var string
11 10
      */
@@ -29,7 +28,8 @@  discard block
 block discarded – undo
29 28
         'updated_at'
30 29
     ];
31 30
 
32
-    public function doctor() {
31
+    public function doctor()
32
+    {
33 33
         return $this->hasOne('App\Doctor', 'specialization_id');
34 34
     }
35 35
 
Please login to merge, or discard this patch.
app/Http/Controllers/ArticleController.php 1 patch
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@  discard block
 block discarded – undo
7 7
 use Illuminate\Support\Facades\Auth;
8 8
 use App\Articles;
9 9
 
10
-class ArticleController extends Controller
11
-{
10
+class ArticleController extends Controller {
12 11
     /**
13 12
      * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
14 13
      */
@@ -44,13 +43,13 @@  discard block
 block discarded – undo
44 43
             'cover_image' => 'image|nullable|max:3999'
45 44
         ]);
46 45
 
47
-        if($request->hasFile('cover_image')){
46
+        if($request->hasFile('cover_image')) {
48 47
             $filenameWithExt = $request->file('cover_image')->getClientOriginalName();
49 48
             $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);
50 49
             $extension = $request->file('cover_image')->getClientOriginalExtension();
51 50
             $fileNameToStore = $filename.'_'.time().'.'.$extension;
52 51
             $path = $request->file('cover_image')->storeAs('public/cover_images', $fileNameToStore);
53
-        }else {
52
+        } else {
54 53
             $fileNameToStore = 'noimage.jpg';
55 54
         }
56 55
 
@@ -224,7 +223,7 @@  discard block
 block discarded – undo
224 223
 
225 224
         ]);
226 225
 
227
-        if($request->hasFile('cover_image')){
226
+        if($request->hasFile('cover_image')) {
228 227
             $filenameWithExt = $request->file('cover_image')->getClientOriginalName();
229 228
             $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);
230 229
             $extension = $request->file('cover_image')->getClientOriginalExtension();
@@ -236,7 +235,7 @@  discard block
 block discarded – undo
236 235
         $article->category = $request->input('category');
237 236
         $article->title = $request->input('title');
238 237
         $article->content = $request->input('content');
239
-        if($request->hasFile('cover_image')){
238
+        if($request->hasFile('cover_image')) {
240 239
             $article->cover_image = $fileNameToStore;
241 240
         }
242 241
 
@@ -255,7 +254,7 @@  discard block
 block discarded – undo
255 254
     {
256 255
         $article = Articles::find($id);
257 256
 
258
-        if($article->cover_image != 'noimage.jpg'){
257
+        if($article->cover_image != 'noimage.jpg') {
259 258
             Storage::delete('public/cover_images/'.$article->cover_image);
260 259
         }
261 260
 
Please login to merge, or discard this patch.