Passed
Pull Request — master (#56)
by
unknown
04:09
created
app/Http/Controllers/UserController.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 App\Articles;
11 11
 
12 12
 
13
-class UserController extends Controller
14
-{
13
+class UserController extends Controller {
15 14
     /**
16 15
      * Create a new controller instance.
17 16
      *
Please login to merge, or discard this patch.
app/Http/Controllers/DoctorDetailController.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\DoctorDetail;
6 6
 use Illuminate\Http\Request;
7 7
 
8
-class DoctorDetailController extends Controller
9
-{
8
+class DoctorDetailController extends Controller {
10 9
     /**
11 10
      * Display a listing of the resource.
12 11
      *
Please login to merge, or discard this patch.
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/Articles.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@  discard block
 block discarded – undo
5 5
 use App\Doctor;
6 6
 use Illuminate\Database\Eloquent\Model;
7 7
 
8
-class Articles extends Model
9
-{
8
+class Articles extends Model {
10 9
     /**
11 10
      * @var string
12 11
      */
@@ -34,7 +33,8 @@  discard block
 block discarded – undo
34 33
      * @param $id
35 34
      * @return array
36 35
      */
37
-    public function writer() {
36
+    public function writer()
37
+    {
38 38
         $adminId = $this->getAttributeValue('admin_id');
39 39
         $doctorId = $this->getAttributeValue('doctor_id');
40 40
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function cutStr($str)
59 59
     {
60
-        if (strlen($str) > 200){
60
+        if (strlen($str) > 200) {
61 61
             return substr($str,0,200) . "...";
62 62
         }
63 63
         return $str;
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
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
 use App\Admin;
11 11
 use App\Doctor;
12 12
 
13
-class ArticleController extends Controller
14
-{
13
+class ArticleController extends Controller {
15 14
     /**
16 15
      * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
17 16
      */
@@ -47,13 +46,13 @@  discard block
 block discarded – undo
47 46
             'cover_image' => 'image|nullable|max:3999 '
48 47
         ]);
49 48
 
50
-        if($request->hasFile('cover_image')){
49
+        if($request->hasFile('cover_image')) {
51 50
             $filenameWithExt = $request->file('cover_image')->getClientOriginalName();
52 51
             $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);
53 52
             $extension = $request->file('cover_image')->getClientOriginalExtension();
54 53
             $fileNameToStore = $filename.'_'.time().'.'.$extension;
55 54
             $path = $request->file('cover_image')->storeAs('public/cover_images', $fileNameToStore);
56
-        }else {
55
+        } else {
57 56
             $fileNameToStore = 'noimage.jpg';
58 57
         }
59 58
 
@@ -216,7 +215,7 @@  discard block
 block discarded – undo
216 215
 
217 216
         ]);
218 217
 
219
-        if($request->hasFile('cover_image')){
218
+        if($request->hasFile('cover_image')) {
220 219
             $filenameWithExt = $request->file('cover_image')->getClientOriginalName();
221 220
             $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);
222 221
             $extension = $request->file('cover_image')->getClientOriginalExtension();
@@ -228,7 +227,7 @@  discard block
 block discarded – undo
228 227
         $article->category = $request->input('category');
229 228
         $article->title = $request->input('title');
230 229
         $article->content = $request->input('content');
231
-        if($request->hasFile('cover_image')){
230
+        if($request->hasFile('cover_image')) {
232 231
             $article->cover_image = $fileNameToStore;
233 232
         }
234 233
 
@@ -247,7 +246,7 @@  discard block
 block discarded – undo
247 246
     {
248 247
         $article = Articles::find($id);
249 248
 
250
-        if($article->cover_image != 'noimage.jpg'){
249
+        if($article->cover_image != 'noimage.jpg') {
251 250
             Storage::delete('public/cover_images/'.$article->cover_image);
252 251
         }
253 252
 
Please login to merge, or discard this patch.
app/DoctorSpecialization.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 DoctorSpecialization extends Model
8
-{
7
+class DoctorSpecialization extends Model {
9 8
     /**
10 9
      * @var string
11 10
      */
Please login to merge, or discard this patch.
app/City.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 City extends Model
8
-{
7
+class City extends Model {
9 8
     /**
10 9
      * @var string
11 10
      */
Please login to merge, or discard this patch.